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, setOrderpublic static final java.lang.String REVISION
public BasicPublicationFollowerPolicyFilter()
public boolean init(Plugin plugin)
PluginComponentinit in interface PluginComponentplugin - the calling pluginpublic boolean canFollow(Member mbr, Publication pub)
canFollow in interface PublicationFollowerPolicyFiltermbr - the memberpub - the publicationpublic boolean sendFollowerNotification(Publication pub, java.util.Map context)
sendFollowerNotification in interface PublicationFollowerPolicyFilterpub - the publicationcontext - the DataController contextpublic boolean sendFollowerNotification(Member mbr, Publication pub, java.util.Map context)
sendFollowerNotification in interface PublicationFollowerPolicyFiltermbr - the memberpub - the publicationcontext - the DataController contextpublic boolean searchParents(boolean searchParents,
Publication pub,
java.util.Map context)
searchParents in interface PublicationFollowerPolicyFiltersearchParents - the current searchParents valuepub - the publicationcontext - the DataController contextCopyright © 2001-2017 Jalios SA. All Rights Reserved.