Class Comment
java.lang.Object
fr.paris.lutece.plugins.extend.modules.comment.business.Comment
- All Implemented Interfaces:
fr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult
public class Comment
extends Object
implements fr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult
Comment
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDisplay the avatar of the comment's authorDisplay the avatar of the comment's authorGet the content of the comment interpreted as BBCodeReturns the commentintReturns the date of the commentGet the date of last modification of the commentgetEmail()Returns the email of the userGet encrypted lutece user nameintGet the id of the first unpublished sub comment of this commentintReturns the identifier of the objectintGet the id of the parent comment of this commentReturns the IP address of the userbooleanCheck if the comment has been written by an admin or by a front office userbooleanGet the list of sub comments of this commentCollection<fr.paris.lutece.plugins.workflowcore.business.action.Action>Get the available actions of the workflow for this appointmentgetName()Returns the name of the userintGet the number of sub comments of this commentbooleanisPinned()booleanGets the checks if is published.voidsetComment(String strComment) Sets the commentvoidsetCommentOrder(int _nCommentOrder) specify comment order if a comment is pinnedvoidsetDateComment(Timestamp dateComment) Sets the date of the commentvoidsetDateLastModif(Timestamp dateLastModif) Set the date of last modification of the commentvoidSets the email of the uservoidsetExtendableResourceType(String strExtendableResourceType) voidsetIdComment(int nIdComment) Sets the identifier of the objectvoidsetIdExtendableResource(String strIdExtendableResource) voidsetIdParentComment(int nIdParentComment) Set the id of the parent comment of this commentvoidsetIpAddress(String strIpAddress) Sets the IP address of the uservoidsetIsAdminComment(boolean bIsAdminComment) Set the admin written status of this commentvoidsetIsImportant(boolean _bIsImportant) voidsetListSubComments(List<Comment> listSubComments) Set the list of sub comments of this comment, and update the number of sub comments.voidsetListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions) Set the available actions of the workflow for this appointmentvoidsetLuteceUserName(String _strLuteceUserName) set the lutece user namevoidSets the name of the uservoidsetNumberSubComments(int nNumberSubComments) Set the number of sub comments of this commentvoidsetPinned(boolean bPinned) voidsetPublished(boolean bIsPublished) Sets the published.
-
Field Details
-
COMMENT_STATE_PUBLISHED
public static final int COMMENT_STATE_PUBLISHED- See Also:
-
COMMENT_STATE_UN_PUBLISHED
public static final int COMMENT_STATE_UN_PUBLISHED- See Also:
-
-
Constructor Details
-
Comment
public Comment()
-
-
Method Details
-
getIdExtendableResource
- Specified by:
getIdExtendableResourcein interfacefr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult- Returns:
- the strIdExtendableResource
-
setIdExtendableResource
- Parameters:
strIdExtendableResource- the strIdExtendableResource to set
-
getExtendableResourceType
- Specified by:
getExtendableResourceTypein interfacefr.paris.lutece.plugins.extend.service.extender.facade.IExtendableResourceResult- Returns:
- the extendableResourceType
-
setExtendableResourceType
- Parameters:
strExtendableResourceType- the extendableResourceType to set
-
getDateComment
Returns the date of the comment- Returns:
- the date of the comment
-
setDateComment
Sets the date of the comment- Parameters:
dateComment- the new date
-
getDateLastModif
Get the date of last modification of the comment- Returns:
- The date of last modification of the comment
-
setDateLastModif
Set the date of last modification of the comment- Parameters:
dateLastModif- The date of last modification of the comment
-
getIdComment
public int getIdComment()Returns the identifier of the object- Returns:
- The identifier of the object
-
setIdComment
public void setIdComment(int nIdComment) Sets the identifier of the object- Parameters:
nIdComment- the new identifier
-
isPublished
public boolean isPublished()Gets the checks if is published.- Returns:
- the checks if is published
-
setPublished
public void setPublished(boolean bIsPublished) Sets the published.- Parameters:
bIsPublished- the new published
-
getComment
Returns the comment- Returns:
- the comment
-
setComment
Sets the comment- Parameters:
strComment- the new comment
-
getBBCodeComment
Get the content of the comment interpreted as BBCode- Returns:
- The content of the comment interpreted as BBCode
-
getEmail
Returns the email of the user- Returns:
- the email of the user
-
setEmail
Sets the email of the user- Parameters:
strEmail- the new email
-
getIpAddress
Returns the IP address of the user- Returns:
- the IP address of the user
-
setIpAddress
Sets the IP address of the user- Parameters:
strIpAddress- the new IP address
-
getName
Returns the name of the user- Returns:
- the name of the user
-
setName
Sets the name of the user- Parameters:
strName- the new name
-
getIdParentComment
public int getIdParentComment()Get the id of the parent comment of this comment- Returns:
- The id of the parent comment of this comment
-
setIdParentComment
public void setIdParentComment(int nIdParentComment) Set the id of the parent comment of this comment- Parameters:
nIdParentComment- The id of the parent comment of this comment
-
getListSubComments
Get the list of sub comments of this comment- Returns:
- The list of sub comments of this comment. An empty list means that this comment has no sub comment. A null value means that the sub comment list has not been initialized.
-
setListSubComments
Set the list of sub comments of this comment, and update the number of sub comments.- Parameters:
listSubComments- The list of sub comments of this comment.
-
getNumberSubComments
public int getNumberSubComments()Get the number of sub comments of this comment- Returns:
- the number of sub comments of this comment, or -1 if this information is not known.
-
setNumberSubComments
public void setNumberSubComments(int nNumberSubComments) Set the number of sub comments of this comment- Parameters:
nNumberSubComments- the number of sub comments of this comment, or -1 if this information is not known.
-
getIsAdminComment
public boolean getIsAdminComment()Check if the comment has been written by an admin or by a front office user- Returns:
- True if the comment has been written by an admin, false otherwise
-
setIsAdminComment
public void setIsAdminComment(boolean bIsAdminComment) Set the admin written status of this comment- Parameters:
bIsAdminComment- True if the comment has been written by an admin, false otherwise
-
getFirstUnpublishedSubComment
public int getFirstUnpublishedSubComment()Get the id of the first unpublished sub comment of this comment- Returns:
- The id of the first unpublished sub comment, or 0 if it has no sub comments or no unpublished sub comments. 0 is also returned if sub comments of this comment have not been fetched.
-
getAvatar
Display the avatar of the comment's author- Returns:
- The HTML code of the avatar
-
getAvatarUrl
Display the avatar of the comment's author- Returns:
- The HTML code of the avatar
-
getLuteceUserName
- Returns:
- the lutece user name
-
setLuteceUserName
set the lutece user name- Parameters:
_strLuteceUserName- the lutece user name
-
isPinned
public boolean isPinned()- Returns:
- true if the comment is pinned
-
setPinned
public void setPinned(boolean bPinned) - Parameters:
bPinned- true if the comment is pinned
-
getCommentOrder
public int getCommentOrder()- Returns:
- comment order if a comment is pinned
-
setCommentOrder
public void setCommentOrder(int _nCommentOrder) specify comment order if a comment is pinned- Parameters:
_nCommentOrder- comment order if a comment is pinned
-
getIsImportant
public boolean getIsImportant()- Returns:
- true if a comment is important
-
setIsImportant
public void setIsImportant(boolean _bIsImportant) - Parameters:
_bIsImportant- btrue if a comment is important
-
getListWorkflowActions
public Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getListWorkflowActions()Get the available actions of the workflow for this appointment- Returns:
- the actions
-
setListWorkflowActions
public void setListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions) Set the available actions of the workflow for this appointment- Parameters:
listWorkflowActions-
-
getEncryptedLuteceUserName
Get encrypted lutece user name- Returns:
- encrypt lutece user name
-