com.nurelm.nucontent.model
Class Group

java.lang.Object
  extended bycom.nurelm.nucontent.model.Entity
      extended bycom.nurelm.nucontent.model.Group
All Implemented Interfaces:
java.io.Serializable

public class Group
extends Entity
implements java.io.Serializable

Represents a NuContent user group.

See Also:
Serialized Form

Field Summary
static java.lang.String REVIEWERS
           
static java.lang.String SITE_ADMINISTRATORS
           
 
Fields inherited from class com.nurelm.nucontent.model.Entity
id, name
 
Constructor Summary
protected Group(java.lang.String name)
          Constructor is only called by UserManager.
 
Method Summary
 java.lang.String[] getDefaultGroups()
          Returns the default user groups.
 int getNumUsers()
          Returns the number of users in this group.
 java.lang.String[] getUserNames()
          Returns a String Array of User objects belonging to this group.
 java.util.Collection getUsers()
          Returns a collection of User objects belonging to this group.
 
Methods inherited from class com.nurelm.nucontent.model.Entity
equals, getId, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SITE_ADMINISTRATORS

public static final java.lang.String SITE_ADMINISTRATORS
See Also:
Constant Field Values

REVIEWERS

public static final java.lang.String REVIEWERS
See Also:
Constant Field Values
Constructor Detail

Group

protected Group(java.lang.String name)
Constructor is only called by UserManager.

Parameters:
name - This Group's name.
Method Detail

getDefaultGroups

public java.lang.String[] getDefaultGroups()
Returns the default user groups.


getUserNames

public java.lang.String[] getUserNames()
Returns a String Array of User objects belonging to this group.

Returns:
A String Array of userNames belonging to this group.

getUsers

public java.util.Collection getUsers()
Returns a collection of User objects belonging to this group.

Returns:
A collection of users belonging to this group.

getNumUsers

public int getNumUsers()
Returns the number of users in this group.

Returns:
Number of users in this group.