public class Comment extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMMENT_STATE_PUBLISHED |
static int |
COMMENT_STATE_UN_PUBLISHED |
Constructor and Description |
---|
Comment() |
Modifier and Type | Method and Description |
---|---|
String |
getAvatar()
Display the avatar of the comment's author
|
String |
getAvatarUrl()
Display the avatar of the comment's author
|
String |
getBBCodeComment()
Get the content of the comment interpreted as BBCode
|
String |
getComment()
Returns the comment
|
int |
getCommentOrder() |
Timestamp |
getDateComment()
Returns the date of the comment
|
Timestamp |
getDateLastModif()
Get the date of last modification of the comment
|
String |
getEmail()
Returns the email of the user
|
String |
getExtendableResourceType() |
int |
getFirstUnpublishedSubComment()
Get the id of the first unpublished sub comment of this comment
|
int |
getIdComment()
Returns the identifier of the object
|
String |
getIdExtendableResource() |
int |
getIdParentComment()
Get the id of the parent comment of this comment
|
String |
getIpAddress()
Returns the IP address of the user
|
boolean |
getIsAdminComment()
Check if the comment has been written by an admin or by a front office user
|
boolean |
getIsImportant() |
List<Comment> |
getListSubComments()
Get the list of sub comments of this comment
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getListWorkflowActions()
Get the available actions of the workflow for this appointment
|
String |
getLuteceUserName() |
String |
getName()
Returns the name of the user
|
int |
getNumberSubComments()
Get the number of sub comments of this comment
|
boolean |
isPinned() |
boolean |
isPublished()
Gets the checks if is published.
|
void |
setComment(String strComment)
Sets the comment
|
void |
setCommentOrder(int _nCommentOrder)
specify comment order if a comment is pinned
|
void |
setDateComment(Timestamp dateComment)
Sets the date of the comment
|
void |
setDateLastModif(Timestamp dateLastModif)
Set the date of last modification of the comment
|
void |
setEmail(String strEmail)
Sets the email of the user
|
void |
setExtendableResourceType(String strExtendableResourceType) |
void |
setIdComment(int nIdComment)
Sets the identifier of the object
|
void |
setIdExtendableResource(String strIdExtendableResource) |
void |
setIdParentComment(int nIdParentComment)
Set the id of the parent comment of this comment
|
void |
setIpAddress(String strIpAddress)
Sets the IP address of the user
|
void |
setIsAdminComment(boolean bIsAdminComment)
Set the admin written status of this comment
|
void |
setIsImportant(boolean _bIsImportant) |
void |
setListSubComments(List<Comment> listSubComments)
Set the list of sub comments of this comment, and update the number of sub comments.
|
void |
setListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)
Set the available actions of the workflow for this appointment
|
void |
setLuteceUserName(String _strLuteceUserName)
set the lutece user name
|
void |
setName(String strName)
Sets the name of the user
|
void |
setNumberSubComments(int nNumberSubComments)
Set the number of sub comments of this comment
|
void |
setPinned(boolean bPinned) |
void |
setPublished(boolean bIsPublished)
Sets the published.
|
public static final int COMMENT_STATE_PUBLISHED
public static final int COMMENT_STATE_UN_PUBLISHED
public String getIdExtendableResource()
public void setIdExtendableResource(String strIdExtendableResource)
strIdExtendableResource
- the strIdExtendableResource to setpublic String getExtendableResourceType()
public void setExtendableResourceType(String strExtendableResourceType)
strExtendableResourceType
- the extendableResourceType to setpublic Timestamp getDateComment()
public void setDateComment(Timestamp dateComment)
dateComment
- the new datepublic Timestamp getDateLastModif()
public void setDateLastModif(Timestamp dateLastModif)
dateLastModif
- The date of last modification of the commentpublic int getIdComment()
public void setIdComment(int nIdComment)
nIdComment
- the new identifierpublic boolean isPublished()
public void setPublished(boolean bIsPublished)
bIsPublished
- the new publishedpublic String getComment()
public void setComment(String strComment)
strComment
- the new commentpublic String getBBCodeComment()
public String getEmail()
public void setEmail(String strEmail)
strEmail
- the new emailpublic String getIpAddress()
public void setIpAddress(String strIpAddress)
strIpAddress
- the new IP addresspublic String getName()
public void setName(String strName)
strName
- the new namepublic int getIdParentComment()
public void setIdParentComment(int nIdParentComment)
nIdParentComment
- The id of the parent comment of this commentpublic List<Comment> getListSubComments()
public void setListSubComments(List<Comment> listSubComments)
listSubComments
- The list of sub comments of this comment.public int getNumberSubComments()
public void setNumberSubComments(int nNumberSubComments)
nNumberSubComments
- the number of sub comments of this comment, or -1 if this information is not known.public boolean getIsAdminComment()
public void setIsAdminComment(boolean bIsAdminComment)
bIsAdminComment
- True if the comment has been written by an admin, false otherwisepublic int getFirstUnpublishedSubComment()
public String getAvatar()
public String getAvatarUrl()
public String getLuteceUserName()
public void setLuteceUserName(String _strLuteceUserName)
_strLuteceUserName
- the lutece user namepublic boolean isPinned()
public void setPinned(boolean bPinned)
bPinned
- true if the comment is pinnedpublic int getCommentOrder()
public void setCommentOrder(int _nCommentOrder)
_nCommentOrder
- comment order if a comment is pinnedpublic boolean getIsImportant()
public void setIsImportant(boolean _bIsImportant)
_bIsImportant
- btrue if a comment is importantpublic Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getListWorkflowActions()
public void setListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)
listWorkflowActions
- Copyright © 2021 City of Paris. All rights reserved.