org.janux.bus.security
Interface PermissionContextDaoGeneric<T extends PermissionContext>

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

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

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

Since:
0.4
Author:
Philippe Paravicini

Method Summary
 PermissionContext findByName(String name)
          Returns a PermissionContext by names, or null if the PermissionContext is not found.
 SortedSet<PermissionContext> loadAll()
          Loads all PermissionContexts defined in the system, sorted by sortOrder
 PermissionContext loadByName(String name)
          loads an PermissionContext object, or throws exception if PermissionContext with that name is not found
 PermissionContext newPermissionContext()
          returns a new PermissionContext 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<PermissionContext> loadAll()
Loads all PermissionContexts defined in the system, sorted by sortOrder


findByName

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

Parameters:
name - the PermissionContext name

loadByName

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

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

newPermissionContext

PermissionContext newPermissionContext()
returns a new PermissionContext instance



Copyright © 2005-2013 Janux. All Rights Reserved.