Class DefaultGroupMembershipServiceImpl
java.lang.Object
com.atlassian.crowd.manager.application.DefaultGroupMembershipServiceImpl
- All Implemented Interfaces:
DefaultGroupMembershipService
@Transactional
public class DefaultGroupMembershipServiceImpl
extends Object
implements DefaultGroupMembershipService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGroupMembershipServiceImpl(ApplicationDefaultGroupMembershipConfigurationDao applicationDefaultGroupMembershipConfigurationDao) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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 combinationvoidremove(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) Removes a default group membership configuration for the given application and group.
-
Constructor Details
-
DefaultGroupMembershipServiceImpl
public DefaultGroupMembershipServiceImpl(ApplicationDefaultGroupMembershipConfigurationDao applicationDefaultGroupMembershipConfigurationDao)
-
-
Method Details
-
add
public void add(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws OperationFailedException Description copied from interface:DefaultGroupMembershipServiceAdds a new default group membership for the given application and group.- Specified by:
addin interfaceDefaultGroupMembershipService- 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 originates, must be added to the application before calling this methodgroupName- the name of the group in the default group membership configuration- Throws:
OperationFailedException- when the directory mapping does not exist
-
remove
public void remove(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws OperationFailedException Description copied from interface:DefaultGroupMembershipServiceRemoves a default group membership configuration for the given application and group.- Specified by:
removein interfaceDefaultGroupMembershipService- 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 originates, must be added to the application before calling this methodgroupName- the name of the group in the default group membership configuration- Throws:
OperationFailedException- when the directory mapping does not exist
-
listAll
public List<String> listAll(Application application, ApplicationDirectoryMapping directoryMapping) throws OperationFailedException Description copied from interface:DefaultGroupMembershipServiceLists all default group membership configurations for the given application/directory combination- Specified by:
listAllin interfaceDefaultGroupMembershipService- 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, must be added to the application before calling this method- Returns:
- a list of group names representing the default group memberships for the given application/directory combination
- Throws:
OperationFailedException- when the directory mapping does not exist
-