Class ClearMembershipAction

java.lang.Object
org.apache.jackrabbit.oak.spi.security.user.action.AbstractAuthorizableAction
org.apache.jackrabbit.oak.spi.security.user.action.ClearMembershipAction
All Implemented Interfaces:
AuthorizableAction

public class ClearMembershipAction extends AbstractAuthorizableAction
Authorizable action attempting to clear all group membership before removing the specified authorizable. If Group.removeMember(Authorizable) fails due to lack of permissions AuthorizableAction.onRemove(org.apache.jackrabbit.api.security.user.Authorizable, org.apache.jackrabbit.oak.api.Root, org.apache.jackrabbit.oak.namepath.NamePathMapper) throws an exception and removing the specified authorizable will be aborted. NOTE: If the editing session doesn't have sufficient permission to read all group membership, the clean up might be incomplete.
  • Constructor Details

    • ClearMembershipAction

      public ClearMembershipAction()
  • Method Details

    • onRemove

      public void onRemove(@NotNull @NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable, @NotNull @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws RepositoryException
      Description copied from class: AbstractAuthorizableAction
      Doesn't perform any action.
      Specified by:
      onRemove in interface AuthorizableAction
      Overrides:
      onRemove in class AbstractAuthorizableAction
      Parameters:
      authorizable - The authorizable to be removed.
      root - The root associated with the user manager.
      Throws:
      RepositoryException - If an error occurs.