Class FollowListenerService

java.lang.Object
fr.paris.lutece.plugins.extend.modules.follow.service.FollowListenerService

public class FollowListenerService extends Object
  • Method Summary

    Modifier and Type
    Method
    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
    Check if there is listeners to notify
    static void
    registerListener(String strExtendableResourceType, IFollowListener listener)
    Register a comment listener.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerListener

      public static void registerListener(String strExtendableResourceType, IFollowListener listener)
      Register a comment listener.
      Parameters:
      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 register
    • hasListener

      public static boolean hasListener()
      Check if there is listeners to notify
      Returns:
      True if there is at last one listener, false otherwise
    • follow

      public static void follow(String strExtendableResourceType, String strIdExtendableResource, javax.servlet.http.HttpServletRequest request)
      Notify to listeners new follow. Only listeners associated with the extendable resource type of the comment are notified.
      Parameters:
      strExtendableResourceType - The extendable resource type
      strIdExtendableResource - The extendable resource id of the comment
      request - the HTTP request
    • cancelFollow

      public static void cancelFollow(String strExtendableResourceType, String strIdExtendableResource, javax.servlet.http.HttpServletRequest request)
      Notify to listeners canceled follow. Only listeners associated with the extendable resource type of the comment are notified.
      Parameters:
      strExtendableResourceType - The extendable resource type
      strIdExtendableResource - The extendable resource id of the comment
      request - the HTTP request
    • canFollow

      public static boolean canFollow(String strExtendableResourceType, String strIdExtendableResource, fr.paris.lutece.portal.service.security.LuteceUser user)