public class ApplicationDefaultGroupMembershipConfigurationDaoHibernate extends HibernateDao implements ApplicationDefaultGroupMembershipConfigurationDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
ApplicationDefaultGroupMembershipConfigurationDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
void |
add(Application application,
ApplicationDirectoryMapping directoryMapping,
String groupName)
Adds a new default group membership for the given application and group.
|
Class<?> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
List<InternalApplicationDefaultGroupMembershipConfiguration> |
listAll(Application application,
ApplicationDirectoryMapping directoryMapping)
Lists all default group membership configurations for the given application/directory combination
|
void |
remove(Application application,
ApplicationDirectoryMapping directoryMapping,
String groupName)
Removes a default group membership configuration for the given application and group.
|
void |
removeAll(Application application,
ApplicationDirectoryMapping directoryMapping)
Removes all default group membership configurations for the given application and directory combination.
|
void |
setApplicationDAO(ApplicationDAO applicationDAO) |
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, update
setSessionFactory, withStatelessSession
public ApplicationDefaultGroupMembershipConfigurationDaoHibernate()
public void add(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws DirectoryMappingNotFoundException, ApplicationNotFoundException
ApplicationDefaultGroupMembershipConfigurationDao
add
in interface ApplicationDefaultGroupMembershipConfigurationDao
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 configurationDirectoryMappingNotFoundException
- when the directory mapping could not be foundApplicationNotFoundException
public void remove(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws DirectoryMappingNotFoundException, ApplicationNotFoundException
ApplicationDefaultGroupMembershipConfigurationDao
remove
in interface ApplicationDefaultGroupMembershipConfigurationDao
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 configurationDirectoryMappingNotFoundException
- when the directory mapping could not be foundApplicationNotFoundException
public void removeAll(Application application, ApplicationDirectoryMapping directoryMapping) throws DirectoryMappingNotFoundException, ApplicationNotFoundException
ApplicationDefaultGroupMembershipConfigurationDao
removeAll
in interface ApplicationDefaultGroupMembershipConfigurationDao
application
- the application for which the default group memberships will be removeddirectoryMapping
- directory mapping between the application and the directory from which the group originatesDirectoryMappingNotFoundException
- when the directory mapping could not be foundApplicationNotFoundException
public List<InternalApplicationDefaultGroupMembershipConfiguration> listAll(Application application, ApplicationDirectoryMapping directoryMapping) throws DirectoryMappingNotFoundException, ApplicationNotFoundException
ApplicationDefaultGroupMembershipConfigurationDao
listAll
in interface ApplicationDefaultGroupMembershipConfigurationDao
application
- the application for which the default group memberships should be listeddirectoryMapping
- directory mapping between the application and the directory from which the group originatesDirectoryMappingNotFoundException
- when the directory mapping could not be foundApplicationNotFoundException
@Autowired public void setApplicationDAO(ApplicationDAO applicationDAO)
public Class<?> getPersistentClass()
HibernateDao
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao
Copyright © 2020 Atlassian. All rights reserved.