Class ApplicationDefaultGroupMembershipConfigurationDaoHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao
com.atlassian.crowd.dao.application.ApplicationDefaultGroupMembershipConfigurationDaoHibernate
- All Implemented Interfaces:
ApplicationDefaultGroupMembershipConfigurationDao
public class ApplicationDefaultGroupMembershipConfigurationDaoHibernate
extends HibernateDao
implements ApplicationDefaultGroupMembershipConfigurationDao
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourceFields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) Adds a new default group membership for the given application and group.Class<?> All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.listAll(Application application, ApplicationDirectoryMapping directoryMapping) Lists all default group membership configurations for the given application/directory combinationvoidremove(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) Removes a default group membership configuration for the given application and group.voidremoveAll(Application application, ApplicationDirectoryMapping directoryMapping) Removes all default group membership configurations for the given application and directory combination.voidsetApplicationDAO(ApplicationDAO applicationDAO) Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, updateMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
ApplicationDefaultGroupMembershipConfigurationDaoHibernate
public ApplicationDefaultGroupMembershipConfigurationDaoHibernate()
-
-
Method Details
-
add
public void add(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Description copied from interface:ApplicationDefaultGroupMembershipConfigurationDaoAdds a new default group membership for the given application and group.- Specified by:
addin interfaceApplicationDefaultGroupMembershipConfigurationDao- Parameters:
application- the application for which the default group membership will be createddirectoryMapping- directory mapping between the application and the directory from which the group originatesgroupName- the name of the group in the default group membership configuration- Throws:
DirectoryMappingNotFoundException- when the directory mapping could not be foundApplicationNotFoundException
-
remove
public void remove(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Description copied from interface:ApplicationDefaultGroupMembershipConfigurationDaoRemoves a default group membership configuration for the given application and group.- Specified by:
removein interfaceApplicationDefaultGroupMembershipConfigurationDao- Parameters:
application- the application for which the default group membership will be removeddirectoryMapping- directory mapping between the application and the directory from which the group originatesgroupName- the name of the group in the default group membership configuration- Throws:
DirectoryMappingNotFoundException- when the directory mapping could not be foundApplicationNotFoundException
-
removeAll
public void removeAll(Application application, ApplicationDirectoryMapping directoryMapping) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Description copied from interface:ApplicationDefaultGroupMembershipConfigurationDaoRemoves all default group membership configurations for the given application and directory combination.- Specified by:
removeAllin interfaceApplicationDefaultGroupMembershipConfigurationDao- Parameters:
application- the application for which the default group memberships will be removeddirectoryMapping- directory mapping between the application and the directory from which the group originates- Throws:
DirectoryMappingNotFoundException- when the directory mapping could not be foundApplicationNotFoundException
-
listAll
public List<InternalApplicationDefaultGroupMembershipConfiguration> listAll(Application application, ApplicationDirectoryMapping directoryMapping) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Description copied from interface:ApplicationDefaultGroupMembershipConfigurationDaoLists all default group membership configurations for the given application/directory combination- Specified by:
listAllin interfaceApplicationDefaultGroupMembershipConfigurationDao- Parameters:
application- the application for which the default group memberships should be listeddirectoryMapping- directory mapping between the application and the directory from which the group originates- Returns:
- a list of default group memberships configurations for the given application/directory combination
- Throws:
DirectoryMappingNotFoundException- when the directory mapping could not be foundApplicationNotFoundException
-
setApplicationDAO
-
getPersistentClass
Description copied from class:HibernateDaoAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.- Specified by:
getPersistentClassin classHibernateDao- Returns:
- the entity class for this DAO
-