java.lang.Object
fr.paris.lutece.plugins.wiki.business.suggestedrevision.SuggestedRevision
All Implemented Interfaces:
Serializable

public class SuggestedRevision extends Object implements Serializable
Business class for a SuggestedRevision: a modification proposed by a user who does not have edit rights on the target wiki item, awaiting approval.
See Also:
  • Field Details

  • Constructor Details

    • SuggestedRevision

      public SuggestedRevision()
      Default constructor.
  • Method Details

    • getId

      public int getId()
      Returns the suggestion identifier.
      Returns:
      the id
    • setId

      public void setId(int nId)
      Sets the suggestion identifier.
      Parameters:
      nId - the id
    • getEntityId

      public int getEntityId()
      Returns the wiki item id this suggestion targets.
      Returns:
      the entity id
    • setEntityId

      public void setEntityId(int nEntityId)
      Sets the wiki item id this suggestion targets.
      Parameters:
      nEntityId - the entity id
    • getParentRevisionId

      public int getParentRevisionId()
      Returns the id of the revision that was current when this suggestion was created. Used as the diff base in the side-by-side view so the differences stay visible even after the suggestion has been approved.
      Returns:
      the parent revision id, or 0 if not set (legacy rows)
    • setParentRevisionId

      public void setParentRevisionId(int nParentRevisionId)
      Sets the parent revision id.
      Parameters:
      nParentRevisionId - the parent revision id
    • getTitle

      public String getTitle()
      Returns the proposed title.
      Returns:
      the title
    • setTitle

      public void setTitle(String strTitle)
      Sets the proposed title.
      Parameters:
      strTitle - the title
    • getDescription

      public String getDescription()
      Returns the proposed description.
      Returns:
      the description
    • setDescription

      public void setDescription(String strDescription)
      Sets the proposed description.
      Parameters:
      strDescription - the description
    • getContent

      public String getContent()
      Returns the proposed content.
      Returns:
      the content
    • setContent

      public void setContent(String strContent)
      Sets the proposed content.
      Parameters:
      strContent - the content
    • getComment

      public String getComment()
      Returns the comment provided by the proposer along with the suggestion.
      Returns:
      the comment
    • setComment

      public void setComment(String strComment)
      Sets the comment provided by the proposer.
      Parameters:
      strComment - the comment
    • getAuthor

      public String getAuthor()
      Returns the display name of the proposer.
      Returns:
      the author display name
    • setAuthor

      public void setAuthor(String strAuthor)
      Sets the display name of the proposer.
      Parameters:
      strAuthor - the author display name
    • getAuthorGuid

      public String getAuthorGuid()
      Returns the proposer's user guid (lutece user identifier).
      Returns:
      the author guid
    • setAuthorGuid

      public void setAuthorGuid(String strAuthorGuid)
      Sets the proposer's user guid.
      Parameters:
      strAuthorGuid - the author guid
    • getStatus

      public SuggestionStatus getStatus()
      Returns the current status of the suggestion.
      Returns:
      the status (PENDING/APPROVED/REJECTED)
    • setStatus

      public void setStatus(SuggestionStatus status)
      Sets the current status of the suggestion.
      Parameters:
      status - the status
    • getReviewComment

      public String getReviewComment()
      Returns the comment provided by the reviewer at approval/rejection time.
      Returns:
      the review comment
    • setReviewComment

      public void setReviewComment(String strReviewComment)
      Sets the comment provided by the reviewer.
      Parameters:
      strReviewComment - the review comment
    • getReviewer

      public String getReviewer()
      Returns the display name of the reviewer.
      Returns:
      the reviewer display name
    • setReviewer

      public void setReviewer(String strReviewer)
      Sets the display name of the reviewer.
      Parameters:
      strReviewer - the reviewer display name
    • getDateCreation

      public Timestamp getDateCreation()
      Returns the creation timestamp.
      Returns:
      the creation date
    • setDateCreation

      public void setDateCreation(Timestamp dateCreation)
      Sets the creation timestamp.
      Parameters:
      dateCreation - the creation date
    • getDateReview

      public Timestamp getDateReview()
      Returns the review timestamp.
      Returns:
      the review date
    • setDateReview

      public void setDateReview(Timestamp dateReview)
      Sets the review timestamp.
      Parameters:
      dateReview - the review date