com.atlassian.crowd.embedded.hibernate2
Class HibernateGroupDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.crowd.embedded.hibernate2.HibernateGroupDao
- All Implemented Interfaces:
- InternalGroupDao, com.atlassian.crowd.embedded.spi.GroupDao, org.springframework.beans.factory.InitializingBean
public class HibernateGroupDao
- extends org.springframework.orm.hibernate.support.HibernateDaoSupport
- implements InternalGroupDao
Hibernate2/Spring implementation of group persistence
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
com.atlassian.crowd.model.group.Group |
add(com.atlassian.crowd.model.group.Group group)
|
com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> |
addAll(java.util.Set<? extends com.atlassian.crowd.model.group.Group> groups)
|
com.atlassian.crowd.model.group.Group |
addLocal(com.atlassian.crowd.model.group.Group group)
|
com.atlassian.crowd.model.group.InternalDirectoryGroup |
findByName(long directoryId,
java.lang.String name)
|
com.atlassian.crowd.model.group.GroupWithAttributes |
findByNameWithAttributes(long directoryId,
java.lang.String name)
|
com.atlassian.crowd.model.group.InternalGroup |
internalFindByGroup(com.atlassian.crowd.model.group.Group group)
Find the persistent group object that corresponds to the provided group. |
com.atlassian.crowd.model.group.InternalGroup |
internalFindByName(long directoryId,
java.lang.String name)
Find a persistent group object from a given directory and group name |
void |
remove(com.atlassian.crowd.model.group.Group group)
|
void |
removeAllGroups(long directoryId)
Remove all groups from a particular directory (used when deleting an internal directory) |
com.atlassian.crowd.util.BatchResult<java.lang.String> |
removeAllGroups(long directoryId,
java.util.Set<java.lang.String> groupNames)
|
void |
removeAttribute(com.atlassian.crowd.model.group.Group group,
java.lang.String attributeName)
|
com.atlassian.crowd.model.group.Group |
rename(com.atlassian.crowd.model.group.Group group,
java.lang.String newName)
|
|
search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
|
void |
setBatchFinder(com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder)
|
void |
setBatchProcessor(com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor batchProcessor)
|
void |
setDirectoryDao(com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao)
|
void |
setInternalMembershipDao(InternalMembershipDao membershipDao)
|
void |
storeAttributes(com.atlassian.crowd.model.group.Group group,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
|
com.atlassian.crowd.model.group.Group |
update(com.atlassian.crowd.model.group.Group group)
|
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 |
HibernateGroupDao
public HibernateGroupDao()
findByName
public com.atlassian.crowd.model.group.InternalDirectoryGroup findByName(long directoryId,
java.lang.String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
findByName
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
removeAllGroups
public com.atlassian.crowd.util.BatchResult<java.lang.String> removeAllGroups(long directoryId,
java.util.Set<java.lang.String> groupNames)
- Specified by:
removeAllGroups
in interface com.atlassian.crowd.embedded.spi.GroupDao
findByNameWithAttributes
public com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId,
java.lang.String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
findByNameWithAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
addAll
public com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> addAll(java.util.Set<? extends com.atlassian.crowd.model.group.Group> groups)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
addAll
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
add
public com.atlassian.crowd.model.group.Group add(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
add
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
addLocal
public com.atlassian.crowd.model.group.Group addLocal(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
addLocal
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
update
public com.atlassian.crowd.model.group.Group update(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
update
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
rename
public com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group,
java.lang.String newName)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
rename
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
internalFindByGroup
public com.atlassian.crowd.model.group.InternalGroup internalFindByGroup(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Description copied from interface:
InternalGroupDao
- Find the persistent group object that corresponds to the provided group.
- Specified by:
internalFindByGroup
in interface InternalGroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
removeAllGroups
public void removeAllGroups(long directoryId)
- Description copied from interface:
InternalGroupDao
- Remove all groups from a particular directory (used when deleting an internal directory)
- Specified by:
removeAllGroups
in interface InternalGroupDao
storeAttributes
public void storeAttributes(com.atlassian.crowd.model.group.Group group,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
storeAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
removeAttribute
public void removeAttribute(com.atlassian.crowd.model.group.Group group,
java.lang.String attributeName)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
removeAttribute
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
remove
public void remove(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
remove
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
search
public <T> java.util.List<T> search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
- Specified by:
search
in interface com.atlassian.crowd.embedded.spi.GroupDao
setDirectoryDao
public void setDirectoryDao(com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao)
internalFindByName
public com.atlassian.crowd.model.group.InternalGroup internalFindByName(long directoryId,
java.lang.String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Description copied from interface:
InternalGroupDao
- Find a persistent group object from a given directory and group name
- Specified by:
internalFindByName
in interface InternalGroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
setInternalMembershipDao
public void setInternalMembershipDao(InternalMembershipDao membershipDao)
setBatchProcessor
public void setBatchProcessor(com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor batchProcessor)
setBatchFinder
public void setBatchFinder(com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder)
Copyright © 2003-2014 Atlassian. All Rights Reserved.