Fish & Chips Club 4.10.0.0

hirondelle.fish.access.role
Class UserRole

Object
  extended by hirondelle.fish.access.role.UserRole

public final class UserRole
extends Object

The security roles attached to a user.


Constructor Summary
UserRole(SafeText aUserName, List<Id> aRoles)
          Full constructor.
 
Method Summary
 boolean equals(Object aThat)
           
 List<Id> getRoles()
          Return an unmodifiable version of the roles passed to the constructor.
 SafeText getUserName()
          Return the user name passed to the constructor.
 int hashCode()
           
 String toString()
          Intended for debugging only.
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserRole

public UserRole(SafeText aUserName,
                List<Id> aRoles)
         throws ModelCtorException
Full constructor.

(Note that this Model Object is somewhat unusual since it has a List as a constructor argument.)

Parameters:
aUserName - user name (required), 6..50 characters, no spaces.
aRoles - required, possibly empty
Throws:
ModelCtorException
Method Detail

getUserName

public SafeText getUserName()
Return the user name passed to the constructor.


getRoles

public List<Id> getRoles()
Return an unmodifiable version of the roles passed to the constructor.

Returns an ummodifiable List.


toString

public String toString()
Intended for debugging only.

Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26