net.sourceforge.jaulp.auth.interfaces
Interface User

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
SimpleUser

public interface User
extends java.io.Serializable

The Interface User.

Version:
1.0
Author:
Asterios Raptis

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.
 

Method Detail

addRole

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

Parameters:
role - the role

getId

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

Returns:
The field id.

getRoles

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

Returns:
The field roles.

getUsername

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

Returns:
The field username.

getPassword

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

Returns:
The field password.

isLock

boolean isLock()
Returns the field lock.

Returns:
The field lock.

removeRole

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

Parameters:
role - the role

setId

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

Parameters:
id - The id to set

setLock

void setLock(boolean lock)
Sets the field lock.

Parameters:
lock - The lock to set

setRoles

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

Parameters:
roles - The roles to set

setUsername

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

Parameters:
username - The username to set

setPassword

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

Parameters:
password - The password to set


Copyright © 2010. All Rights Reserved.