kaos.policy.obligation.actionInstantiator
Class ObligedActionInstantiatorImpl

java.lang.Object
  extended by kaos.policy.obligation.actionInstantiator.ObligedActionInstantiatorImpl
All Implemented Interfaces:
ObligedActionInstantiator

public final class ObligedActionInstantiatorImpl
extends java.lang.Object
implements ObligedActionInstantiator


Field Summary
static java.lang.String INSTANCE_NOT_PRESENT
           
 
Constructor Summary
ObligedActionInstantiatorImpl()
           
 
Method Summary
 void addRoleValueMapPropertiesToActionInfo(KAoSRoleValueMapContainer policyRVMContainer, java.lang.String rvmId, ActionInfo destinationActionInfo, ActionInstanceDescription sourceAID)
          Copy the role value mapped values from a source AID to a destination ActionInfo
 ObligationActionDescription instantiate(ActionInfo controlAI, ActionInstanceDescription triggerAID)
          Based on the specified ActionInfo for the control action and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.
 ObligationActionDescription instantiate(PolicyInformation controlPolicy, ActionInstanceDescription triggerAID)
          Based on the specified PolicyInformation and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.
protected  void printDebugString(java.lang.String msg, int loggerDisplayLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE_NOT_PRESENT

public static final java.lang.String INSTANCE_NOT_PRESENT
See Also:
Constant Field Values
Constructor Detail

ObligedActionInstantiatorImpl

public ObligedActionInstantiatorImpl()
Method Detail

instantiate

public ObligationActionDescription instantiate(ActionInfo controlAI,
                                               ActionInstanceDescription triggerAID)
Description copied from interface: ObligedActionInstantiator
Based on the specified ActionInfo for the control action and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.

Specified by:
instantiate in interface ObligedActionInstantiator
Parameters:
controlAI - BasicActionDescription specifies the action class, whose ActionInstanceDescription will be created.
triggerAID - ActionInstanceDescription describes the trigger condition instance to be used in instantiation of the control ActionInstanceDescription.
Returns:
ActionInstanceDescription of the control action, whose BasicActionDescription was specified.

instantiate

public ObligationActionDescription instantiate(PolicyInformation controlPolicy,
                                               ActionInstanceDescription triggerAID)
Description copied from interface: ObligedActionInstantiator
Based on the specified PolicyInformation and trigger ActionInstanceDescription, instantiate an ActionInstanceDescription for the control action.

Specified by:
instantiate in interface ObligedActionInstantiator
Parameters:
controlPolicy - PolicyInformation, whose trigger matches the specified trigger.
triggerAID - ActionInstanceDescription describes the trigger condition instance to be used in instantiation of the control ActionInstanceDescription.
Returns:
ActionInstanceDescription of the control action, whose BasicActionDescription was specified.

addRoleValueMapPropertiesToActionInfo

public void addRoleValueMapPropertiesToActionInfo(KAoSRoleValueMapContainer policyRVMContainer,
                                                  java.lang.String rvmId,
                                                  ActionInfo destinationActionInfo,
                                                  ActionInstanceDescription sourceAID)
                                           throws DirectoryFailure,
                                                  QueryFailure,
                                                  java.net.URISyntaxException
Copy the role value mapped values from a source AID to a destination ActionInfo

Parameters:
policyRVMContainer: - the container of peer role value maps (e.g. History*1.performedBy equals Control.performedBy)
rvmId: - the id of the role value map to be resolved
destinationActionInfo: - the ActionInfo into which RVM values will be copied
sourceAID: - the AID from which RVM values will be copied
Throws:
DirectoryFailure
QueryFailure
java.net.URISyntaxException

printDebugString

protected void printDebugString(java.lang.String msg,
                                int loggerDisplayLevel)