fr.cnes.sitools.security.model
Class Group

java.lang.Object
  extended by fr.cnes.sitools.security.model.Group
All Implemented Interfaces:
java.io.Serializable

public final class Group
extends java.lang.Object
implements java.io.Serializable

Class Sitools.Group from org.restlet.security.Group class

Author:
AKKA
See Also:
Serialized Form

Constructor Summary
Group()
          Default constructor
Group(org.restlet.security.Group group)
          Copy constructor
Group(java.lang.String name, java.lang.String description)
          Full constructor
 
Method Summary
 void checkUserUnicity()
          checkUser Unicity
 java.lang.String getDescription()
          Gets the description value
 java.lang.String getName()
          Gets the name value
 java.util.ArrayList<Resource> getUsers()
          Gets the users value
 void setDescription(java.lang.String description)
          Sets the value of description
 void setName(java.lang.String name)
          Sets the value of name
 void setUsers(java.util.ArrayList<Resource> users)
          Sets the value of users
 org.restlet.security.Group wrap()
          Wrap a model.Group to a Restlet Group
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group()
Default constructor


Group

public Group(java.lang.String name,
             java.lang.String description)
Full constructor

Parameters:
name - Group name
description - Group description

Group

public Group(org.restlet.security.Group group)
Copy constructor

Parameters:
group - Restlet Group
Method Detail

wrap

public org.restlet.security.Group wrap()
Wrap a model.Group to a Restlet Group

Returns:
Restlet Group

getName

public java.lang.String getName()
Gets the name value

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getDescription

public java.lang.String getDescription()
Gets the description value

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the value of description

Parameters:
description - the description to set

getUsers

public java.util.ArrayList<Resource> getUsers()
Gets the users value

Returns:
the users

setUsers

public void setUsers(java.util.ArrayList<Resource> users)
Sets the value of users

Parameters:
users - the users to set

checkUserUnicity

public void checkUserUnicity()
                      throws SitoolsException
checkUser Unicity

Throws:
SitoolsException - the exception returned on duplicate member


Copyright © 2010-2013 CNES. All Rights Reserved.