net.sourceforge.jaulp.auth
Class SimpleUser

java.lang.Object
  extended by net.sourceforge.jaulp.auth.SimpleUser
All Implemented Interfaces:
java.io.Serializable, User

public class SimpleUser
extends java.lang.Object
implements User

The Class SimpleUser.

Version:
1.0
Author:
Asterios Raptis
See Also:
Serialized Form

Constructor Summary
SimpleUser()
           
 
Method Summary
 void addRole(Role role)
          Adds the given role to the user.
 java.lang.String getId()
          Returns the field id.
 java.lang.String getPassword()
          Returns the field password.
 java.util.Set<Role> getRoles()
          Returns the field roles.
 java.lang.String getUsername()
          Returns the field username.
 boolean isLock()
          Returns the field lock.
 boolean removeRole(Role role)
          Removes the given role from the user.
 void setId(java.lang.String id)
          Sets the field id.
 void setLock(boolean lock)
          Sets the field lock.
 void setPassword(java.lang.String password)
          Sets the field password.
 void setRoles(java.util.Set<Role> roles)
          Sets the field roles.
 void setUsername(java.lang.String username)
          Sets the field username.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUser

public SimpleUser()
Method Detail

addRole

public void addRole(Role role)
Adds the given role to the user.

Specified by:
addRole in interface User
Parameters:
role - the role
See Also:
User.addRole(net.sourceforge.jaulp.auth.interfaces.Role)

getId

public java.lang.String getId()
Returns the field id.

Specified by:
getId in interface User
Returns:
The field id.
See Also:
User.getId()

getRoles

public java.util.Set<Role> getRoles()
Returns the field roles.

Specified by:
getRoles in interface User
Returns:
The field roles.
See Also:
User.getRoles()

getUsername

public java.lang.String getUsername()
Returns the field username.

Specified by:
getUsername in interface User
Returns:
The field username.
See Also:
User.getUsername()

isLock

public boolean isLock()
Returns the field lock.

Specified by:
isLock in interface User
Returns:
The field lock.
See Also:
User.isLock()

removeRole

public boolean removeRole(Role role)
Removes the given role from the user.

Specified by:
removeRole in interface User
Parameters:
role - the role
See Also:
User.removeRole(net.sourceforge.jaulp.auth.interfaces.Role)

setId

public void setId(java.lang.String id)
Sets the field id.

Specified by:
setId in interface User
Parameters:
id - The id to set
See Also:
User.setId(java.lang.String)

setLock

public void setLock(boolean lock)
Sets the field lock.

Specified by:
setLock in interface User
Parameters:
lock - The lock to set
See Also:
User.setLock(boolean)

setRoles

public void setRoles(java.util.Set<Role> roles)
Sets the field roles.

Specified by:
setRoles in interface User
Parameters:
roles - The roles to set
See Also:
User.setRoles(java.util.Set)

setUsername

public void setUsername(java.lang.String username)
Sets the field username.

Specified by:
setUsername in interface User
Parameters:
username - The username to set
See Also:
User.setUsername(java.lang.String)

getPassword

public java.lang.String getPassword()
Returns the field password.

Specified by:
getPassword in interface User
Returns:
The field password.
See Also:
User.getPassword()

setPassword

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

Specified by:
setPassword in interface User
Parameters:
password - The password to set
See Also:
User.setPassword(java.lang.String)


Copyright © 2010. All Rights Reserved.