コード例 #1
0
 public Comment SaveMilestoneComment(Milestone milestone, Comment comment)
 {
     _engineFactory.GetCommentEngine().SaveOrUpdate(comment);
     NotifyNewComment(comment, milestone);
     TimeLinePublisher.Comment(milestone, EngineResource.ActionText_Add);
     return(comment);
 }
コード例 #2
0
 public Comment SaveMessageComment(Message message, Comment comment)
 {
     ProjectSecurity.DemandRead(message);
     _engineFactory.GetCommentEngine().SaveOrUpdate(comment);
     NotifyComment(comment, message);
     TimeLinePublisher.Comment(message, EngineResource.ActionText_Add);
     return(comment);
 }
コード例 #3
0
ファイル: TaskEngine.cs プロジェクト: Wifisoft/teamlab.v6.5
        public Comment SaveOrUpdateTaskComment(Task task, Comment comment)
        {
            ProjectSecurity.DemandRead(task);

            _factory.GetCommentEngine().SaveOrUpdate(comment);

            NotifyNewComment(comment, task);

            SubscribeToTask(task, SecurityContext.CurrentAccount.ID);

            TimeLinePublisher.Comment(task, EngineResource.ActionText_Add);

            return(comment);
        }