com.sas.hls.security.user
Class User

java.lang.Object
  extended by com.sas.hls.security.user.UserDescriptor
      extended by com.sas.hls.security.user.User
All Implemented Interfaces:
Identifiable, AclPrincipal, Principal, Serializable

public class User
extends UserDescriptor

A client representation of a user defined in the system.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.hls.security.user.UserDescriptor
OBJECT_TYPE
 
Constructor Summary
User()
          Zero-arg constructor.
User(String userId)
          Constructor
User(String identifier, String userId, String principalId, String principalName, LoginInfo loginInfo, LockedInfo lockedInfo, PasswordInfo passwordInfo)
           
 
Method Summary
 AccountInfo getAccountInfo()
          Get the accountInfo details for this user.
 List<Attribute> getAttributes()
          Get the list of attributes defined for this user instance.
 String getDepartment()
          Get the department value for this user.
 String getFirstName()
          Get the first name for this user.
 String getLastName()
          Get the last name for this user.
 LockedInfo getLockedInfo()
          Get the lockedInfo details for this user.
 LoginInfo getLoginInfo()
          Get the loginInfo details for this user.
 PasswordInfo getPasswordInfo()
          Get the passwordInfo details for this user.
 String getPhone()
          Get the primary phone number value for this user.
 long getRevision()
          Get the internal revision number of this object.
 void setAccountInfo(AccountInfo accountInfo)
          Set the accountInfo details for this user.
 void setAttributes(List<Attribute> attributes)
          Set a list of attributes values on this user.
 void setDepartment(String department)
          Set the department value for this user.
 void setFirstName(String firstName)
          Set the first name for this user.
 void setLastName(String lastName)
          Set the last name for this user.
 void setPhone(String phone)
          Set the primary phone number value for this user.
 void setRevision(long revision)
          Set the internal revision number of this object.
 
Methods inherited from class com.sas.hls.security.user.UserDescriptor
equals, getDisplayName, getEmail, getIdentifier, getObjectType, getPrincipalId, getPrincipalName, getUserId, hashCode, setDisplayName, setEmail, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User()
Zero-arg constructor.


User

public User(String userId)
Constructor

Parameters:
userId -

User

public User(String identifier,
            String userId,
            String principalId,
            String principalName,
            LoginInfo loginInfo,
            LockedInfo lockedInfo,
            PasswordInfo passwordInfo)
Method Detail

getRevision

public long getRevision()
Get the internal revision number of this object.

Returns:
the internal revision number of this object

setRevision

public void setRevision(long revision)
Set the internal revision number of this object.

Parameters:
revision - the revision to set

getAccountInfo

public AccountInfo getAccountInfo()
Get the accountInfo details for this user.

Returns:
the accountInfo details for this user

setAccountInfo

public void setAccountInfo(AccountInfo accountInfo)
Set the accountInfo details for this user.

Parameters:
accountInfo - the accountInfo to set for this user

getPasswordInfo

public PasswordInfo getPasswordInfo()
Get the passwordInfo details for this user.

Returns:
the passwordInfo details for this user

getLockedInfo

public LockedInfo getLockedInfo()
Get the lockedInfo details for this user.

Returns:
the lockedInfo details for this user

getLoginInfo

public LoginInfo getLoginInfo()
Get the loginInfo details for this user.

Returns:
the loginInfo details for this user

getFirstName

public String getFirstName()
Get the first name for this user.

Returns:
the first name for this user

setFirstName

public void setFirstName(String firstName)
Set the first name for this user.

Parameters:
firstName - the firstName to set for this user

getLastName

public String getLastName()
Get the last name for this user.

Returns:
the last name for this user

setLastName

public void setLastName(String lastName)
Set the last name for this user.

Parameters:
lastName - the lastName to set for this user

getDepartment

public String getDepartment()
Get the department value for this user.

Returns:
the department of this user

setDepartment

public void setDepartment(String department)
Set the department value for this user.

Parameters:
department - the department to set for this user

getPhone

public String getPhone()
Get the primary phone number value for this user.

Returns:
the primary phone number value for this user

setPhone

public void setPhone(String phone)
Set the primary phone number value for this user.

Parameters:
phone - the primary phone number value to set for this user

getAttributes

public List<Attribute> getAttributes()
Get the list of attributes defined for this user instance.

Returns:
the attributes set on this user

setAttributes

public void setAttributes(List<Attribute> attributes)
Set a list of attributes values on this user.

Parameters:
attributes - the attributes values to set on this user


Copyright (c) 2013, SAS Institute Inc., Cary, NC, USA