public class BasicPublicationFollowerPolicyFilter extends AbstractPolicyFilter implements PublicationFollowerPolicyFilter, PluginComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
order
Constructor and Description |
---|
BasicPublicationFollowerPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canFollow(Member mbr,
Publication pub)
Returns true if the given member can follow the given publication.
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration
|
boolean |
searchParents(boolean searchParents,
Publication pub,
java.util.Map context)
Returns true if the notification should be sent to PublicationFollower of parent of the Publication
|
boolean |
sendFollowerNotification(Member mbr,
Publication pub,
java.util.Map context)
Returns true if the notification for the given publication must be sent to the given member
|
boolean |
sendFollowerNotification(Publication pub,
java.util.Map context)
Returns true if the notification must be sent to the follower of the given publication
|
compareTo, equals, getOrder, setOrder
public static final java.lang.String REVISION
public BasicPublicationFollowerPolicyFilter()
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling pluginpublic boolean canFollow(Member mbr, Publication pub)
canFollow
in interface PublicationFollowerPolicyFilter
mbr
- the memberpub
- the publicationpublic boolean sendFollowerNotification(Publication pub, java.util.Map context)
sendFollowerNotification
in interface PublicationFollowerPolicyFilter
pub
- the publicationcontext
- the DataController contextpublic boolean sendFollowerNotification(Member mbr, Publication pub, java.util.Map context)
sendFollowerNotification
in interface PublicationFollowerPolicyFilter
mbr
- the memberpub
- the publicationcontext
- the DataController contextpublic boolean searchParents(boolean searchParents, Publication pub, java.util.Map context)
searchParents
in interface PublicationFollowerPolicyFilter
searchParents
- true if we should search on Publication parentspub
- the publicationcontext
- the DataController contextCopyright © 2001-2010 Jalios SA. All Rights Reserved.