Interface ICommentListener
- Type Parameters:
A-
public interface ICommentListener
Interface of listeners of comments
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanComment(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType) Check if user can commentcheckComment(String comment, String uidUser) Notify the check commentcheckComment(String comment, String uidUser, String strResourceType, String strResourceId) Notify the check commentvoidcreateComment(String strIdExtendableResource, boolean bPublished) Notify the creation of a commentvoidcreateComment(String strIdExtendableResource, boolean bPublished, jakarta.servlet.http.HttpServletRequest request) Notify the creation of a commentvoiddeleteComment(String strIdExtendableResource, List<Integer> listIdRemovedComment) Notify the removal of a commentvoidpublishComment(String strIdExtendableResource, boolean bPublished) Notify the publication or unpublication of a comment
-
Method Details
-
createComment
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(String strIdExtendableResource, boolean bPublished, jakarta.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
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
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
Notify the check comment- Parameters:
listErrors-- Returns:
-
checkComment
Notify the check comment- Parameters:
comment-uidUser-strResourceType-strResourceId-- Returns:
-
canComment
boolean canComment(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, 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
-