com.shephertz.app42.paas.sdk.jme.user
Class User

java.lang.Object
  extended by com.shephertz.app42.paas.sdk.jme.App42Response
      extended by com.shephertz.app42.paas.sdk.jme.user.User

public class User
extends App42Response

This User object is the value object which contains the properties of User along with the setter & getter for those properties.


Nested Class Summary
 class User.Profile
          An inner class that contains the remaining properties of the User.
static class User.UserGender
          This class contains the User Gender either MALE or FEMALE.
 
Field Summary
 java.lang.Boolean accountLocked
           
 java.lang.String email
           
 java.lang.String password
           
 java.util.Vector roleList
           
 java.lang.String userName
           
 
Constructor Summary
User()
           
 
Method Summary
 java.lang.String getEmail()
          Returns the email of the User.
 java.lang.String getPassword()
          Returns the password of the User.
 User.Profile getProfile()
          Returns the User.Profile object for the User.
 java.util.Vector getRoleList()
          Returns the roles assigned to the User
 java.lang.String getUserName()
          Returns the name of the User.
 java.lang.Boolean isAccountLocked()
          Returns the User's account status.
 void setAccountLocked(java.lang.Boolean accountLocked)
          Sets the value of account to either true or false.
 void setEmail(java.lang.String email)
          Sets the Email of the User.
 void setPassword(java.lang.String password)
          Sets the password for the User.
 void setProfile(User.Profile profile)
          Sets the User.
 void setRoleList(java.util.Vector roleList)
          Assigns the list of roles to the User
 void setUserName(java.lang.String userName)
          Sets the name of the User.
 java.lang.String toString()
          Returns the User Response in JSON format.
 
Methods inherited from class com.shephertz.app42.paas.sdk.jme.App42Response
getStrResponse, getTotalRecords, isResponseSuccess, setResponseSuccess, setStrResponse, setTotalRecords
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

accountLocked

public java.lang.Boolean accountLocked

email

public java.lang.String email

password

public java.lang.String password

roleList

public java.util.Vector roleList

userName

public java.lang.String userName
Constructor Detail

User

public User()
Method Detail

getEmail

public java.lang.String getEmail()
Returns the email of the User.

Returns:
the email of the User.

getPassword

public java.lang.String getPassword()
Returns the password of the User.

Returns:
the password of the User.

getProfile

public User.Profile getProfile()
Returns the User.Profile object for the User.

Returns:
Profile of the User

getRoleList

public java.util.Vector getRoleList()
Returns the roles assigned to the User

Returns:
List of the roles assigned to the User

getUserName

public java.lang.String getUserName()
Returns the name of the User.

Returns:
the name of the User.

isAccountLocked

public java.lang.Boolean isAccountLocked()
Returns the User's account status.

Returns:
true if account is locked, false if account is unlocked.

setAccountLocked

public void setAccountLocked(java.lang.Boolean accountLocked)
Sets the value of account to either true or false.

Parameters:
accountLocked - - true or false

setEmail

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

Parameters:
email - - Email of the User

setPassword

public void setPassword(java.lang.String password)
Sets the password for the User.

Parameters:
password - - Password for the User

setProfile

public void setProfile(User.Profile profile)
Sets the User. Profile object for the User.

Parameters:
profile - - Profile of the User

setRoleList

public void setRoleList(java.util.Vector roleList)
Assigns the list of roles to the User

Parameters:
roleList - - List of roles to be assigned to User

setUserName

public void setUserName(java.lang.String userName)
Sets the name of the User.

Parameters:
userName - - Name of the User

toString

public java.lang.String toString()
Returns the User Response in JSON format.

Overrides:
toString in class App42Response
Returns:
the response in JSON format.