org.ikasan.framework.security.dao
Class HibernateAuthorityDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.ikasan.framework.security.dao.HibernateAuthorityDao
All Implemented Interfaces:
AuthorityDao, org.springframework.beans.factory.InitializingBean

public class HibernateAuthorityDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements AuthorityDao

Hibernate implementation of AuthorityDao

Author:
Ikasan Development Team

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateAuthorityDao()
           
 
Method Summary
 List<Authority> getAuthorities()
          Retrieves all Authoritys known to the system
 Authority getAuthority(String authority)
          Retrieves a specific Authority by name
 void save(Authority newAuthority)
          Saves a new Authority to persistent storage
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateAuthorityDao

public HibernateAuthorityDao()
Method Detail

getAuthorities

public List<Authority> getAuthorities()
Description copied from interface: AuthorityDao
Retrieves all Authoritys known to the system

Specified by:
getAuthorities in interface AuthorityDao
Returns:
List of Authoritys

getAuthority

public Authority getAuthority(String authority)
Description copied from interface: AuthorityDao
Retrieves a specific Authority by name

Specified by:
getAuthority in interface AuthorityDao
Returns:
named Authority or null if it does not exist

save

public void save(Authority newAuthority)
Description copied from interface: AuthorityDao
Saves a new Authority to persistent storage

Specified by:
save in interface AuthorityDao


Copyright © 2007-2012 Ikasan. All Rights Reserved.