Interface ICommentListener
-
- Type Parameters:
A-
public interface ICommentListenerInterface of listeners of comments
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanComment(fr.paris.lutece.portal.service.security.LuteceUser user, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Check if user can commentjava.lang.StringcheckComment(java.lang.String comment, java.lang.String uidUser)Notify the check commentjava.lang.StringcheckComment(java.lang.String comment, java.lang.String uidUser, java.lang.String strResourceType, java.lang.String strResourceId)Notify the check commentvoidcreateComment(java.lang.String strIdExtendableResource, boolean bPublished)Notify the creation of a commentvoidcreateComment(java.lang.String strIdExtendableResource, boolean bPublished, javax.servlet.http.HttpServletRequest request)Notify the creation of a commentvoiddeleteComment(java.lang.String strIdExtendableResource, java.util.List<java.lang.Integer> listIdRemovedComment)Notify the removal of a commentvoidpublishComment(java.lang.String strIdExtendableResource, boolean bPublished)Notify the publication or unpublication of a comment
-
-
-
Method Detail
-
createComment
void createComment(java.lang.String strIdExtendableResource, boolean bPublished)Notify the creation of a comment- Parameters:
strIdExtendableResource- The id of the extendable resource associated with the created commentbPublished- True if the created comment is published, false otherwise
-
createComment
void createComment(java.lang.String strIdExtendableResource, boolean bPublished, javax.servlet.http.HttpServletRequest request)Notify the creation of a comment- Parameters:
strIdExtendableResource- The id of the extendable resource associated with the created commentbPublished- True if the created comment is published, false otherwise request HttpServletRequest the Http request
-
publishComment
void publishComment(java.lang.String strIdExtendableResource, boolean bPublished)Notify the publication or unpublication of a comment- Parameters:
strIdExtendableResource- The id of the extendable resource associated with the modified commentbPublished- True if the comment was published, false if it was unpublished
-
deleteComment
void deleteComment(java.lang.String strIdExtendableResource, java.util.List<java.lang.Integer> listIdRemovedComment)Notify the removal of a comment- Parameters:
strIdExtendableResource- The id of the extendable resource associated with the removed commentlistIdRemovedComment- The list of ids of removed comments
-
checkComment
java.lang.String checkComment(java.lang.String comment, java.lang.String uidUser)Notify the check comment- Parameters:
listErrors-- Returns:
-
checkComment
java.lang.String checkComment(java.lang.String comment, java.lang.String uidUser, java.lang.String strResourceType, java.lang.String strResourceId)Notify the check comment- Parameters:
comment-uidUser-strResourceType-strResourceId-- Returns:
-
canComment
boolean canComment(fr.paris.lutece.portal.service.security.LuteceUser user, java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Check if user can comment- Parameters:
user- The lutece userstrIdExtendableResource- The id of the extendable resourcestrExtendableResourceType- The type of the resource- Returns:
- true when the user has the rights, otherwise false
-
-