Ejemplo n.º 1
0
 public override void UpdateArticle(int artId, string articleName, string articleDescription, DateTime dateOfPublish,
     int userId, int mediaManagerId, int articleStatusId, int articleStateId, int articleCommentId,
     IArticleState articleState)
 {
     articleState.SubmitUpdatedArticle(artId, articleName, articleDescription, dateOfPublish, userId,
         mediaManagerId, articleStatusId, articleStateId, articleCommentId);
 }
Ejemplo n.º 2
0
        private void InitStates()
        {
            this._articleLoadedState = new ArticleLoadedState(this);
            this._articleEditState   = new ArticleEditState(this);

            this._currentState = this.GetLoadedState();
        }
Ejemplo n.º 3
0
 public override void ReviewArticleByReviewer(int artId, string articleName, string articleDescription,
     DateTime dateOfPublish, int userId, int mediaManagerId, int articleStatusId, int articleStateId,
     int articleCommentId, string commentContent, IArticleState articleState)
 {
     articleState.AcceptOrRejectArticleByR(artId, articleName, articleDescription, dateOfPublish, userId,
         mediaManagerId, articleStatusId, articleStateId, commentContent, articleCommentId);
 }
Ejemplo n.º 4
0
        public Article CreateTextArticleWithoutId(string articleName, string articleDescription, DateTime dateOfPublish,
            int userId,  int mediaManagerId, int articleStatusId, int articleStateId, 
            int articleCommentId, IArticleState articleState)
        {
            Article newArticle = new TextArticle(articleName, articleDescription, dateOfPublish, userId,
                mediaManagerId, articleStatusId, articleStateId, articleCommentId, articleState);

            return newArticle;
        }
Ejemplo n.º 5
0
 public TextArticle(IArticleState state, string articleTitle, string articleContent, string articleComment, DateTime articlePublishDate, int userId, int mediaManagerId, int articleStatusId, int articleStateId)
 {
     this.state = state;
     this.articleTitle = articleTitle;
     this.articleContent = articleContent;
     this.articleComment = articleComment;
     this.articlePublishDate = articlePublishDate;
     this.userId = userId;
     this.mediaManagerId = mediaManagerId;
     this.articleStatusId = articleStatusId;
     this.articleStateId = articleStateId;
 }
 public override Articles CreateTextArticlewitId(IArticleState state, string articleTitle, string articleContent, string articleComment, DateTime articlePublishDate, int userId, int mediaManagerId, int articleStatusId, int articleStateId,int articleId)
 {
     return new TextArticle(state, articleTitle, articleContent, articleComment,
         articlePublishDate, userId, mediaManagerId, articleStatusId, articleStateId,articleId);
 }
Ejemplo n.º 7
0
        public Article CreateTextArticleV4(int artId, IArticleState articleState)
        {
            Article newArticle = new TextArticle(artId, articleState);

            return newArticle;
        }
Ejemplo n.º 8
0
 public override void UpdateArticle(int artId, string articleName, string articleDescription, DateTime dateOfPublish,
     int userId, int mediaManagerId, int articleStatusId, int articleStateId, int articleCommentId, IArticleState article)
 {
     //base.UpdateArticle();
 }
Ejemplo n.º 9
0
 public override void ReviewArticleByReviewer(int artId, string articleName, string articleDescription,
     DateTime dateOfPublish, int userId, int mediaManagerId, int articleStatusId, int articleStateId,
     int articleCommentId, string commentContent, IArticleState articleState)
 {
     //base.ReviewArticleByReviewer();
 }
Ejemplo n.º 10
0
 public override void DeleteArticle(int artId, IArticleState articleState)
 {
     base.DeleteArticle(artId, articleState);
 }
 public virtual Articles CreateTextArticlewitId(IArticleState state, string articleTitle, string articleContent,
     string articleComment, DateTime articlePublishDate, int userId, int mediaManagerId, int articleStatusId,
     int articleStateId, int articleId)
 {
     return null;
 }
Ejemplo n.º 12
0
 public TextArticle(int artId, IArticleState articleState)
     : base(artId, articleState)
 {
 }
Ejemplo n.º 13
0
 public override void DeleteArticle(int articleId, IArticleState articleState)
 {
     articleState.DeleteConfirmed(articleId);
 }
Ejemplo n.º 14
0
 public TextArticle(string articleName, DateTime dateOfPublish, int userId, int mediaManagerId, int articleStatusId, int articleStateId, int articleCommentId, int artId, string commentContent, IArticleState articleState, string articleDescription)
     : base(articleName, dateOfPublish, userId, mediaManagerId, articleStatusId, articleStateId, articleCommentId, artId, commentContent, articleState)
 {
     this.articleDescription = articleDescription;
 }
Ejemplo n.º 15
0
 public TextArticle(IArticleState state,int articleId)
 {
     this.state = state;
     this.articleId = articleId;
 }
Ejemplo n.º 16
0
 public TextArticle(IArticleState state)
 {
     this.state = state;
 }
 public override Articles CreateTextArticlewitIdandState(IArticleState state, int articleId)
 {
     return new TextArticle(state, articleId);
 }
Ejemplo n.º 18
0
 public VideoArticlecs(string articleName, DateTime dateOfPublish, int userId, int mediaManagerId, int articleStatusId, int articleStateId, int articleCommentId, int artId, string commentContent, IArticleState articleState)
     : base(articleName, dateOfPublish, userId, mediaManagerId, articleStatusId, articleStateId, articleCommentId, artId, commentContent, articleState)
 {
 }
Ejemplo n.º 19
0
 public Article(IArticleState articleState)
 {
     ArticleState = articleState;
 }
 public virtual Articles CreateTextArticlewitIdandState(IArticleState state, int articleId)
 {
     return null;
 }