|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChangeLogManager
This interface represents the change log manager that is used to query for incremental changes in policy (grants) and application roles. Following Code snippet shows how to obtain an instance of ChangeLogManager:
JpsContextFactory f = JpsContextFactory.getContextFactory(); // get context factory
JpsContext c = f.getContext(); // get jps context
PolicyStore ps = JpsContext.getServiceInstance(PolicyStore.class); // get policy store as the first step (OID policy store instance must be defined in jps-config.xml)
ApplicationPolicy ap = ps.getApplicationPolicy(appId); //get the application policy object from policy store using appId
ChangeLogManager clm = ap.getEntityManager(ChangeLogManager.class); // get the change log manager using getEntityManager() API
Nested Class Summary | |
---|---|
static class |
ChangeLogManager.ChangeLogEntity Supported change log entities |
Method Summary | |
---|---|
java.util.List<AppRoleEntry> |
getApplicationRoles(ChangeLogSearchQuery query) Returns the added AND modified roles in the current application policy after the timestamp specified in the query The timestamp must be obtained from the API: ChangeLogManager.getLastModifiedTimeStamp(String, ChangeLogEntity) Note that the returned list may contain duplicates of Application Roles returned earlier. |
java.util.List<AppRoleEntry> |
getDeletedAppRoles(ChangeLogSearchQuery query) Returns all approles deleted from the current application policy after the supplied timestamp |
java.util.List<PermissionEntry> |
getDeletedPermissions(ChangeLogSearchQuery query) Returns all permissions deleted from the current application policy after the supplied timestamp. |
java.lang.String |
getLastModifiedTimeStamp(java.lang.String oldtimeStamp, ChangeLogManager.ChangeLogEntity ent) Gets the last known time stamp (of change) to the ChangeLogEntity ent after the timeStamp provided. |
java.util.List<GrantEntry> |
getPolicies(ChangeLogSearchQuery query) Returns the added AND modified policies (grant entries) in the current application policy after the timestamp specified in the query The timestamp must be obtained from the API: ChangeLogManager.getLastModifiedTimeStamp(String, ChangeLogEntity) Note that the returned list may contain duplicates of grantes already returned earlier. |
Methods inherited from interface oracle.security.jps.service.policystore.entitymanager.EntityManager |
---|
resolveReference |
Method Detail |
---|
java.lang.String getLastModifiedTimeStamp(java.lang.String oldtimeStamp, ChangeLogManager.ChangeLogEntity ent) throws PolicyStoreException
oldtimeStamp
- time stamp after when the last maximum time stamp is saught.ent
- ChangeLogEntity that is being queried for last time stampPolicyStoreException
- if there is an error while retrieving the timestampjava.util.List<AppRoleEntry> getApplicationRoles(ChangeLogSearchQuery query) throws PolicyStoreException
ChangeLogManager.getLastModifiedTimeStamp(String, ChangeLogEntity)
query
- Specifies the create/modify timestamp to search from. ChangeLogSearchQuery
PolicyStoreException
- if unable to read from the policy storejava.util.List<GrantEntry> getPolicies(ChangeLogSearchQuery query) throws PolicyStoreException
ChangeLogManager.getLastModifiedTimeStamp(String, ChangeLogEntity)
query
- Specifies the create/modify timestamp to search from. ChangeLogSearchQuery
PolicyStoreException
- if unable to read from the policy storejava.util.List<AppRoleEntry> getDeletedAppRoles(ChangeLogSearchQuery query) throws PolicyStoreException
query
- Specifies delete time stamp past which the deleted app roles are to be searched. The timestamp must be obtained from ChangeLogManager.getLastModifiedTimeStamp(String, ChangeLogEntity)
PolicyStoreException
- if unable to read from the policy storejava.util.List<PermissionEntry> getDeletedPermissions(ChangeLogSearchQuery query) throws PolicyStoreException
query
- Specifies delete time stamp past which the deleted policies are to be searched. The timestamp must be obtained from ChangeLogManager.getLastModifiedTimeStamp(String, ChangeLogEntity)
PolicyStoreException
- if unable to read from the policy store
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |