public interface UserAction extends AuthorizableAction
UserAction interface allows for implementations to be informed
about and react to the following changes to a User:
See AuthorizableAction for details on persisting changes,
configuring actions and the API through which actions are invoked.
| Modifier and Type | Method and Description |
|---|---|
void |
onDisable(@NotNull User user,
@Nullable java.lang.String disableReason,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Allows to add application specific behavior associated with disabling (or
re-enabling) an user.
|
void |
onGrantImpersonation(@NotNull User user,
@NotNull java.security.Principal principal,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Allows to add application specific behavior associated with granting a given
principal the ability to impersonate the user.
|
void |
onRevokeImpersonation(@NotNull User user,
@NotNull java.security.Principal principal,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Allows to add application specific behavior associated with revoking a given
principal the ability to impersonate the user.
|
init, onCreate, onCreate, onPasswordChange, onRemovevoid onDisable(@NotNull
@NotNull User user,
@Nullable
@Nullable java.lang.String disableReason,
@NotNull
@NotNull Root root,
@NotNull
@NotNull NamePathMapper namePathMapper)
throws RepositoryException
user - The user to be disabled or re-enabled.disableReason - The reason passed to User.disable(String) or null if the user is to be enabled again.root - The root associated with the user manager.namePathMapper - The mapper associated with the user manager.RepositoryException - If an error occurs.void onGrantImpersonation(@NotNull
@NotNull User user,
@NotNull
@NotNull java.security.Principal principal,
@NotNull
@NotNull Root root,
@NotNull
@NotNull NamePathMapper namePathMapper)
throws RepositoryException
user - The user associated with the given Impersonation.grantImpersonation(Principal) call.principal - The target principal to be granted impersonation.root - The root associated with the user manager.namePathMapper - The mapper associated with the user manager.RepositoryException - If an error occurs.void onRevokeImpersonation(@NotNull
@NotNull User user,
@NotNull
@NotNull java.security.Principal principal,
@NotNull
@NotNull Root root,
@NotNull
@NotNull NamePathMapper namePathMapper)
throws RepositoryException
user - The user associated with the given Impersonation.revokeImpersonation(Principal) call.principal - The target principal for which impersonation is revoked.root - The root associated with the user manager.namePathMapper - The mapper associated with the user manager.RepositoryException - If an error occurs.Copyright © 2010 - 2023 Adobe. All Rights Reserved