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
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
BasicPublicationFollowerPolicyFilter
public BasicPublicationFollowerPolicyFilter()
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 memberpub
- 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 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
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 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
Copyright © 2001-2010 Jalios SA. All Rights Reserved.