org.figure8.join.businessobjects.security.persistence
Interface RoleDao

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateRoleDao

public interface RoleDao
extends ObjectDao

Data Access interface for Permission business objects.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Method Summary
 Role getRole(long id)
          Retrieve a security role using its identifier
 Role getRole(java.lang.String name)
          Retrieve a security role using its name
 void setCacheManager(CacheManager manager)
          Role data access object may want to use the cache manager for storing and retrieving releases.
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Method Detail

setCacheManager

void setCacheManager(CacheManager manager)
Role data access object may want to use the cache manager for storing and retrieving releases. This Cache service provides an eternal cache for role objects.

Parameters:
manager - The CacheManager implementation to use.

getRole

Role getRole(long id)
Retrieve a security role using its identifier

Parameters:
id - The unique identifier of Role within datastore
Returns:
The role or null if no role exists with this id

getRole

Role getRole(java.lang.String name)
Retrieve a security role using its name

Parameters:
name - The name of the role
Returns:
The role or null if no role exists with this name


Copyright © 2005-2008 Join. All Rights Reserved.