Class AbstractAuthorizableAction
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.user.action.AbstractAuthorizableAction
-
- All Implemented Interfaces:
AuthorizableAction
- Direct Known Subclasses:
AbstractGroupAction
,AccessControlAction
,ClearMembershipAction
,PasswordChangeAction
,PasswordValidationAction
public abstract class AbstractAuthorizableAction extends java.lang.Object implements AuthorizableAction
Abstract implementation of theAuthorizableAction
interface that doesn't perform any action. This is a convenience implementation allowing subclasses to only implement methods that need extra attention.
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthorizableAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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
-
init
public void init(@NotNull @NotNull SecurityProvider securityProvider, @NotNull @NotNull ConfigurationParameters config)
Doesn't perform any action.- Specified by:
init
in interfaceAuthorizableAction
- Parameters:
securityProvider
- The security provider present with the repositoryconfig
- The configuration parameters for this action.
-
onCreate
public void onCreate(@NotNull @NotNull Group group, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
Doesn't perform any action.- Specified by:
onCreate
in interfaceAuthorizableAction
- Parameters:
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.- Throws:
RepositoryException
- If an error occurs.
-
onCreate
public void onCreate(@NotNull @NotNull User user, @Nullable @Nullable java.lang.String password, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
Doesn't perform any action.- Specified by:
onCreate
in interfaceAuthorizableAction
- Parameters:
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.- Throws:
RepositoryException
- If an error occurs.
-
onRemove
public void onRemove(@NotNull @NotNull Authorizable authorizable, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
Doesn't perform any action.- Specified by:
onRemove
in interfaceAuthorizableAction
- Parameters:
authorizable
- The authorizable to be removed.root
- The root associated with the user manager.- Throws:
RepositoryException
- If an error occurs.
-
onPasswordChange
public void onPasswordChange(@NotNull @NotNull User user, @Nullable @Nullable java.lang.String newPassword, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper) throws RepositoryException
Doesn't perform any action.- Specified by:
onPasswordChange
in interfaceAuthorizableAction
- Parameters:
user
- The user that whose password is going to change.newPassword
- The new password as specified inUser.changePassword(java.lang.String)
root
- The root associated with the user manager.- Throws:
RepositoryException
- If an exception or error occurs.
-
-