org.outerj.daisy.repository.commonimpl.user
Class RolesUtil

java.lang.Object
  extended byorg.outerj.daisy.repository.commonimpl.user.RolesUtil

public class RolesUtil
extends java.lang.Object

A set of utility methods for working with Roles objects.


Constructor Summary
RolesUtil()
           
 
Method Summary
static org.outerj.daisy.repository.user.Role getRole(org.outerj.daisy.repository.user.Roles rolesToSearch, long roleId)
          returns a specific role from a roles object.
static org.outerj.daisy.repository.user.Role getRole(org.outerj.daisy.repository.user.Roles rolesToSearch, java.lang.String roleName)
          returns a specific role from a roles object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolesUtil

public RolesUtil()
Method Detail

getRole

public static org.outerj.daisy.repository.user.Role getRole(org.outerj.daisy.repository.user.Roles rolesToSearch,
                                                            java.lang.String roleName)
returns a specific role from a roles object.

Parameters:
roleName - the name of the role object to search in the roles object
Returns:
the found Role, or null if the role with the specified name was not found in the Roles object.

getRole

public static org.outerj.daisy.repository.user.Role getRole(org.outerj.daisy.repository.user.Roles rolesToSearch,
                                                            long roleId)
returns a specific role from a roles object.

Parameters:
roleId - the data store id of the role object to search in the roles object
Returns:
the found Role, or null if the role with the specified id was not found in the Roles object.


Copyright © -2005 . All Rights Reserved.