|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.policy.information.PolicyDBManagerImpl
public class PolicyDBManagerImpl
This interface defines methods to manage policy database
Constructor Summary | |
---|---|
PolicyDBManagerImpl()
|
Method Summary | |
---|---|
void |
addPolicy(PolicyInformation policy)
Add the given policy object to this database. |
java.util.List |
getActionSubclassesOfInterest()
This method returns all the subclasses of actions of all policies in this database, along with the original action class name. |
java.util.Enumeration |
getAllPolicies()
Get all policy objects contained in this database. |
java.util.List |
getClassRangesOfInterest()
This method returns all the classranges of properties of all policies in this database. |
PolicyInformation |
getPolicyInformation(java.lang.String policyID)
Get the policy for the given policy id. |
java.util.List |
getPropretiesOfInterest()
This method returns all the properties and their subproperties of all policies contained in this database. |
java.util.Enumeration |
getSortedAuthorizationPolicies()
Get only authorization policy objects contained in this database. |
java.util.Enumeration |
getSortedObligationPolicies()
Get only obligation policy objects contained in this database. |
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 |
setDirProxy(KAoSAgentDirectoryServiceProxy dcomm)
|
void |
setPolicy(PolicyInformation policy)
Set the policy object. |
void |
updateActionSubclasses(java.lang.String className,
java.util.Collection subclasses)
to update the subclasses of an action class in policies. |
void |
updateInstanceOfClass(java.lang.String className,
java.util.Collection instances)
update cached instances of the given class in concerned policies. |
void |
updateSubpropertiesOfProperty(java.lang.String propName,
java.util.Collection subProps)
update cached subproperties of the given property in concerned policies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolicyDBManagerImpl()
Method Detail |
---|
public void setDirProxy(KAoSAgentDirectoryServiceProxy dcomm)
public PolicyInformation getPolicyInformation(java.lang.String policyID)
getPolicyInformation
in interface PolicyDBManager
policyID
- A String indicating the policy id.
public PolicyInformation removePolicyInformation(java.lang.String policyID)
removePolicyInformation
in interface PolicyDBManager
policyID
- A String indicating the policy id.
public void setPolicy(PolicyInformation policy)
setPolicy
in interface PolicyDBManager
policy
- The policy object to be setpublic void addPolicy(PolicyInformation policy)
addPolicy
in interface PolicyDBManager
policy
- The policy object to be added.public java.util.Enumeration getAllPolicies()
getAllPolicies
in interface PolicyDBManager
public java.util.Enumeration getSortedAuthorizationPolicies()
public java.util.Enumeration getSortedObligationPolicies()
public void removeAllPolicies()
removeAllPolicies
in interface PolicyDBManager
public void refreshPolicyComplete(java.lang.String policyID)
refreshPolicyComplete
in interface PolicyDBManager
policyID
- A String indicating the policy id.public void refreshPolicyPartial(java.lang.String policyID, java.util.Vector properties)
refreshPolicyPartial
in interface PolicyDBManager
policyID
- A String indicating the policy id.properties
- A Vector containing property names whose values
are to be refreshed.public void refreshAllPoliciesComplete()
refreshAllPoliciesComplete
in interface PolicyDBManager
public void refreshAllPoliciesPartial(java.util.Vector properties)
refreshAllPoliciesPartial
in interface PolicyDBManager
properties
- A Vector containing property names whose values
are to be refreshed.public void refreshSpecifiedPoliciesComplete(java.util.Vector policyIDs)
refreshSpecifiedPoliciesComplete
in interface PolicyDBManager
policyIDs
- A Vector containing ids of those policies that
are to be refreshed.public void refreshSpecifiedPoliciesPartial(java.util.Vector policyIDs, java.util.Vector properties)
refreshSpecifiedPoliciesPartial
in interface PolicyDBManager
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.public void updateSubpropertiesOfProperty(java.lang.String propName, java.util.Collection subProps)
propertyName
- the property whose subproperties are to be
updated.subProps
- the new subproperties.public void updateInstanceOfClass(java.lang.String className, java.util.Collection instances)
className
- the class whose instances are to be
updated.instances
- the new instances.public void updateActionSubclasses(java.lang.String className, java.util.Collection subclasses)
className
- the action class whose subclasses are updatedsubclasses
- the collection of updated subclassespublic java.util.List getPropretiesOfInterest()
public java.util.List getClassRangesOfInterest()
public java.util.List getActionSubclassesOfInterest()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |