org.safehaus.triplesec.guardian
Class PolicyChangeAdapter

java.lang.Object
  extended by org.safehaus.triplesec.guardian.PolicyChangeAdapter
All Implemented Interfaces:
PolicyChangeListener

public class PolicyChangeAdapter
extends java.lang.Object
implements PolicyChangeListener

An do nothing convenience adapter for a PolicyChangeListener.

Version:
$Rev$, $Date$
Author:
Alex Karasulu

Constructor Summary
PolicyChangeAdapter()
           
 
Method Summary
 void permissionChanged(ApplicationPolicy policy, Permission permission, ChangeType changeType)
          Notification method called when a permission is added, deleted, or modified.
 void permissionRenamed(ApplicationPolicy policy, Permission permission, java.lang.String oldName)
          Notification method called when a permission is renamed.
 void profileChanged(ApplicationPolicy policy, Profile profile, ChangeType changeType)
          Notification method called when a profile is added, deleted, or modified.
 void profileRenamed(ApplicationPolicy policy, Profile profile, java.lang.String oldName)
          Notification method called when a policy is renamed.
 void roleChanged(ApplicationPolicy policy, Role role, ChangeType changeType)
          Notification method called when a role is added, deleted, or modified.
 void roleRenamed(ApplicationPolicy policy, Role role, java.lang.String oldName)
          Notification method called when a role is renamed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyChangeAdapter

public PolicyChangeAdapter()
Method Detail

roleChanged

public void roleChanged(ApplicationPolicy policy,
                        Role role,
                        ChangeType changeType)
Description copied from interface: PolicyChangeListener
Notification method called when a role is added, deleted, or modified. Another overload is used to handle rename operations on objects.

Specified by:
roleChanged in interface PolicyChangeListener
Parameters:
policy - the application policy containing the role
role - the role that is added, deleted or modified
changeType - the type of change: add, delete or modify.

roleRenamed

public void roleRenamed(ApplicationPolicy policy,
                        Role role,
                        java.lang.String oldName)
Description copied from interface: PolicyChangeListener
Notification method called when a role is renamed.

Specified by:
roleRenamed in interface PolicyChangeListener
Parameters:
policy - the application policy containing the role
role - the role that was renamed and whose getName() returns the new name
oldName - the old name of the role

permissionChanged

public void permissionChanged(ApplicationPolicy policy,
                              Permission permission,
                              ChangeType changeType)
Description copied from interface: PolicyChangeListener
Notification method called when a permission is added, deleted, or modified. Another overload is used to handle rename operations on objects.

Specified by:
permissionChanged in interface PolicyChangeListener
Parameters:
policy - the application policy containing the permission
permission - the permission that was changed
changeType - the type of change: add, delete or modify.

permissionRenamed

public void permissionRenamed(ApplicationPolicy policy,
                              Permission permission,
                              java.lang.String oldName)
Description copied from interface: PolicyChangeListener
Notification method called when a permission is renamed.

Specified by:
permissionRenamed in interface PolicyChangeListener
Parameters:
policy - the application policy containing the permission
permission - the permission that was renamed
oldName - the old name of the permission

profileChanged

public void profileChanged(ApplicationPolicy policy,
                           Profile profile,
                           ChangeType changeType)
Description copied from interface: PolicyChangeListener
Notification method called when a profile is added, deleted, or modified. Another overload is used to handle rename operations on objects.

Specified by:
profileChanged in interface PolicyChangeListener
Parameters:
policy - the application policy containing the profile
profile - the profile that changed
changeType - the type of change: add, delete or modify.

profileRenamed

public void profileRenamed(ApplicationPolicy policy,
                           Profile profile,
                           java.lang.String oldName)
Description copied from interface: PolicyChangeListener
Notification method called when a policy is renamed.

Specified by:
profileRenamed in interface PolicyChangeListener
Parameters:
policy - the application policy containing the profile
profile - the profile that was renamed
oldName - the old name of the profile