public class FollowListenerService extends Object
| Constructor and Description |
|---|
FollowListenerService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cancelFollow(String strExtendableResourceType,
String strIdExtendableResource,
javax.servlet.http.HttpServletRequest request)
Notify to listeners canceled follow.
|
static boolean |
canFollow(String strExtendableResourceType,
String strIdExtendableResource,
fr.paris.lutece.portal.service.security.LuteceUser user) |
static void |
follow(String strExtendableResourceType,
String strIdExtendableResource,
javax.servlet.http.HttpServletRequest request)
Notify to listeners new follow.
|
static boolean |
hasListener()
Check if there is listeners to notify
|
static void |
registerListener(String strExtendableResourceType,
IFollowListener listener)
Register a comment listener.
|
public static void registerListener(String strExtendableResourceType, IFollowListener 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 follow(String strExtendableResourceType, String strIdExtendableResource, javax.servlet.http.HttpServletRequest request)
strExtendableResourceType - The extendable resource typestrIdExtendableResource - The extendable resource id of the commentrequest - the HTTP requestpublic static void cancelFollow(String strExtendableResourceType, String strIdExtendableResource, javax.servlet.http.HttpServletRequest request)
strExtendableResourceType - The extendable resource typestrIdExtendableResource - The extendable resource id of the commentrequest - the HTTP requestCopyright © 2017 City of Paris. All rights reserved.