fr.cnes.sitools.security.model
Class UserRole

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

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

Class Sitools.User from org.restlet.security.User

Author:
AKKA Technologies
See Also:
Serialized Form

Constructor Summary
UserRole()
          Default constructor
UserRole(java.lang.String identifier, java.lang.String secret, java.lang.String firstName, java.lang.String lastName, java.lang.String email)
          Constructor (full)
UserRole(org.restlet.security.User user)
          Copy constructor - wrapper from Restlet User
 
Method Summary
 java.lang.String getEmail()
          Gets the email value
 java.lang.String getFirstName()
          Gets the firstName value
 java.lang.String getIdentifier()
          Gets the identifier value
 java.lang.String getLastName()
          Gets the lastName value
 java.util.List<Property> getProperties()
          Gets the properties value
 java.util.ArrayList<Role> getRoles()
          Gets the roles value
 void setEmail(java.lang.String email)
          Sets the value of email
 void setFirstName(java.lang.String firstName)
          Sets the value of firstName
 void setIdentifier(java.lang.String identifier)
          Sets the value of identifier
 void setLastName(java.lang.String lastName)
          Sets the value of lastName
 void setProperties(java.util.List<Property> properties)
          Sets the value of properties
 void setRoles(java.util.ArrayList<Role> roles)
          Sets the value of roles
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRole

public UserRole(org.restlet.security.User user)
Copy constructor - wrapper from Restlet User

Parameters:
user - Restlet User

UserRole

public UserRole()
Default constructor


UserRole

public UserRole(java.lang.String identifier,
                java.lang.String secret,
                java.lang.String firstName,
                java.lang.String lastName,
                java.lang.String email)
Constructor (full)

Parameters:
identifier - User login
secret - User password
firstName - User first name
lastName - User last name
email - User email
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Gets the identifier value

Returns:
the identifier

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the value of identifier

Parameters:
identifier - the identifier to set

getFirstName

public java.lang.String getFirstName()
Gets the firstName value

Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String firstName)
Sets the value of firstName

Parameters:
firstName - the firstName to set

getLastName

public java.lang.String getLastName()
Gets the lastName value

Returns:
the lastName

setLastName

public void setLastName(java.lang.String lastName)
Sets the value of lastName

Parameters:
lastName - the lastName to set

getEmail

public java.lang.String getEmail()
Gets the email value

Returns:
the email

setEmail

public void setEmail(java.lang.String email)
Sets the value of email

Parameters:
email - the email to set

getProperties

public java.util.List<Property> getProperties()
Gets the properties value

Returns:
the properties

setProperties

public void setProperties(java.util.List<Property> properties)
Sets the value of properties

Parameters:
properties - the properties to set

getRoles

public java.util.ArrayList<Role> getRoles()
Gets the roles value

Returns:
the roles

setRoles

public void setRoles(java.util.ArrayList<Role> roles)
Sets the value of roles

Parameters:
roles - the roles to set


Copyright © 2010-2013 CNES. All Rights Reserved.