public abstract class AbstractAuthorizableAction extends java.lang.Object implements AuthorizableAction
AuthorizableAction
interface that
doesn't perform any action. This is a convenience implementation allowing
subclasses to only implement methods that need extra attention.Constructor and Description |
---|
AbstractAuthorizableAction() |
Modifier and Type | Method and Description |
---|---|
void |
init(@NotNull SecurityProvider securityProvider,
@NotNull ConfigurationParameters config)
Doesn't perform any action.
|
void |
onCreate(@NotNull Group group,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Doesn't perform any action.
|
void |
onCreate(@NotNull User user,
@Nullable java.lang.String password,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Doesn't perform any action.
|
void |
onPasswordChange(@NotNull User user,
@Nullable java.lang.String newPassword,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Doesn't perform any action.
|
void |
onRemove(@NotNull Authorizable authorizable,
@NotNull Root root,
@NotNull NamePathMapper namePathMapper)
Doesn't perform any action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onCreate
public void init(@NotNull @NotNull SecurityProvider securityProvider, @NotNull @NotNull ConfigurationParameters config)
init
in interface AuthorizableAction
securityProvider
- The security provider present with the repositoryconfig
- The configuration parameters for this action.public void onCreate(@NotNull @NotNull Group group, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
onCreate
in interface AuthorizableAction
group
- The new group that has not yet been persisted;
e.g. the associated tree is still 'NEW'.root
- The root associated with the user manager.RepositoryException
- If an error occurs.public void onCreate(@NotNull @NotNull User user, @Nullable @Nullable java.lang.String password, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
onCreate
in interface AuthorizableAction
user
- The new user that has not yet been persisted;
e.g. the associated tree is still 'NEW'.password
- The password that was specified upon user creation.root
- The root associated with the user manager.RepositoryException
- If an error occurs.public void onRemove(@NotNull @NotNull Authorizable authorizable, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
onRemove
in interface AuthorizableAction
authorizable
- The authorizable to be removed.root
- The root associated with the user manager.RepositoryException
- If an error occurs.public void onPasswordChange(@NotNull @NotNull User user, @Nullable @Nullable java.lang.String newPassword, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
onPasswordChange
in interface AuthorizableAction
user
- The user that whose password is going to change.newPassword
- The new password as specified in User.changePassword(java.lang.String)
root
- The root associated with the user manager.RepositoryException
- If an exception or error occurs.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.