fr.cnes.sitools.inscription.model
Class Inscription

java.lang.Object
  extended by fr.cnes.sitools.inscription.model.Inscription
All Implemented Interfaces:
IResource

public class Inscription
extends java.lang.Object
implements IResource

Class for user registration cpassword is not mapped / not persistent. It is sent by the client. TODO à voir : faut-il ignorer toutes les properties inconnues pour eviter les exceptions de mapping json > java...

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
Inscription()
          Default constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getComment()
          Gets the comment value
 java.lang.String getDescription()
          Resource description
 java.lang.String getEmail()
          Gets the email value
 java.util.List<Event> getEvents()
          Gets the events value
 java.lang.String getFirstName()
          Gets the firstName value
 java.lang.String getId()
          Gets the id value
 java.lang.String getIdentifier()
          Gets the identifier value
 java.lang.String getLastName()
          Gets the lastName value
 java.lang.String getName()
          Resource name
 java.lang.String getPassword()
          Gets the password value
 java.util.List<Property> getProperties()
          Gets the properties value
 java.lang.String getStatus()
          Gets the status value
 int hashCode()
           
static boolean isValid(Inscription inscription)
          Check l'inscription TODO EVO : validator qui retourne une liste de codes d'anomalies.
 void setComment(java.lang.String comment)
          Sets the value of comment
 void setEmail(java.lang.String email)
          Sets the value of email
 void setEvents(java.util.List<Event> events)
          Sets the value of events
 void setFirstName(java.lang.String firstName)
          Sets the value of firstName
 void setId(java.lang.String id)
          Sets the value of id
 void setIdentifier(java.lang.String identifier)
          Sets the value of identifier
 void setLastName(java.lang.String lastName)
          Sets the value of lastName
 void setPassword(java.lang.String password)
          Sets the value of password
 void setProperties(java.util.List<Property> properties)
          Sets the value of properties
 void setStatus(java.lang.String status)
          Sets the value of status
 User wrapToUser()
          wrapper to Sitools.model.User
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inscription

public Inscription()
Default constructor

Method Detail

getIdentifier

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

Returns:
the identifier

setIdentifier

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

Parameters:
identifier - the identifier to set

getId

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

Specified by:
getId in interface IResource
Returns:
the id

setId

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

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

getFirstName

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

Returns:
the firstName

setFirstName

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

Parameters:
firstName - the firstName to set

getLastName

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

Returns:
the lastName

setLastName

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

Parameters:
lastName - the lastName to set

getPassword

public final java.lang.String getPassword()
Gets the password value

Returns:
the password

setPassword

public final void setPassword(java.lang.String password)
Sets the value of password

Parameters:
password - the password to set

getComment

public final java.lang.String getComment()
Gets the comment value

Returns:
the comment

setComment

public final void setComment(java.lang.String comment)
Sets the value of comment

Parameters:
comment - the comment to set

getEmail

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

Returns:
the email

setEmail

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

Parameters:
email - the email to set

getProperties

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

Returns:
the properties

setProperties

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

Parameters:
properties - the properties to set

getEvents

public final java.util.List<Event> getEvents()
Gets the events value

Returns:
the events

setEvents

public final void setEvents(java.util.List<Event> events)
Sets the value of events

Parameters:
events - the events to set

getStatus

public final java.lang.String getStatus()
Gets the status value

Returns:
the status

setStatus

public final void setStatus(java.lang.String status)
Sets the value of status

Parameters:
status - the status 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

wrapToUser

public User wrapToUser()
wrapper to Sitools.model.User

Returns:
User

isValid

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

Parameters:
inscription - object to check
Returns:
boolean

getName

public final java.lang.String getName()
Description copied from interface: IResource
Resource name

Specified by:
getName in interface IResource
Returns:
String

getDescription

public final java.lang.String getDescription()
Description copied from interface: IResource
Resource description

Specified by:
getDescription in interface IResource
Returns:
String


Copyright © 2010-2013 CNES. All Rights Reserved.