Class ForumModeratorBean

java.lang.Object
org.silverpeas.components.forums.bean.ForumModeratorBean

public class ForumModeratorBean extends Object
User: Yohann Chastagnier Date: 17/06/13
  • Method Details

    • from

      public static ForumModeratorBean from(int forumId, List<Moderator> moderators)
    • getForumId

      public int getForumId()
      Gets the identifier of handled forum.
      Returns:
      the identifier
    • isSpecificModerator

      public boolean isSpecificModerator(String userId)
      Indicates id given user (represented by its identifier) is a moderator of the forum.
      Parameters:
      userId - the user identifier
      Returns:
      true if the user is a moderator, false otherwise.
    • getModerators

      public Collection<Moderator> getModerators()
      Gets the moderator of the forum (inherited and specifics)
      Returns:
      a collection of moderators