A - public interface ICommentListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
canComment(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
Check if user can comment
|
String |
checkComment(String comment,
String uidUser)
Notify the check comment
|
String |
checkComment(String comment,
String uidUser,
String strResourceType,
String strResourceId)
Notify the check comment
|
void |
createComment(String strIdExtendableResource,
boolean bPublished)
Notify the creation of a comment
|
void |
createComment(String strIdExtendableResource,
boolean bPublished,
javax.servlet.http.HttpServletRequest request)
Notify the creation of a comment
|
void |
deleteComment(String strIdExtendableResource,
List<Integer> listIdRemovedComment)
Notify the removal of a comment
|
void |
publishComment(String strIdExtendableResource,
boolean bPublished)
Notify the publication or unpublication of a comment
|
void createComment(String strIdExtendableResource, boolean bPublished)
strIdExtendableResource - The id of the extendable resource
associated with the created commentbPublished - True if the created comment is published, false
otherwisevoid createComment(String strIdExtendableResource, boolean bPublished, javax.servlet.http.HttpServletRequest request)
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 requestvoid publishComment(String strIdExtendableResource, boolean bPublished)
strIdExtendableResource - The id of the extendable resource
associated with the modified commentbPublished - True if the comment was published, false if it was
unpublishedvoid deleteComment(String strIdExtendableResource, List<Integer> listIdRemovedComment)
strIdExtendableResource - The id of the extendable resource
associated with the removed commentlistIdRemovedComment - The list of ids of removed commentsString checkComment(String comment, String uidUser)
listErrors - String checkComment(String comment, String uidUser, String strResourceType, String strResourceId)
comment - uidUser - strResourceType - strResourceId - boolean canComment(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
user - The lutece userstrIdExtendableResource - The id of the extendable resourcestrExtendableResourceType - The type of the resourceCopyright © 2019 City of Paris. All rights reserved.