Class BasicPublicationFollowerPolicyFilter

java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicPublicationFollowerPolicyFilter
All Implemented Interfaces:
PluginComponent, PolicyFilter, PublicationFollowerPolicyFilter, Comparable

public class BasicPublicationFollowerPolicyFilter extends AbstractPolicyFilter implements PublicationFollowerPolicyFilter, PluginComponent
  • Constructor Details

    • BasicPublicationFollowerPolicyFilter

      public BasicPublicationFollowerPolicyFilter()
  • Method Details

    • init

      public boolean init(Plugin plugin)
      Description copied from interface: PluginComponent
      Initialize the component with the given plugin configuration
      Specified by:
      init in interface PluginComponent
      Parameters:
      plugin - the calling plugin
      Returns:
      true if the component has been correctly initialized.
    • canFollow

      public boolean canFollow(Member mbr, Publication pub)
      Returns true if the given member can follow the given publication.
      Specified by:
      canFollow in interface PublicationFollowerPolicyFilter
      Parameters:
      mbr - the member
      pub - the publication
      Returns:
      true if the given member can follow the given publication.
      Since:
      jcms-7.0.0
    • sendFollowerNotification

      public boolean sendFollowerNotification(Publication pub, Map context)
      Returns true if the notification must be sent to the follower of the given publication
      Specified by:
      sendFollowerNotification in interface PublicationFollowerPolicyFilter
      Parameters:
      pub - the publication
      context - the DataController context
      Returns:
      true if the notification must be sent to the follower of the given publication
      Since:
      jcms-7.0.0
    • sendFollowerNotification

      public boolean sendFollowerNotification(Member mbr, Publication pub, Map context)
      Returns true if the notification for the given publication must be sent to the given member
      Specified by:
      sendFollowerNotification in interface PublicationFollowerPolicyFilter
      Parameters:
      mbr - the member
      pub - the publication
      context - the DataController context
      Returns:
      true if the notification for the given publication must be sent to the given member
      Since:
      jcms-7.0.0
    • searchParents

      public boolean searchParents(boolean searchParents, Publication pub, Map context)
      Returns true if the notification should be sent to PublicationFollower of parent of the Publication
      Specified by:
      searchParents in interface PublicationFollowerPolicyFilter
      Parameters:
      searchParents - the current searchParents value
      pub - the publication
      context - the DataController context
      Returns:
      true if the notification should be sent to PublicationFollower of parent of the Publication
      Since:
      jcms-8.0.1