fr.cnes.sitools.role.model
Class Role

java.lang.Object
  extended by fr.cnes.sitools.role.model.Role
All Implemented Interfaces:
IResource, java.io.Serializable

public final class Role
extends java.lang.Object
implements IResource, java.io.Serializable

Role class

Author:
jp.boignard (AKKA Technologies)
See Also:
Serialized Form

Constructor Summary
Role()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Gets the description value
 java.util.List<Resource> getGroups()
          Gets the groups value
 java.lang.String getId()
          Gets the id value
 java.lang.String getName()
          Gets the name value
 java.util.List<Resource> getUsers()
          Gets the users value
 int hashCode()
           
 void setDescription(java.lang.String description)
          Sets the value of description
 void setGroups(java.util.List<Resource> groups)
          Sets the value of groups
 void setId(java.lang.String id)
          Sets the value of id
 void setName(java.lang.String name)
          Sets the value of name
 void setUsers(java.util.List<Resource> users)
          Sets the value of users
 org.restlet.security.Role wrap()
          SITools to RESTlet role converter
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Role

public Role()
Method Detail

getId

public java.lang.String getId()
Gets the id value

Specified by:
getId in interface IResource
Returns:
the id

setId

public void setId(java.lang.String id)
Sets the value of id

Specified by:
setId in interface IResource
Parameters:
id - the id to set

getName

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

Specified by:
getName in interface IResource
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

Specified by:
getDescription in interface IResource
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.List<Resource> getUsers()
Gets the users value

Returns:
the users

setUsers

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

Parameters:
users - the users to set

getGroups

public java.util.List<Resource> getGroups()
Gets the groups value

Returns:
the groups

setGroups

public void setGroups(java.util.List<Resource> groups)
Sets the value of groups

Parameters:
groups - the groups to set

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

wrap

public org.restlet.security.Role wrap()
SITools to RESTlet role converter

Returns:
org.restlet.security.Role


Copyright © 2010-2013 CNES. All Rights Reserved.