com.stratelia.webactiv.forums.bean
Class ForumModeratorBean

java.lang.Object
  extended by com.stratelia.webactiv.forums.bean.ForumModeratorBean

public class ForumModeratorBean
extends Object

User: Yohann Chastagnier Date: 17/06/13


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:


Copyright © 2016 Silverpeas. All Rights Reserved.