Class TurbineUserImpl
- java.lang.Object
-
- org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
-
- org.apache.fulcrum.security.model.turbine.entity.impl.AbstractTurbineSecurityEntityImpl
-
- org.apache.fulcrum.security.model.turbine.entity.impl.TurbineUserImpl
-
- All Implemented Interfaces:
Serializable
,ExtendedUser
,SecurityEntity
,User
,TurbineUser
,TurbineUserGroupRoleEntity
public class TurbineUserImpl extends AbstractTurbineSecurityEntityImpl implements TurbineUser
Represents the "turbine" model where permissions are in a many to many relationship to roles, roles are related to groups are related to users, all in many to many relationships.- Version:
- $Id: TurbineUser.java 437451 2006-08-27 20:20:44Z tv $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TurbineUserImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
Returns the email address of the userString
getFirstName()
Returns the first name of the UserString
getLastName()
Returns the last name of the Userbyte[]
getObjectdata()
Returns the value of the objectdata for this user.String
getPassword()
Get the passwordint
hashCode()
Calculate a hash code for this objectvoid
setEmail(String email)
Sets the new email address of the uservoid
setFirstName(String firstName)
Sets the first name of the Uservoid
setLastName(String lastName)
Sets the last name of Uservoid
setObjectdata(byte[] objectdata)
Sets the value of the objectdata for the uservoid
setPassword(String password)
Set the password-
Methods inherited from class org.apache.fulcrum.security.model.turbine.entity.impl.AbstractTurbineSecurityEntityImpl
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSet
-
Methods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, setId, setName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Methods inherited from interface org.apache.fulcrum.security.model.turbine.entity.TurbineUserGroupRoleEntity
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSet
-
-
-
-
Constructor Detail
-
TurbineUserImpl
public TurbineUserImpl()
-
-
Method Detail
-
getPassword
public String getPassword()
Get the password- Specified by:
getPassword
in interfaceUser
- Returns:
- the password
-
setPassword
public void setPassword(String password)
Set the password- Specified by:
setPassword
in interfaceUser
- Parameters:
password
- the new password
-
getFirstName
public String getFirstName()
Returns the first name of the User- Specified by:
getFirstName
in interfaceExtendedUser
- Returns:
- The first name of the User
-
setFirstName
public void setFirstName(String firstName)
Sets the first name of the User- Specified by:
setFirstName
in interfaceExtendedUser
- Parameters:
firstName
- The new first name of the User
-
getLastName
public String getLastName()
Returns the last name of the User- Specified by:
getLastName
in interfaceExtendedUser
- Returns:
- The last name of the User
-
setLastName
public void setLastName(String lastName)
Sets the last name of User- Specified by:
setLastName
in interfaceExtendedUser
- Parameters:
lastName
- The new last name of the User
-
getEmail
public String getEmail()
Returns the email address of the user- Specified by:
getEmail
in interfaceExtendedUser
- Returns:
- The email address of the user
-
setEmail
public void setEmail(String email)
Sets the new email address of the user- Specified by:
setEmail
in interfaceExtendedUser
- Parameters:
email
- The new email address of the user
-
getObjectdata
public byte[] getObjectdata()
Returns the value of the objectdata for this user. Objectdata is a storage area used to store the permanent storage table from the User object.- Specified by:
getObjectdata
in interfaceExtendedUser
- Returns:
- The bytes in the objectdata for this user
-
setObjectdata
public void setObjectdata(byte[] objectdata)
Sets the value of the objectdata for the user- Specified by:
setObjectdata
in interfaceExtendedUser
- Parameters:
objectdata
- The new permanent storage for the user
-
hashCode
public int hashCode()
Calculate a hash code for this object- Overrides:
hashCode
in classSecurityEntityImpl
- See Also:
SecurityEntityImpl.hashCode()
-
-