Package com.jalios.jcms.policy
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
-
Field Summary
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFollow(Member mbr, Publication pub) Returns true if the given member can follow the given publication.booleanInitialize the component with the given plugin configurationbooleansearchParents(boolean searchParents, Publication pub, Map context) Returns true if the notification should be sent to PublicationFollower of parent of the PublicationbooleansendFollowerNotification(Member mbr, Publication pub, Map context) Returns true if the notification for the given publication must be sent to the given memberbooleansendFollowerNotification(Publication pub, Map context) Returns true if the notification must be sent to the follower of the given publicationMethods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
BasicPublicationFollowerPolicyFilter
public BasicPublicationFollowerPolicyFilter()
-
-
Method Details
-
init
Description copied from interface:PluginComponentInitialize the component with the given plugin configuration- Specified by:
initin interfacePluginComponent- Parameters:
plugin- the calling plugin- Returns:
- true if the component has been correctly initialized.
-
canFollow
Returns true if the given member can follow the given publication.- Specified by:
canFollowin interfacePublicationFollowerPolicyFilter- Parameters:
mbr- the memberpub- the publication- Returns:
- true if the given member can follow the given publication.
- Since:
- jcms-7.0.0
-
sendFollowerNotification
Returns true if the notification must be sent to the follower of the given publication- Specified by:
sendFollowerNotificationin interfacePublicationFollowerPolicyFilter- Parameters:
pub- the publicationcontext- the DataController context- Returns:
- true if the notification must be sent to the follower of the given publication
- Since:
- jcms-7.0.0
-
sendFollowerNotification
Returns true if the notification for the given publication must be sent to the given member- Specified by:
sendFollowerNotificationin interfacePublicationFollowerPolicyFilter- Parameters:
mbr- the memberpub- the publicationcontext- 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
Returns true if the notification should be sent to PublicationFollower of parent of the Publication- Specified by:
searchParentsin interfacePublicationFollowerPolicyFilter- Parameters:
searchParents- the current searchParents valuepub- the publicationcontext- the DataController context- Returns:
- true if the notification should be sent to PublicationFollower of parent of the Publication
- Since:
- jcms-8.0.1
-