Interface ApplicationDefaultGroupMembershipConfigurationDao
- All Known Implementing Classes:
ApplicationDefaultGroupMembershipConfigurationDaoHibernate
public interface ApplicationDefaultGroupMembershipConfigurationDao
Hibernate DAO for managing application default group memberships
- Since:
- v3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) Adds a new default group membership for the given application and group.listAll
(Application application, ApplicationDirectoryMapping directoryMapping) Lists all default group membership configurations for the given application/directory combinationvoid
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.
-
Method Details
-
add
void add(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Adds a new default group membership for the given application and group.- 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
void remove(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Removes a default group membership configuration for the given application and group.- 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
void removeAll(Application application, ApplicationDirectoryMapping directoryMapping) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Removes all default group membership configurations for the given application and directory combination.- 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
List<InternalApplicationDefaultGroupMembershipConfiguration> listAll(Application application, ApplicationDirectoryMapping directoryMapping) throws DirectoryMappingNotFoundException, ApplicationNotFoundException Lists all default group membership configurations for the given application/directory combination- 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
-