public interface AuthorizableAction
AuthorizableAction
interface provide an implementation
specific way to execute additional validation or write tasks upon
The actions are attached to a given UserManager instance upon creation
by calling UserManagerImpl.setAuthorizableActions(AuthorizableAction[])
.UserManagerConfig
Modifier and Type | Method and Description |
---|---|
void |
onCreate(Group group,
Session session)
Allows to add application specific modifications or validation associated
with the creation of a new group.
|
void |
onCreate(User user,
String password,
Session session)
Allows to add application specific modifications or validation associated
with the creation of a new user.
|
void |
onPasswordChange(User user,
String newPassword,
Session session)
Allows to add application specific action or validation associated with
changing a user password.
|
void |
onRemove(Authorizable authorizable,
Session session)
Allows to add application specific behavior associated with the removal
of an authorizable.
|
void onCreate(Group group, Session session) throws RepositoryException
Session.save
call.group
- The new group that has not yet been persisted;
e.g. the associated node is still 'NEW'.session
- The editing session associated with the user manager.RepositoryException
- If an error occurs.void onCreate(User user, String password, Session session) throws RepositoryException
Session.save
call.user
- The new user that has not yet been persisted;
e.g. the associated node is still 'NEW'.password
- The password that was specified upon user creation.session
- The editing session associated with the user manager.RepositoryException
- If an error occurs.void onRemove(Authorizable authorizable, Session session) throws RepositoryException
Authorizable.remove()
is executed (and persisted); thus the
target authorizable still exists.authorizable
- The authorizable to be removed.session
- The editing session associated with the user manager.RepositoryException
- If an error occurs.void onPasswordChange(User user, String newPassword, Session session) throws RepositoryException
user
- The user that whose password is going to change.newPassword
- The new password as specified in User.changePassword(java.lang.String)
session
- The editing session associated with the user manager.RepositoryException
- If an exception or error occurs.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.