kaos.core.csi.policy
Class PolicyManagementImpl
java.lang.Object
kaos.core.csi.policy.PolicyManagementImpl
- All Implemented Interfaces:
- PolicyManagement
public class PolicyManagementImpl
- extends java.lang.Object
- implements PolicyManagement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyManagementImpl
public PolicyManagementImpl()
getInstance
public static PolicyManagement getInstance(java.lang.String transportName)
throws java.lang.Exception
- Throws:
java.lang.Exception
addPolicy
public void addPolicy(java.lang.String owlPolicyDescription)
throws PolicyManagement.OntologyPolicyIncorrect,
PolicyManagement.PrecedenceUndeterminedException,
PoliciesHarmonizedException,
ServiceFailure
- Specified by:
addPolicy
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
addPolicy
public void addPolicy(PolicyMsg policyMsg)
throws PolicyManagement.OntologyPolicyIncorrect,
PolicyManagement.PrecedenceUndeterminedException,
PoliciesHarmonizedException,
ServiceFailure
- Specified by:
addPolicy
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
changePolicy
public void changePolicy(java.lang.String policyID,
java.lang.String owlPolicyDescription)
throws PolicyManagement.OntologyPolicyIncorrect,
PolicyManagement.PrecedenceUndeterminedException,
PoliciesHarmonizedException,
ServiceFailure
- Specified by:
changePolicy
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
removePolicy
public void removePolicy(java.lang.String policyID)
throws ServiceFailure
- Specified by:
removePolicy
in interface PolicyManagement
- Throws:
ServiceFailure
getPolicy
public PolicyMsg getPolicy(java.lang.String id)
throws ServiceFailure
- Specified by:
getPolicy
in interface PolicyManagement
- Throws:
ServiceFailure
getDirectPoliciesFor
public java.util.List<PolicyMsg> getDirectPoliciesFor(java.lang.String conceptId)
throws ServiceFailure
- Specified by:
getDirectPoliciesFor
in interface PolicyManagement
- Throws:
ServiceFailure
getAllPoliciesFor
public java.util.List<PolicyMsg> getAllPoliciesFor(java.lang.String conceptId)
throws ServiceFailure
- Specified by:
getAllPoliciesFor
in interface PolicyManagement
- Throws:
ServiceFailure
findPolicies
public java.util.List<PolicyMsg> findPolicies(java.lang.String actionType,
java.util.Map<java.util.List<java.lang.String>,java.lang.String> policyRestrictions)
throws ServiceFailure
- Specified by:
findPolicies
in interface PolicyManagement
- Throws:
ServiceFailure
addPolicies
public void addPolicies(java.util.List<PolicyMsg> policies)
throws PolicyManagement.OntologyPolicyIncorrect,
PolicyManagement.PrecedenceUndeterminedException,
PoliciesHarmonizedException,
ServiceFailure
- Specified by:
addPolicies
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
changePolicies
public void changePolicies(java.util.List<PolicyMsg> policies)
throws PolicyManagement.OntologyPolicyIncorrect,
PolicyManagement.PrecedenceUndeterminedException,
PoliciesHarmonizedException,
ServiceFailure
- Specified by:
changePolicies
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
changePolicy
public void changePolicy(PolicyMsg policy)
throws PolicyManagement.OntologyPolicyIncorrect,
PolicyManagement.PrecedenceUndeterminedException,
PoliciesHarmonizedException,
ServiceFailure
- Specified by:
changePolicy
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PolicyManagement.PrecedenceUndeterminedException
PoliciesHarmonizedException
ServiceFailure
getPolicies
public java.util.List<PolicyMsg> getPolicies()
throws ServiceFailure
- Specified by:
getPolicies
in interface PolicyManagement
- Throws:
ServiceFailure
getPoliciesByEntities
public java.util.Map<java.lang.String,PolicyMsg> getPoliciesByEntities()
throws ServiceFailure
- Specified by:
getPoliciesByEntities
in interface PolicyManagement
- Throws:
ServiceFailure
removePolicies
public void removePolicies(java.util.List<PolicyMsg> policies)
throws PolicyManagement.OntologyPolicyIncorrect,
ServiceFailure
- Specified by:
removePolicies
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
ServiceFailure
removePolicy
public void removePolicy(PolicyMsg policy)
throws PolicyManagement.OntologyPolicyIncorrect,
ServiceFailure
- Specified by:
removePolicy
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
ServiceFailure
updatePolicies
public void updatePolicies(java.util.List<PolicyMsg> addedPolicies,
java.util.List<PolicyMsg> changedPolicies,
java.util.List<PolicyMsg> removedPolicies)
throws PolicyManagement.OntologyPolicyIncorrect,
PoliciesHarmonizedException,
PolicyManagement.PrecedenceUndeterminedException,
ServiceFailure
- Specified by:
updatePolicies
in interface PolicyManagement
- Throws:
PolicyManagement.OntologyPolicyIncorrect
PoliciesHarmonizedException
PolicyManagement.PrecedenceUndeterminedException
ServiceFailure
addPolicyUpdateListener
public void addPolicyUpdateListener(PolicyListener listener)
throws ServiceFailure
- Specified by:
addPolicyUpdateListener
in interface PolicyManagement
- Throws:
ServiceFailure
removePolicyUpdateListener
public void removePolicyUpdateListener(PolicyListener listener)
throws ServiceFailure
- Specified by:
removePolicyUpdateListener
in interface PolicyManagement
- Throws:
ServiceFailure