kaos.policy.management
Interface PolicyAnalyzes

All Known Subinterfaces:
DirectoryService
All Known Implementing Classes:
GridDirectoryServicePolicyCert, KAoSDirectoryService, TunnelClient

public interface PolicyAnalyzes

Provides methods enabling analyzes of policies.


Method Summary
 java.util.List findConflictingPolicies(java.lang.String policyId)
          Method find all the policies conflicting with the specified policy
 java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
          Method find all the policies with higher priority making the specified policy redundant
 java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
          Method find all the policies with higher priority making the specified policy redundant
 boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is fully overlapped by the second specified policy, the necessary condition is that the two policies have the same modality
 boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId, java.util.List listOfPolicies)
          Method finds out if the specified policy is fully overlapped by the union of specified policies, the necessary condition is that the all policies have the same modality
 boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId, java.util.List listOfPolicies)
          Method finds out if the specified policy is beign made redundant (fully coverd) by the union of specified policies with higher priority in the repository
 boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is beign made redundant (fully coverd) by the second specified policy with higher priority in the repository
 boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is beign made partially redundant (partially coverd) by the second specified policy with higher priority in the repository
 boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId, java.lang.String secondPolicyId)
          Method finds out if the specified policy is partially overlapped by the second specified policy, the necessary condition is that the two policies have the same modality
 boolean isPolicyInConflict(java.lang.String policyId)
          Method finds out if the specified policy is in conflict with some policies with the same priority in the repository
 boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
          Method finds out if the specified policy makes redundant (fully or partially) some policies with lower priority in the repository
 boolean isPolicyRedundant(java.lang.String policyId)
          Method finds out if the specified policy is beign made redundant (fully or partially) by some policies with higher priority in the repository
 

Method Detail

isPolicyInConflict

boolean isPolicyInConflict(java.lang.String policyId)
                           throws DirectoryFailure
Method finds out if the specified policy is in conflict with some policies with the same priority in the repository

Parameters:
policyId - id of the policy
Returns:
true if in conflict, false if not
Throws:
DirectoryFailure

findConflictingPolicies

java.util.List findConflictingPolicies(java.lang.String policyId)
                                       throws DirectoryFailure
Method find all the policies conflicting with the specified policy

Parameters:
policyId - id of the policy
Returns:
List of Policy Ids
Throws:
DirectoryFailure

isFullyOverlappedBySecondPolicy

boolean isFullyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
                                        java.lang.String secondPolicyId)
                                        throws PriorityConditionNotMet,
                                               DirectoryFailure
Method finds out if the specified policy is fully overlapped by the second specified policy, the necessary condition is that the two policies have the same modality

Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if fully covered, false is not
Throws:
PriorityConditionNotMet
DirectoryFailure

isPartiallyOverlappedBySecondPolicy

boolean isPartiallyOverlappedBySecondPolicy(java.lang.String firstPolicyId,
                                            java.lang.String secondPolicyId)
                                            throws PriorityConditionNotMet,
                                                   DirectoryFailure
Method finds out if the specified policy is partially overlapped by the second specified policy, the necessary condition is that the two policies have the same modality

Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if fully covered, false is not
Throws:
PriorityConditionNotMet
DirectoryFailure

isFullyOverlappedByUnionOfPolicies

boolean isFullyOverlappedByUnionOfPolicies(java.lang.String firstPolicyId,
                                           java.util.List listOfPolicies)
                                           throws PriorityConditionNotMet,
                                                  DirectoryFailure
Method finds out if the specified policy is fully overlapped by the union of specified policies, the necessary condition is that the all policies have the same modality

Parameters:
firstPolicyId - id of the policy
listOfPolicies - list of policies
Returns:
true if fully covered, false is not
Throws:
PriorityConditionNotMet
DirectoryFailure

isPolicyRedundant

boolean isPolicyRedundant(java.lang.String policyId)
                          throws DirectoryFailure
Method finds out if the specified policy is beign made redundant (fully or partially) by some policies with higher priority in the repository

Parameters:
policyId - id of the policy
Returns:
true if redundant, false is not
Throws:
DirectoryFailure

findPoliciesMakingRedundant

java.util.List findPoliciesMakingRedundant(java.lang.String policyId)
                                           throws DirectoryFailure
Method find all the policies with higher priority making the specified policy redundant

Parameters:
policyId - id of the policy
Returns:
List of Policy Ids
Throws:
DirectoryFailure

isPolicyMakingRedundantSomeOtherPolicy

boolean isPolicyMakingRedundantSomeOtherPolicy(java.lang.String policyId)
                                               throws DirectoryFailure
Method finds out if the specified policy makes redundant (fully or partially) some policies with lower priority in the repository

Parameters:
policyId - id of the policy
Returns:
true if redundant, false is not
Throws:
DirectoryFailure

findPoliciesMadeRedundant

java.util.List findPoliciesMadeRedundant(java.lang.String policyId)
                                         throws DirectoryFailure
Method find all the policies with higher priority making the specified policy redundant

Parameters:
policyId - id of the policy
Returns:
List of Policy Ids
Throws:
DirectoryFailure

isMadeFullyRedundantBySecond

boolean isMadeFullyRedundantBySecond(java.lang.String firstPolicyId,
                                     java.lang.String secondPolicyId)
                                     throws PriorityConditionNotMet,
                                            DirectoryFailure
Method finds out if the specified policy is beign made redundant (fully coverd) by the second specified policy with higher priority in the repository

Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if redundant, false is not
Throws:
PriorityConditionNotMet
DirectoryFailure

isMadeParitallyRedundantBySecond

boolean isMadeParitallyRedundantBySecond(java.lang.String firstPolicyId,
                                         java.lang.String secondPolicyId)
                                         throws PriorityConditionNotMet,
                                                DirectoryFailure
Method finds out if the specified policy is beign made partially redundant (partially coverd) by the second specified policy with higher priority in the repository

Parameters:
firstPolicyId - id of the policy
secondPolicyId - id of the policy
Returns:
true if redundant, false is not
Throws:
PriorityConditionNotMet
DirectoryFailure

isMadeFullyRedundantByPolicyUnion

boolean isMadeFullyRedundantByPolicyUnion(java.lang.String firstPolicyId,
                                          java.util.List listOfPolicies)
                                          throws PriorityConditionNotMet,
                                                 DirectoryFailure
Method finds out if the specified policy is beign made redundant (fully coverd) by the union of specified policies with higher priority in the repository

Parameters:
firstPolicyId - id of the policy
listOfPolicies - list of policies
Returns:
true if redundant, false is not
Throws:
PriorityConditionNotMet
DirectoryFailure