org.safehaus.triplesec.guardian
Interface PolicyChangeListener

All Known Implementing Classes:
PolicyChangeAdapter

public interface PolicyChangeListener

A policy change listener interested in changes to an application's access policy which is managed by TripleSec.

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

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.
 

Method Detail

roleChanged

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

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

void roleRenamed(ApplicationPolicy policy,
                 Role role,
                 java.lang.String oldName)
Notification method called when a role is renamed.

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

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

Parameters:
policy - the application policy containing the permission
permission - the permission that was changed
changeType - the type of change: add, delete or modify.

permissionRenamed

void permissionRenamed(ApplicationPolicy policy,
                       Permission permission,
                       java.lang.String oldName)
Notification method called when a permission is renamed.

Parameters:
policy - the application policy containing the permission
permission - the permission that was renamed
oldName - the old name of the permission

profileChanged

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

Parameters:
policy - the application policy containing the profile
profile - the profile that changed
changeType - the type of change: add, delete or modify.

profileRenamed

void profileRenamed(ApplicationPolicy policy,
                    Profile profile,
                    java.lang.String oldName)
Notification method called when a policy is renamed.

Parameters:
policy - the application policy containing the profile
profile - the profile that was renamed
oldName - the old name of the profile