org.apache.jackrabbit.core.security.user.action
Interface AuthorizableAction

All Known Implementing Classes:
AbstractAuthorizableAction, AccessControlAction, ClearMembershipAction, PasswordValidationAction

public interface AuthorizableAction

AuthorizableAction...


Method Summary
 void onCreate(org.apache.jackrabbit.api.security.user.Group group, Session session)
          Allows to add application specific modifications or validation associated with the creation of a new group.
 void onCreate(org.apache.jackrabbit.api.security.user.User user, String password, Session session)
          Allows to add application specific modifications or validation associated with the creation of a new user.
 void onPasswordChange(org.apache.jackrabbit.api.security.user.User user, String newPassword, Session session)
          Allows to add application specific action or validation associated with changing a user password.
 void onRemove(org.apache.jackrabbit.api.security.user.Authorizable authorizable, Session session)
          Allows to add application specific behavior associated with the removal of an authorizable.
 

Method Detail

onCreate

void onCreate(org.apache.jackrabbit.api.security.user.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 any Session.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(org.apache.jackrabbit.api.security.user.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 any Session.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(org.apache.jackrabbit.api.security.user.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 before Authorizable.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(org.apache.jackrabbit.api.security.user.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 in User.changePassword(java.lang.String)
session - The editing session associated with the user manager.
Throws:
RepositoryException - If an exception or error occurs.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.