org.janux.bus.security
Interface RoleDaoGeneric<T extends Role>

All Superinterfaces:
GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>, GenericDaoWrite<T,Integer>

public interface RoleDaoGeneric<T extends Role>
extends GenericDaoWrite<T,Integer>, GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>

Used to create, save, retrieve, update and delete Role objects from persistent storage

Since:
0.4
Author:
Philippe Paravicini

Method Summary
 Role findByName(String name)
          Returns an Role by names, or null if the Role is not found.
 SortedSet<Role> loadAll()
          Loads all Roles defined in the system, along with their Permissions and SubRoles; a SubRole may appear individually, as well as part of the children of the Super Roles that may contain it
 Role loadByName(String name)
          loads an Role object, or throws exception if Role with that name is not found
 PermissionsCapable newRole()
          returns a new Role instance
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoWrite
attachClean, clear, delete, evict, flush, merge, refresh, save, saveOrUpdate, update
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnly
count, findByCriteria, load
 

Method Detail

loadAll

SortedSet<Role> loadAll()
Loads all Roles defined in the system, along with their Permissions and SubRoles; a SubRole may appear individually, as well as part of the children of the Super Roles that may contain it


findByName

Role findByName(String name)
Returns an Role by names, or null if the Role is not found.

Parameters:
name - the Role name

loadByName

Role loadByName(String name)
                throws EntityNotFoundException
loads an Role object, or throws exception if Role with that name is not found

Parameters:
name - a name that uniquely identifies this role
Throws:
EntityNotFoundException - if a Role object with that name is not found

newRole

PermissionsCapable newRole()
returns a new Role instance



Copyright © 2005-2013 Janux. All Rights Reserved.