|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.publicationfollower.PublicationFollowerManager
public class PublicationFollowerManager
This class manages PublicationFollower
Field Summary | |
---|---|
static String |
PUBLICATION_ID_FIELD
|
static String |
REVISION
|
Method Summary | |
---|---|
void |
addFollower(Publication pub,
Member mbr)
Adds the given member as follower of the given publication. |
boolean |
canFollow(Member mbr,
Publication pub)
Returns true if the given member can follow the given publication. |
List<Publication> |
getFollowedPublicationList(Member mbr)
Returns publications followed by the given member. |
List<Member> |
getFollowerList(Publication pub,
boolean searchParents)
Returns all the followers of the given publication. |
static PublicationFollowerManager |
getInstance()
|
List<PublicationFollower> |
getPublicationFollowerList(Publication pub,
boolean searchParents)
Returns the PublicationFollower list attached to the given publication. |
boolean |
isFollowed(Publication pub,
Member mbr)
Returns true if the given publication is followed by the given member. |
void |
notifyFollowers(Publication pub,
Member opAuthor,
Map context)
Notify all the follower of the given publication. |
void |
removeAllFollowers(Publication pub)
Removes all the followers for the given publication. |
void |
removeFollower(Publication pub,
Member mbr)
Removes the given members from the followers of the given publication. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final String PUBLICATION_ID_FIELD
Method Detail |
---|
public static PublicationFollowerManager getInstance()
public void addFollower(Publication pub, Member mbr)
pub
- the publicationmbr
- the memberpublic void removeFollower(Publication pub, Member mbr)
pub
- the publicationmbr
- the memberpublic void removeAllFollowers(Publication pub)
pub
- the publicationpublic boolean isFollowed(Publication pub, Member mbr)
pub
- the publicationmbr
- the member
public List<PublicationFollower> getPublicationFollowerList(Publication pub, boolean searchParents)
pub
- the publicationsearchParents
- if true search followers of the (TreeNode) parent of this publication
public List<Member> getFollowerList(Publication pub, boolean searchParents)
pub
- the publicationsearchParents
- if true search followers of the (TreeNode) parent of this publication
public List<Publication> getFollowedPublicationList(Member mbr)
mbr
- the member
public boolean canFollow(Member mbr, Publication pub)
mbr
- the memberpub
- the publication
public void notifyFollowers(Publication pub, Member opAuthor, Map context)
pub
- the publicationopAuthor
- the author of the publication's operation which triggered this notificationcontext
- the context used in the publication's operation which triggered this notification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |