Class SuggestedRevision
java.lang.Object
fr.paris.lutece.plugins.wiki.business.suggestedrevision.SuggestedRevision
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name of the proposer.Returns the proposer's user guid (lutece user identifier).Returns the comment provided by the proposer along with the suggestion.Returns the proposed content.Returns the creation timestamp.Returns the review timestamp.Returns the proposed description.intReturns the wiki item id this suggestion targets.intgetId()Returns the suggestion identifier.intReturns the id of the revision that was current when this suggestion was created.Returns the comment provided by the reviewer at approval/rejection time.Returns the display name of the reviewer.Returns the current status of the suggestion.getTitle()Returns the proposed title.voidSets the display name of the proposer.voidsetAuthorGuid(String strAuthorGuid) Sets the proposer's user guid.voidsetComment(String strComment) Sets the comment provided by the proposer.voidsetContent(String strContent) Sets the proposed content.voidsetDateCreation(Timestamp dateCreation) Sets the creation timestamp.voidsetDateReview(Timestamp dateReview) Sets the review timestamp.voidsetDescription(String strDescription) Sets the proposed description.voidsetEntityId(int nEntityId) Sets the wiki item id this suggestion targets.voidsetId(int nId) Sets the suggestion identifier.voidsetParentRevisionId(int nParentRevisionId) Sets the parent revision id.voidsetReviewComment(String strReviewComment) Sets the comment provided by the reviewer.voidsetReviewer(String strReviewer) Sets the display name of the reviewer.voidsetStatus(SuggestionStatus status) Sets the current status of the suggestion.voidSets the proposed title.
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
-
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
Returns the proposed title.- Returns:
- the title
-
setTitle
Sets the proposed title.- Parameters:
strTitle- the title
-
getDescription
Returns the proposed description.- Returns:
- the description
-
setDescription
Sets the proposed description.- Parameters:
strDescription- the description
-
getContent
Returns the proposed content.- Returns:
- the content
-
setContent
Sets the proposed content.- Parameters:
strContent- the content
-
getComment
Returns the comment provided by the proposer along with the suggestion.- Returns:
- the comment
-
setComment
Sets the comment provided by the proposer.- Parameters:
strComment- the comment
-
getAuthor
Returns the display name of the proposer.- Returns:
- the author display name
-
setAuthor
Sets the display name of the proposer.- Parameters:
strAuthor- the author display name
-
getAuthorGuid
Returns the proposer's user guid (lutece user identifier).- Returns:
- the author guid
-
setAuthorGuid
Sets the proposer's user guid.- Parameters:
strAuthorGuid- the author guid
-
getStatus
Returns the current status of the suggestion.- Returns:
- the status (PENDING/APPROVED/REJECTED)
-
setStatus
Sets the current status of the suggestion.- Parameters:
status- the status
-
getReviewComment
Returns the comment provided by the reviewer at approval/rejection time.- Returns:
- the review comment
-
setReviewComment
Sets the comment provided by the reviewer.- Parameters:
strReviewComment- the review comment
-
getReviewer
Returns the display name of the reviewer.- Returns:
- the reviewer display name
-
setReviewer
Sets the display name of the reviewer.- Parameters:
strReviewer- the reviewer display name
-
getDateCreation
Returns the creation timestamp.- Returns:
- the creation date
-
setDateCreation
Sets the creation timestamp.- Parameters:
dateCreation- the creation date
-
getDateReview
Returns the review timestamp.- Returns:
- the review date
-
setDateReview
Sets the review timestamp.- Parameters:
dateReview- the review date
-