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, String strIdExtendableResource, String strExtendableResourceType)Check if user can commentStringcheckComment(String comment, String uidUser)Notify the check commentStringcheckComment(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, javax.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 Detail
-
createComment
void createComment(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(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(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(String strIdExtendableResource, List<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
String checkComment(String comment, String uidUser)
Notify the check comment- Parameters:
listErrors-- Returns:
-
checkComment
String checkComment(String comment, String uidUser, String strResourceType, String strResourceId)
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
-
-