org.apache.jackrabbit.core.security.user.action
Class AbstractAuthorizableAction

java.lang.Object
  extended by org.apache.jackrabbit.core.security.user.action.AbstractAuthorizableAction
All Implemented Interfaces:
AuthorizableAction
Direct Known Subclasses:
AccessControlAction, ClearMembershipAction, PasswordValidationAction

public abstract class AbstractAuthorizableAction
extends Object
implements AuthorizableAction

Abstract implementation of the AuthorizableAction interface that doesn't perform any action. This is a convenience implementation allowing subclasses to only implement methods that need extra attention.


Constructor Summary
AbstractAuthorizableAction()
           
 
Method Summary
 void onCreate(org.apache.jackrabbit.api.security.user.Group group, Session session)
          Doesn't perform any action.
 void onCreate(org.apache.jackrabbit.api.security.user.User user, String password, Session session)
          Doesn't perform any action.
 void onPasswordChange(org.apache.jackrabbit.api.security.user.User user, String newPassword, Session session)
          Doesn't perform any action.
 void onRemove(org.apache.jackrabbit.api.security.user.Authorizable authorizable, Session session)
          Doesn't perform any action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuthorizableAction

public AbstractAuthorizableAction()
Method Detail

onCreate

public void onCreate(org.apache.jackrabbit.api.security.user.Group group,
                     Session session)
              throws RepositoryException
Doesn't perform any action.

Specified by:
onCreate in interface AuthorizableAction
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.
See Also:
AuthorizableAction.onCreate(org.apache.jackrabbit.api.security.user.Group, javax.jcr.Session)

onCreate

public void onCreate(org.apache.jackrabbit.api.security.user.User user,
                     String password,
                     Session session)
              throws RepositoryException
Doesn't perform any action.

Specified by:
onCreate in interface AuthorizableAction
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.
See Also:
AuthorizableAction.onCreate(org.apache.jackrabbit.api.security.user.User, String, javax.jcr.Session)

onRemove

public void onRemove(org.apache.jackrabbit.api.security.user.Authorizable authorizable,
                     Session session)
              throws RepositoryException
Doesn't perform any action.

Specified by:
onRemove in interface AuthorizableAction
Parameters:
authorizable - The authorizable to be removed.
session - The editing session associated with the user manager.
Throws:
RepositoryException - If an error occurs.
See Also:
AuthorizableAction.onRemove(org.apache.jackrabbit.api.security.user.Authorizable, javax.jcr.Session)

onPasswordChange

public void onPasswordChange(org.apache.jackrabbit.api.security.user.User user,
                             String newPassword,
                             Session session)
                      throws RepositoryException
Doesn't perform any action.

Specified by:
onPasswordChange in interface AuthorizableAction
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.
See Also:
AuthorizableAction.onPasswordChange(org.apache.jackrabbit.api.security.user.User, String, javax.jcr.Session)


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