public class RatingListenerService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONSTANT_EVERY_EXTENDABLE_RESOURCE_TYPE
Constant that represents every extendable resource type
|
Modifier and Type | Method and Description |
---|---|
static void |
createRating(String strExtendableResourceType,
String strIdExtendableResource,
fr.paris.lutece.portal.service.security.LuteceUser user)
Notify to listeners the creation of a rating.
|
static void |
deleteRating(String strExtendableResourceType,
String strIdExtendableResource,
fr.paris.lutece.portal.service.security.LuteceUser user)
Notify to listeners the modification of a rating.
|
static boolean |
hasListener()
Check if there is listeners to notify
|
static void |
registerListener(String strExtendableResourceType,
IRatingListener listener)
Register a rating listener.
|
public static final String CONSTANT_EVERY_EXTENDABLE_RESOURCE_TYPE
public static void registerListener(String strExtendableResourceType, IRatingListener 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 createRating(String strExtendableResourceType, String strIdExtendableResource, fr.paris.lutece.portal.service.security.LuteceUser user)
strExtendableResourceType
- The extendable resource type of the created ratingstrIdExtendableResource
- The extendable resource id of the ratingpublic static void deleteRating(String strExtendableResourceType, String strIdExtendableResource, fr.paris.lutece.portal.service.security.LuteceUser user)
strExtendableResourceType
- The extendable resource type of the
removed ratingstrIdExtendableResource
- The extendable resource id of the ratinglistIdRemovedrating
- The list of ids of removed ratingsCopyright © 2022 City of Paris. All rights reserved.