public class PolicyCache extends Object implements ServiceListener
PolicyCache
manages policy cache
for the policy framework.Modifier and Type | Field and Description |
---|---|
static String |
POLICY_STATS |
ADDED, MODIFIED, REMOVED
Modifier and Type | Method and Description |
---|---|
void |
firePrivilegeChanged(String serviceName,
Set affectedResourceNames,
int changeType)
Creates a policyEvent with the changed resource names
and then invokes all the registered PolicyListeners
to notify about the event.
|
static PolicyCache |
getInstance()
Gets the singleton instance of PolicyCache
|
void |
globalConfigChanged(String serviceName,
String version,
String groupName,
String serviceComponent,
int changeType)
This method will be invoked when a service's global configuation
data has been changed.
|
void |
organizationConfigChanged(String serviceName,
String version,
String orgName,
String groupName,
String serviceComponent,
int changeType)
This method will be invoked when a service's organization
configuation data has been changed.
|
void |
schemaChanged(String serviceName,
String version)
This method will be invoked when a service's schema has been changed.
|
void |
sendPolicyChangeNotification(Policy oldPolicy,
Policy newPolicy,
int changeType) |
public static final String POLICY_STATS
public static PolicyCache getInstance() throws PolicyException
PolicyException
- if error.public void schemaChanged(String serviceName, String version)
schemaChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the servicepublic void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int changeType)
globalConfigChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the serviceserviceComponent
- name of the service components that
changedgroupName
- name of the configuration grouping.changeType
- change type, i.e., ADDED, REMOVED or MODIFIED.public void organizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int changeType)
organizationConfigChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the servicegroupName
- orgName
- organization name as DNserviceComponent
- the name of the service components that
changedchangeType
- change type, i.e., ADDED, REMOVED or MODIFIEDpublic void sendPolicyChangeNotification(Policy oldPolicy, Policy newPolicy, int changeType)
public void firePrivilegeChanged(String serviceName, Set affectedResourceNames, int changeType)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.