public class HibernateGroupDao extends org.springframework.orm.hibernate.support.HibernateDaoSupport implements InternalGroupDao
Constructor and Description |
---|
HibernateGroupDao() |
Modifier and Type | Method and Description |
---|---|
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(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,
String name) |
com.atlassian.crowd.model.group.GroupWithAttributes |
findByNameWithAttributes(long directoryId,
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,
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<String> |
removeAllGroups(long directoryId,
Set<String> groupNames) |
void |
removeAttribute(com.atlassian.crowd.model.group.Group group,
String attributeName) |
com.atlassian.crowd.model.group.Group |
rename(com.atlassian.crowd.model.group.Group group,
String newName) |
<T> List<T> |
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,
Map<String,Set<String>> attributes) |
com.atlassian.crowd.model.group.Group |
update(com.atlassian.crowd.model.group.Group group) |
public com.atlassian.crowd.model.group.InternalDirectoryGroup findByName(long directoryId, String name) throws com.atlassian.crowd.exception.GroupNotFoundException
findByName
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.util.BatchResult<String> removeAllGroups(long directoryId, Set<String> groupNames)
removeAllGroups
in interface com.atlassian.crowd.embedded.spi.GroupDao
public com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId, String name) throws com.atlassian.crowd.exception.GroupNotFoundException
findByNameWithAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> addAll(Set<? extends com.atlassian.crowd.model.group.Group> groups) throws com.atlassian.crowd.exception.DirectoryNotFoundException
addAll
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public com.atlassian.crowd.model.group.Group add(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.DirectoryNotFoundException
add
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public com.atlassian.crowd.model.group.Group addLocal(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.DirectoryNotFoundException
addLocal
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public com.atlassian.crowd.model.group.Group update(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.GroupNotFoundException
update
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group, String newName) throws com.atlassian.crowd.exception.GroupNotFoundException
rename
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.InternalGroup internalFindByGroup(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.GroupNotFoundException
InternalGroupDao
internalFindByGroup
in interface InternalGroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void removeAllGroups(long directoryId)
InternalGroupDao
removeAllGroups
in interface InternalGroupDao
public void storeAttributes(com.atlassian.crowd.model.group.Group group, Map<String,Set<String>> attributes) throws com.atlassian.crowd.exception.GroupNotFoundException
storeAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void removeAttribute(com.atlassian.crowd.model.group.Group group, String attributeName) throws com.atlassian.crowd.exception.GroupNotFoundException
removeAttribute
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void remove(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.GroupNotFoundException
remove
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
search
in interface com.atlassian.crowd.embedded.spi.GroupDao
public void setDirectoryDao(com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao)
public com.atlassian.crowd.model.group.InternalGroup internalFindByName(long directoryId, String name) throws com.atlassian.crowd.exception.GroupNotFoundException
InternalGroupDao
internalFindByName
in interface InternalGroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void setInternalMembershipDao(InternalMembershipDao membershipDao)
public void setBatchProcessor(com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor batchProcessor)
public void setBatchFinder(com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder)
Copyright © 2003–2016 Atlassian. All rights reserved.