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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(@NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable, @NotNull org.apache.jackrabbit.oak.api.Root root, @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) Doesn't perform any action.Methods inherited from class org.apache.jackrabbit.oak.spi.security.user.action.AbstractAuthorizableAction
init, onCreate, onCreate, onPasswordChangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.spi.security.user.action.AuthorizableAction
onCreate
-
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:AbstractAuthorizableActionDoesn't perform any action.- Specified by:
onRemovein interfaceAuthorizableAction- Overrides:
onRemovein classAbstractAuthorizableAction- Parameters:
authorizable- The authorizable to be removed.root- The root associated with the user manager.- Throws:
RepositoryException- If an error occurs.
-