kaos.core.csi.policy
Interface PolicyManagement


public interface PolicyManagement

Defines the operations to manage policies in KAoS including adding, modifying and removing.

Author:
KAoS Team

Method Summary
 void addPolicy(java.lang.String owlPolicyDescription)
          Add the specified policy into KAoS.
 java.util.Vector getPoliciesForEntity(java.lang.String id)
          Return policies for the entity, whose id is specified.
 PolicyMsg getPolicy(java.lang.String id)
          Return the policy identified by the given id.
 void modifyPolicy(java.lang.String policyID, java.lang.String owlPolicyDescription)
          Modify the specified policy in KAoS.
 void removePolicy(java.lang.String policyID)
          Remove the specified policy from KAoS.
 

Method Detail

addPolicy

void addPolicy(java.lang.String owlPolicyDescription)
               throws ServiceFailure
Add the specified policy into KAoS.

Parameters:
owlPolicyDescription - OWL String containing the policy description.
Throws:
ServiceFailure - if the policy service is not available.

modifyPolicy

void modifyPolicy(java.lang.String policyID,
                  java.lang.String owlPolicyDescription)
                  throws ServiceFailure
Modify the specified policy in KAoS.

Parameters:
policyID - String containing the unique policy id.
owlPolicyDescription - OWL String containing the modified policy description.
Throws:
ServiceFailure - if the policy service is not available.

removePolicy

void removePolicy(java.lang.String policyID)
                  throws ServiceFailure
Remove the specified policy from KAoS.

Parameters:
policyID - String containing the unique policy id.
Throws:
ServiceFailure - if the policy service is not available.

getPolicy

PolicyMsg getPolicy(java.lang.String id)
                    throws ServiceFailure
Return the policy identified by the given id.

Parameters:
id - String containing the id of the requested policy.
Returns:
PolicyMsg representing.
Throws:
ServiceFailure

getPoliciesForEntity

java.util.Vector getPoliciesForEntity(java.lang.String id)
                                      throws ServiceFailure
Return policies for the entity, whose id is specified.

Parameters:
id - String containing the id of the entity, whose policies are being requested.
Returns:
Vector of policies.
Throws:
ServiceFailure


Copyright © 2005 IHMC All Rights Reserved.