|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.extend.modules.comment.service.CommentListenerService
public class CommentListenerService
Service to manage listeners over comments
| Field Summary | |
|---|---|
static String |
CONSTANT_EVERY_EXTENDABLE_RESOURCE_TYPE
Constant that represents every extendable resource type |
| Method Summary | |
|---|---|
static void |
createComment(String strExtendableResourceType,
String strIdExtendableResource,
boolean bPublished)
Notify to listeners the creation of a comment. |
static void |
deleteComment(String strExtendableResourceType,
String strIdExtendableResource,
List<Integer> listIdRemovedComment)
Notify to listeners the modification of a comment. |
static boolean |
hasListener()
Check if there is listeners to notify |
static void |
publishComment(int nIdComment,
boolean bPublished)
Notify to listeners the modification of a comment. |
static void |
publishComment(String strExtendableResourceType,
String strIdExtendableResource,
boolean bPublished)
Notify to listeners the modification of a comment. |
static void |
registerListener(String strExtendableResourceType,
ICommentListener listener)
Register a comment listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONSTANT_EVERY_EXTENDABLE_RESOURCE_TYPE
| Method Detail |
|---|
public static void registerListener(String strExtendableResourceType,
ICommentListener listener)
strExtendableResourceType - The extendable resource type associated
with the listener. Use
CONSTANT_EVERY_EXTENDABLE_RESOURCE_TYPE to associated
the listener with every resource type.listener - The listener to registerpublic static boolean hasListener()
public static void createComment(String strExtendableResourceType,
String strIdExtendableResource,
boolean bPublished)
strExtendableResourceType - The extendable resource type of the
created commentstrIdExtendableResource - The extendable resource id of the commentbPublished - True if the comment is published, false otherwise
public static void publishComment(int nIdComment,
boolean bPublished)
nIdComment - The id of the updated commentbPublished - True if the comment was published, false if it was
unpublished
public static void publishComment(String strExtendableResourceType,
String strIdExtendableResource,
boolean bPublished)
strExtendableResourceType - The extendable resource type of the
updated commentstrIdExtendableResource - The extendable resource id of the commentbPublished - True if the comment was published, false if it was
unpublished
public static void deleteComment(String strExtendableResourceType,
String strIdExtendableResource,
List<Integer> listIdRemovedComment)
strExtendableResourceType - The extendable resource type of the
removed commentstrIdExtendableResource - The extendable resource id of the commentlistIdRemovedComment - The list of ids of removed comments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||