com.zphinx.spine.members
Class User
java.lang.Object
com.zphinx.spine.vo.dto.SpineBean
com.zphinx.spine.members.Identity
com.zphinx.spine.members.Identifier
com.zphinx.spine.members.Member
com.zphinx.spine.members.User
- All Implemented Interfaces:
- MemberActions, PrincipalActions, DataTransferObject, Serializable
- Direct Known Subclasses:
- Administrator
public class User
- extends Member
- implements PrincipalActions
A User object represents a registered user within the spine framework. It stores all the details of a user within the spine framework and provides implementation methods for the relevant activities taken by this user.
- Version:
- $Revision: 1.14 $ $Date: 2008/06/15 01:47:09 $
Copyright © Zphinx software solutions
- Author:
- David Ladapo
- See Also:
Member,
Administrator,
PrincipalActions,
Serialized Form
|
Constructor Summary |
User()
Constructor for object |
| Methods inherited from class com.zphinx.spine.members.Member |
getActivity, getAddress, getAdministrators, getBirthDate, getBirthDateString, getCity, getCompanyName, getCountry, getFax, getGender, getGroupId, getGroupName, getGroupNames, getLastIp, getLastLogin, getMemberName, getPhone, getPostCode, getState, getUrl, setActivity, setAddress, setAdministrators, setBirthDate, setBirthDateString, setCity, setCompanyName, setCountry, setCountry, setFax, setGender, setGroupId, setGroupName, setGroupNames, setLastIp, setLastLogin, setPhone, setPostCode, setState, setState, setUrl |
| Methods inherited from class com.zphinx.spine.vo.dto.SpineBean |
getCreationDate, getDescription, getId, getLocale, getModifiedDate, getName, getSessionId, setCreationDate, setDescription, setId, setLocale, setModifiedDate, setName, setPermission, setSessionId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCOUNT_DETAILS
protected static final String ACCOUNT_DETAILS
- The name for the account details object
- See Also:
- Constant Field Values
User
public User()
- Constructor for object
getPrincipal
public Member getPrincipal()
- Get the type of member object
- Specified by:
getPrincipal in interface PrincipalActions
- Returns:
- Member Return this object
getPermission
public SpinePermission getPermission()
- Implementation of getPermission in Member, returns the SpinePermission Object associated with this Object.Uses MemberPermissionFactory.getMemberPermission to create the appropriate SpinePermission
- Specified by:
getPermission in class Member
- Returns:
- MemberPermission The SpinePermission object associated with this user
- See Also:
SpinePermission
getAccountDetails
public AccountDetails getAccountDetails()
- Gets this Users account details
- Returns:
- Returns the accountDetails.
setAccountDetails
public void setAccountDetails(AccountDetails accountDetails)
- Sets this Users account details
- Parameters:
accountDetails - The accountDetails to set.
setUserName
public void setUserName(String s)
- Sets the userName into the name field of the identifier
- Overrides:
setUserName in class Identity
- Parameters:
s - The new user name of this member.