Class NoOpDefaultGroupMembershipService

java.lang.Object
com.atlassian.crowd.manager.application.NoOpDefaultGroupMembershipService
All Implemented Interfaces:
DefaultGroupMembershipService

public class NoOpDefaultGroupMembershipService extends Object implements DefaultGroupMembershipService
A no-op implementation of DefaultGroupMembershipService, meant to be used in products
Since:
v3.1.0
  • Constructor Details

    • NoOpDefaultGroupMembershipService

      public NoOpDefaultGroupMembershipService()
  • Method Details

    • add

      public void add(Application application, ApplicationDirectoryMapping directoryMapping, String groupName) throws OperationFailedException
      Description copied from interface: DefaultGroupMembershipService
      Adds a new default group membership for the given application and group.
      Specified by:
      add in interface DefaultGroupMembershipService
      Parameters:
      application - the application for which the default group membership will be created
      directoryMapping - directory mapping between the application and the directory from which the group originates, must be added to the application before calling this method
      groupName - 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: DefaultGroupMembershipService
      Removes a default group membership configuration for the given application and group.
      Specified by:
      remove in interface DefaultGroupMembershipService
      Parameters:
      application - the application for which the default group membership will be removed
      directoryMapping - directory mapping between the application and the directory from which the group originates, must be added to the application before calling this method
      groupName - 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: DefaultGroupMembershipService
      Lists all default group membership configurations for the given application/directory combination
      Specified by:
      listAll in interface DefaultGroupMembershipService
      Parameters:
      application - the application for which the default group memberships should be listed
      directoryMapping - 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