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. IfGroup.removeMember(Authorizable)
fails due to lack of permissionsAuthorizableAction.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 Summary
Constructors Constructor Description ClearMembershipAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRemove(@NotNull Authorizable authorizable, @NotNull Root root, @NotNull NamePathMapper namePathMapper)
Doesn't perform any action.-
Methods inherited from class org.apache.jackrabbit.oak.spi.security.user.action.AbstractAuthorizableAction
init, onCreate, onCreate, onPasswordChange
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableAction
onCreate
-
-
-
-
Method Detail
-
onRemove
public void onRemove(@NotNull @NotNull Authorizable authorizable, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
Description copied from class:AbstractAuthorizableAction
Doesn't perform any action.- Specified by:
onRemove
in interfaceAuthorizableAction
- Overrides:
onRemove
in classAbstractAuthorizableAction
- Parameters:
authorizable
- The authorizable to be removed.root
- The root associated with the user manager.- Throws:
RepositoryException
- If an error occurs.
-
-