Interface AuthorizableAction
-
- All Known Implementing Classes:
AbstractAuthorizableAction
,AccessControlAction
,ClearMembershipAction
,PasswordValidationAction
public interface AuthorizableAction
TheAuthorizableAction
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 callingUserManagerImpl.setAuthorizableActions(AuthorizableAction[])
.- See Also:
UserManagerConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
onCreate
void onCreate(Group group, Session session) throws RepositoryException
Allows to add application specific modifications or validation associated with the creation of a new group. Note, that this method is called before anySession.save
call.- Parameters:
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.- Throws:
RepositoryException
- If an error occurs.
-
onCreate
void onCreate(User user, String password, Session session) throws RepositoryException
Allows to add application specific modifications or validation associated with the creation of a new user. Note, that this method is called before anySession.save
call.- Parameters:
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.- Throws:
RepositoryException
- If an error occurs.
-
onRemove
void onRemove(Authorizable authorizable, Session session) throws RepositoryException
Allows to add application specific behavior associated with the removal of an authorizable. Note, that this method is called beforeAuthorizable.remove()
is executed (and persisted); thus the target authorizable still exists.- Parameters:
authorizable
- The authorizable to be removed.session
- The editing session associated with the user manager.- Throws:
RepositoryException
- If an error occurs.
-
onPasswordChange
void onPasswordChange(User user, String newPassword, Session session) throws RepositoryException
Allows to add application specific action or validation associated with changing a user password. Note, that this method is called before the password property is being modified in the content.- Parameters:
user
- The user that whose password is going to change.newPassword
- The new password as specified inUser.changePassword(java.lang.String)
session
- The editing session associated with the user manager.- Throws:
RepositoryException
- If an exception or error occurs.
-
-