Class ForumModeratorBean
- java.lang.Object
-
- org.silverpeas.components.forums.bean.ForumModeratorBean
-
public class ForumModeratorBean extends Object
User: Yohann Chastagnier Date: 17/06/13
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ForumModeratorBean
from(int forumId, List<Moderator> moderators)
Initializing a bean that handle moderators of a forum.int
getForumId()
Gets the identifier of handled forum.Collection<Moderator>
getModerators()
Gets the moderator of the forum (inherited and specifics)boolean
isSpecificModerator(String userId)
Indicates id given user (represented by its identifier) is a moderator of the forum.
-
-
-
Method Detail
-
from
public static ForumModeratorBean from(int forumId, List<Moderator> moderators)
Initializing a bean that handle moderators of a forum.- Parameters:
forumId
-moderators
-- Returns:
-
getForumId
public int getForumId()
Gets the identifier of handled forum.- Returns:
-
isSpecificModerator
public boolean isSpecificModerator(String userId)
Indicates id given user (represented by its identifier) is a moderator of the forum.- Parameters:
userId
-- Returns:
-
getModerators
public Collection<Moderator> getModerators()
Gets the moderator of the forum (inherited and specifics)- Returns:
-
-