com.atlassian.crowd.embedded.hibernate2
Class HibernateDirectoryDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.crowd.embedded.hibernate2.HibernateDirectoryDao
All Implemented Interfaces:
com.atlassian.crowd.embedded.spi.DirectoryDao, org.springframework.beans.factory.InitializingBean

public final class HibernateDirectoryDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements com.atlassian.crowd.embedded.spi.DirectoryDao

Hibernate 2/Spring implementation of directory persistence


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateDirectoryDao()
           
 
Method Summary
 com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory)
           
 List<com.atlassian.crowd.embedded.api.Directory> findAll()
           
 com.atlassian.crowd.model.directory.DirectoryImpl findById(long directoryId)
           
 com.atlassian.crowd.embedded.api.Directory findByName(String name)
           
 void remove(com.atlassian.crowd.embedded.api.Directory directory)
           
 List<com.atlassian.crowd.embedded.api.Directory> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query)
           
 void setGroupDao(InternalGroupDao groupDao)
           
 void setInternalMembershipDao(InternalMembershipDao internalMembershipDao)
           
 void setUserDao(InternalUserDao userDao)
           
 com.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory)
           
 
Methods inherited from class org.springframework.orm.hibernate.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

HibernateDirectoryDao

public HibernateDirectoryDao()
Method Detail

findById

public com.atlassian.crowd.model.directory.DirectoryImpl findById(long directoryId)
                                                           throws com.atlassian.crowd.exception.DirectoryNotFoundException
Specified by:
findById in interface com.atlassian.crowd.embedded.spi.DirectoryDao
Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException

findByName

public com.atlassian.crowd.embedded.api.Directory findByName(String name)
                                                      throws com.atlassian.crowd.exception.DirectoryNotFoundException
Specified by:
findByName in interface com.atlassian.crowd.embedded.spi.DirectoryDao
Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException

findAll

public List<com.atlassian.crowd.embedded.api.Directory> findAll()
Specified by:
findAll in interface com.atlassian.crowd.embedded.spi.DirectoryDao

add

public com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory)
Specified by:
add in interface com.atlassian.crowd.embedded.spi.DirectoryDao

update

public com.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory)
                                                  throws com.atlassian.crowd.exception.DirectoryNotFoundException
Specified by:
update in interface com.atlassian.crowd.embedded.spi.DirectoryDao
Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException

remove

public void remove(com.atlassian.crowd.embedded.api.Directory directory)
Specified by:
remove in interface com.atlassian.crowd.embedded.spi.DirectoryDao

search

public List<com.atlassian.crowd.embedded.api.Directory> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query)
Specified by:
search in interface com.atlassian.crowd.embedded.spi.DirectoryDao

setUserDao

public void setUserDao(InternalUserDao userDao)

setGroupDao

public void setGroupDao(InternalGroupDao groupDao)

setInternalMembershipDao

public void setInternalMembershipDao(InternalMembershipDao internalMembershipDao)


Copyright © 2003–2015 Atlassian. All rights reserved.