fr.cnes.sitools.security.model
Class User

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

public final class User
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
User()
          Default constructor
User(java.lang.String identifier, java.lang.String secret, java.lang.String firstName, java.lang.String lastName, java.lang.String email)
          Constructor (full)
User(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.lang.String getSecret()
          Gets the secret value
static boolean isValid(User user)
          Check l'inscription TODO EVO : validator qui retourne une liste de codes d'anomalies.
 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 setSecret(java.lang.String secret)
          Sets the value of secret
 java.lang.String toString()
           
 org.restlet.security.User wrap()
          To convert a business User in Restlet User for security management
 org.restlet.security.User wrap(java.lang.String realm)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

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

Parameters:
user - Restlet User

User

public User()
Default constructor


User

public User(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

wrap

public org.restlet.security.User wrap(java.lang.String realm)
Deprecated. 

To convert a business User in Restlet User for security management

Parameters:
realm - REALM - used to encode user password
Returns:
org.restlet.security.User
See Also:
wrap()

wrap

public org.restlet.security.User wrap()
To convert a business User in Restlet User for security management

Returns:
org.restlet.security.User

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

getSecret

public java.lang.String getSecret()
Gets the secret value

Returns:
the secret

setSecret

public void setSecret(java.lang.String secret)
Sets the value of secret

Parameters:
secret - the secret to set

isValid

public static boolean isValid(User user)
Check l'inscription TODO EVO : validator qui retourne une liste de codes d'anomalies.

Parameters:
user - object to check
Returns:
boolean

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010-2013 CNES. All Rights Reserved.