|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPolicyClient
Communication interface with PolicyEngine.
PolicyClientFactory
Method Summary | |
---|---|
void |
clearPolicyCache()
For each top-level save objects call from JAXR, the list of policies applicable for a (objectType, eventType) pair will be cached in the policy client This method will clear the cache of policies. |
void |
continuePolicyAction(java.lang.String executeAsUser,
java.lang.String password,
PolicyActionInstance policyAction,
ResultStatus status,
java.lang.String sessionId,
java.lang.String message)
|
void |
continuePolicyAction(java.lang.String executeAsUser,
java.lang.String password,
PolicyActionInstance policyAction,
ResultStatus status,
java.lang.String sessionId,
java.lang.String message,
boolean useSameConnection)
|
IPolicyStatus |
executeConsumerRegistration(javax.xml.registry.infomodel.RegistryObject asset,
java.lang.String requestId,
java.lang.String usersAndGroupIds,
java.lang.String consumerApplicationIds)
Submits Consumer Registration event to the Policy Engine |
IPolicyStatus |
executePostDelete(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with PostDelete event. |
IPolicyStatus |
executePostInsert(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with PostInsert event. |
IPolicyStatus |
executePostStateChange(javax.xml.registry.infomodel.RegistryObject regObj,
javax.xml.registry.infomodel.Concept fromState,
javax.xml.registry.infomodel.Concept toState)
Submits PostStateChange event to the Policy Engine |
IPolicyStatus |
executePostUpdate(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with PostUpdate event. |
IPolicyStatus |
executePreDelete(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with PreDelete event. |
IPolicyStatus |
executePreInsert(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with PreInsert event. |
IPolicyStatus |
executePreStateChange(javax.xml.registry.infomodel.RegistryObject regObj,
javax.xml.registry.infomodel.Concept fromState,
javax.xml.registry.infomodel.Concept toState)
Submits preStateChange event to the Policy Engine |
IPolicyStatus |
executePreUpdate(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with PreUpdate event. |
java.util.Collection |
getContextObjects(java.lang.String qualifier)
Gets the objects that are available in the policy context under the specified qualifier. |
void |
log(PolicyActionInstance policyAction,
ResultStatus status,
java.lang.String sessionId,
java.lang.String message)
logs the entry to all appenders and triggers all registered listeners. |
void |
log(PolicyActionInstance policyAction,
ResultStatus status,
java.lang.String sessionId,
java.lang.String message,
boolean useSameConnection)
logs the entry to all appenders and triggers all registered listeners. |
void |
onCollect(javax.xml.registry.infomodel.RegistryObject regObj)
|
ResultStatus |
onConsumerRegistration(javax.xml.registry.infomodel.RegistryObject asset,
java.lang.String requestId,
java.lang.String usersAndGroupIds,
java.lang.String consumerApplicationIds)
Deprecated. |
void |
onExport(javax.xml.registry.infomodel.RegistryObject registryObject,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
|
void |
onMove(javax.xml.registry.infomodel.RegistryObject regObj)
Submits the registry object to the PolicyEngine with OnMove event. |
void |
onPostDelete(javax.xml.registry.infomodel.RegistryObject regObj)
Deprecated. |
void |
onPostInsert(javax.xml.registry.infomodel.RegistryObject regObj)
Deprecated. |
void |
onPostUpdate(javax.xml.registry.infomodel.RegistryObject regObj)
Deprecated. |
void |
onPreDelete(javax.xml.registry.infomodel.RegistryObject regObj)
Deprecated. |
void |
onPreInsert(javax.xml.registry.infomodel.RegistryObject regObj)
Deprecated. |
void |
onPreUpdate(javax.xml.registry.infomodel.RegistryObject regObj)
Deprecated. |
java.util.List<java.lang.String> |
onTrigger(Policy policy,
java.util.List<javax.xml.registry.infomodel.RegistryObject> regObjs)
Returns the collection of Policy Logs |
java.lang.String |
onTrigger(Policy policy,
java.util.List<javax.xml.registry.infomodel.RegistryObject> registryObjects,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> policyCallbackList,
java.util.HashMap<java.lang.String,java.lang.Object> additionalInput)
|
java.lang.String |
onTrigger(Policy policy,
javax.xml.registry.infomodel.RegistryObject regObjs,
java.util.Map addlPolicyContextParms)
Returns the collection of Policy Logs |
ResultStatus |
postStateChange(javax.xml.registry.infomodel.RegistryObject regObj,
javax.xml.registry.infomodel.Concept fromState,
javax.xml.registry.infomodel.Concept toState)
Deprecated. |
ResultStatus |
preStateChange(javax.xml.registry.infomodel.RegistryObject regObj,
javax.xml.registry.infomodel.Concept fromState,
javax.xml.registry.infomodel.Concept toState)
Deprecated. |
void |
resetParameterContext(java.lang.String qualifier)
Reset the parameter object from the policy context map. |
void |
setParameterContext(java.lang.String qualifier,
java.lang.Object parameters)
Set a parameter object into the context map for the policy execution with a qualifier. |
Method Detail |
---|
@Deprecated void onPreInsert(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the event is generated.
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePreInsert(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated void onPostInsert(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the event is generated.
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePostInsert(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated void onPreUpdate(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the event is generated.
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePreUpdate(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated void onPostUpdate(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the event is generated.
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePostUpdate(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated void onPreDelete(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the event is generated.
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePreDelete(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated void onPostDelete(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the event is generated.
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePostDelete(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated ResultStatus preStateChange(javax.xml.registry.infomodel.RegistryObject regObj, javax.xml.registry.infomodel.Concept fromState, javax.xml.registry.infomodel.Concept toState) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the state change is initiatedfromState
- from state of the Registry ObjecttoState
- to state of the Registry Object
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePreStateChange(javax.xml.registry.infomodel.RegistryObject regObj, javax.xml.registry.infomodel.Concept fromState, javax.xml.registry.infomodel.Concept toState) throws javax.xml.registry.JAXRException, PolicyException
regObj
- fromState
- toState
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated ResultStatus postStateChange(javax.xml.registry.infomodel.RegistryObject regObj, javax.xml.registry.infomodel.Concept fromState, javax.xml.registry.infomodel.Concept toState) throws javax.xml.registry.JAXRException, PolicyException
regObj
- RegistryObject for which the state change is initiatedfromState
- from state of the Registry ObjecttoState
- to state of the Registry Object
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executePostStateChange(javax.xml.registry.infomodel.RegistryObject regObj, javax.xml.registry.infomodel.Concept fromState, javax.xml.registry.infomodel.Concept toState) throws javax.xml.registry.JAXRException, PolicyException
regObj
- fromState
- toState
-
javax.xml.registry.JAXRException
PolicyException
@Deprecated ResultStatus onConsumerRegistration(javax.xml.registry.infomodel.RegistryObject asset, java.lang.String requestId, java.lang.String usersAndGroupIds, java.lang.String consumerApplicationIds) throws javax.xml.registry.JAXRException, PolicyException
asset
- Asset on which the Request is generatedrequestId
- Consumer Registration RequestusersAndGroupIds
- Users and Groups for which the request is madeconsumerApplicationIds
- ConsumerApplications for which the request is made
javax.xml.registry.JAXRException
PolicyException
IPolicyStatus executeConsumerRegistration(javax.xml.registry.infomodel.RegistryObject asset, java.lang.String requestId, java.lang.String usersAndGroupIds, java.lang.String consumerApplicationIds) throws javax.xml.registry.JAXRException, PolicyException
asset
- requestId
- usersAndGroupIds
- consumerApplicationIds
-
javax.xml.registry.JAXRException
PolicyException
java.util.List<java.lang.String> onTrigger(Policy policy, java.util.List<javax.xml.registry.infomodel.RegistryObject> regObjs) throws javax.xml.registry.JAXRException, PolicyException
policy
- PolicyInstance to be executedregObjs
- Registry Objects on which the Policy to be executed. If this is empty then all matching objects
will be choosen for execution
javax.xml.registry.JAXRException
PolicyException
java.lang.String onTrigger(Policy policy, javax.xml.registry.infomodel.RegistryObject regObjs, java.util.Map addlPolicyContextParms) throws javax.xml.registry.JAXRException, PolicyException
policy
- PolicyInstance to be executedregObj
- Registry Objects on which the Policy to be executed.addlPolicyContextParms
- Mapjavax.xml.registry.JAXRException
PolicyException
void log(PolicyActionInstance policyAction, ResultStatus status, java.lang.String sessionId, java.lang.String message) throws javax.xml.registry.JAXRException, PolicyException
policyAction
- PolicyActionInstance which needs to be loggedstatus
- Status of the executionsessionId
- Id of the sessionmessage
- Message of the execution
javax.xml.registry.JAXRException
PolicyException
void log(PolicyActionInstance policyAction, ResultStatus status, java.lang.String sessionId, java.lang.String message, boolean useSameConnection) throws javax.xml.registry.JAXRException, PolicyException
policyAction
- PolicyActionInstance which needs to be loggedstatus
- Status of the executionsessionId
- Id of the sessionmessage
- Message of the executionuseSameConnection
-
javax.xml.registry.JAXRException
PolicyException
void continuePolicyAction(java.lang.String executeAsUser, java.lang.String password, PolicyActionInstance policyAction, ResultStatus status, java.lang.String sessionId, java.lang.String message) throws javax.xml.registry.JAXRException, PolicyException
executeAsUser
- policyAction
- status
- sessionId
- message
-
javax.xml.registry.JAXRException
PolicyException
void continuePolicyAction(java.lang.String executeAsUser, java.lang.String password, PolicyActionInstance policyAction, ResultStatus status, java.lang.String sessionId, java.lang.String message, boolean useSameConnection) throws javax.xml.registry.JAXRException, PolicyException
executeAsUser
- policyAction
- status
- sessionId
- message
- useSameConnection
-
javax.xml.registry.JAXRException
PolicyException
void clearPolicyCache()
void onMove(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
regObj
- Registry Object to be moved
javax.xml.registry.JAXRException
PolicyException
void onCollect(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException, PolicyException
collectorPolicy
- registryObjects
-
javax.xml.registry.JAXRException
PolicyException
java.lang.String onTrigger(Policy policy, java.util.List<javax.xml.registry.infomodel.RegistryObject> registryObjects, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> policyCallbackList, java.util.HashMap<java.lang.String,java.lang.Object> additionalInput) throws javax.xml.registry.JAXRException, PolicyException
policy
- registryObjects
- additionalInput
-
javax.xml.registry.JAXRException
PolicyException
void onExport(javax.xml.registry.infomodel.RegistryObject registryObject, java.util.Map<java.lang.String,java.lang.Object> parameterMap) throws javax.xml.registry.JAXRException, PolicyException
registryObject
- parameters
-
javax.xml.registry.JAXRException
PolicyException
void setParameterContext(java.lang.String qualifier, java.lang.Object parameters)
qualifier
- a qualifier (key for the used context Map)parameters
- any parametersvoid resetParameterContext(java.lang.String qualifier)
qualifier
- a qualifier (key for the used context Map)java.util.Collection getContextObjects(java.lang.String qualifier) throws java.lang.Exception
qualifier
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |