DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.action
Class CollectionAccessAction.UserRoleBean

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.action.CollectionAccessAction.UserRoleBean
Enclosing class:
CollectionAccessAction

public class CollectionAccessAction.UserRoleBean
extends Object

Bean storing User object with a role value.

Author:
Jonathan Ostwald

Constructor Summary
CollectionAccessAction.UserRoleBean(User user, String role)
          Constructor for the UserRoleBean object
 
Method Summary
 String getFullName()
          Returns full name (lastname, firstname) of Beans's user attribute (or the username if fullname can't be computed).
 String getRole()
          Gets the role attribute of the UserRoleBean object
 User getUser()
          Gets the user attribute of the UserRoleBean object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionAccessAction.UserRoleBean

public CollectionAccessAction.UserRoleBean(User user,
                                           String role)
Constructor for the UserRoleBean object

Parameters:
user - the User object
role - a role value
Method Detail

getUser

public User getUser()
Gets the user attribute of the UserRoleBean object

Returns:
The user value

getFullName

public String getFullName()
Returns full name (lastname, firstname) of Beans's user attribute (or the username if fullname can't be computed).

Returns:
The fullName value

getRole

public String getRole()
Gets the role attribute of the UserRoleBean object

Returns:
The role value

DLESE Tools
v1.6.0