kaos.policy.information
Interface PolicyDBManager

All Known Implementing Classes:
PolicyDBManagerImpl

public interface PolicyDBManager

This interface defines methods to manage policy database


Method Summary
 void addPolicy(PolicyInformation policy)
          Add the given policy object to this database.
 java.util.Enumeration getAllPolicies()
          Get all policy objects contained in this database.
 PolicyInformation getPolicyInformation(java.lang.String policyID)
          Get the policy for the given policy id.
 void refreshAllPoliciesComplete()
          refresh all cached property values for all policies in this database.
 void refreshAllPoliciesPartial(java.util.Vector properties)
          refresh cached values of only those properties that are specified for all the policies in this database.
 void refreshPolicyComplete(java.lang.String policyID)
          refresh all cached property values for the given policy.
 void refreshPolicyPartial(java.lang.String policyID, java.util.Vector properties)
          refresh cached values of only those properties that are specified for the given policy.
 void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs)
          refresh cached values of all properties of the specified policies.
 void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs, java.util.Vector properties)
          refresh cached values of only those properties that are specified for only specified policies.
 void removeAllPolicies()
          remove all policy objects contained in this database.
 PolicyInformation removePolicyInformation(java.lang.String policyID)
          Remove from this database the policy object for the given policy id.
 void setPolicy(PolicyInformation policy)
          Set the policy object.
 

Method Detail

getPolicyInformation

PolicyInformation getPolicyInformation(java.lang.String policyID)
Get the policy for the given policy id.

Parameters:
policyID - A String indicating the policy id.
Returns:
The policy object for the given policy name.

removePolicyInformation

PolicyInformation removePolicyInformation(java.lang.String policyID)
Remove from this database the policy object for the given policy id.

Parameters:
policyID - A String indicating the policy id.
Returns:
The removed policy object.

setPolicy

void setPolicy(PolicyInformation policy)
Set the policy object. This is the same as calling addPolicy.

Parameters:
policy - The policy object to be set

addPolicy

void addPolicy(PolicyInformation policy)
Add the given policy object to this database. If the policy for the policy id contained in this object already exists, it will be replaced by this object. If not, a new entry will be created.

Parameters:
policy - The policy object to be added.

getAllPolicies

java.util.Enumeration getAllPolicies()
Get all policy objects contained in this database.

Returns:
A Vector containing all policy objects.

removeAllPolicies

void removeAllPolicies()
remove all policy objects contained in this database.


refreshPolicyComplete

void refreshPolicyComplete(java.lang.String policyID)
refresh all cached property values for the given policy.

Parameters:
policyID - A String indicating the policy id.

refreshPolicyPartial

void refreshPolicyPartial(java.lang.String policyID,
                          java.util.Vector properties)
refresh cached values of only those properties that are specified for the given policy.

Parameters:
policyID - A String indicating the policy id.
properties - A Vector containing property names whose values are to be refreshed.

refreshAllPoliciesComplete

void refreshAllPoliciesComplete()
refresh all cached property values for all policies in this database.


refreshAllPoliciesPartial

void refreshAllPoliciesPartial(java.util.Vector properties)
refresh cached values of only those properties that are specified for all the policies in this database.

Parameters:
properties - A Vector containing property names whose values are to be refreshed.

refreshSpecifiedPoliciesComplete

void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs)
refresh cached values of all properties of the specified policies.

Parameters:
policyIDs - A Vector containing ids of those policies that are to be refreshed.

refreshSpecifiedPoliciesPartial

void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs,
                                     java.util.Vector properties)
refresh cached values of only those properties that are specified for only specified policies.

Parameters:
policyIDs - A Vector containing ids of those policies that are to be refreshed.
properties - A Vector containing property names whose values are to be refreshed.