|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyAdvice
Method Summary | |
---|---|
java.util.Vector |
getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc,
PolicyDecisionObserver pObserver)
In this case, there are NO properties specified. |
java.util.Vector |
getAllowableValuesForActionProperties(java.util.Vector propertyNames,
ActionInstanceDescription actionDesc,
boolean tight,
PolicyDecisionObserver pObserver)
This function is used when the agent/enforcer has only partial information about an action and would like to determine what range of properties can be allowed by the policy set. |
java.util.Set |
getAllowableValuesForActionProperty(java.lang.String origPropertyName,
ActionInstanceDescription origActionDesc,
java.util.Set allTargetValues,
boolean tight,
PolicyDecisionObserver pObserver)
This function is used when the enforcer has only partial information about an action and needs to determine what range of a property can be allowed by the policy. |
java.util.Vector |
getForbiddenValuesForActionProperty(java.lang.String origPropertyName,
ActionInstanceDescription origActionDesc,
PolicyDecisionObserver pObserver)
At the moment this method would work only for A- policies for 'moveTo' action, and for 'movingTo' property. |
java.util.List |
getPoliciesForActionType(java.lang.String actionType,
PolicyDecisionObserver pObserver)
Get policies for the specified action type. |
Method Detail |
---|
java.util.List getPoliciesForActionType(java.lang.String actionType, PolicyDecisionObserver pObserver) throws ServiceFailure
actionType
- String specifying the action type for the requested policies.pObserver
- PolicyDecisionObserver, an entity interested in receiving updates
whenever policy decisions change.
ServiceFailure
- when the policy service cannot be reached, or fails.java.util.Vector getAllowableValuesForActionProperties(java.util.Vector propertyNames, ActionInstanceDescription actionDesc, boolean tight, PolicyDecisionObserver pObserver) throws ServiceFailure
propertyNames
- Vector containing the properties for which
values are to be found.actionDesc
- ActionInstanceDescription object which will
be used to find applicable policies.tight
- boolean, if set to 'true', will result in returning
only these values for the missing specified property
which would satisfy some policy if used alone.pObserver
- PolicyDecisionObserver, an entity interested in receiving updates
whenever policy decisions change.
ServiceFailure
- when the policy service cannot be reached, or fails.java.util.Vector getAllowableValuesForActionProperties(ActionInstanceDescription actionDesc, PolicyDecisionObserver pObserver) throws ServiceFailure
actionDesc
- ActionInstanceDescription object which will
be used to find applicable policies.pObserver
- PolicyDecisionObserver, an entity interested in receiving updates
whenever policy decisions change.
ServiceFailure
- when the policy service cannot be reached, or fails.java.util.Set getAllowableValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, java.util.Set allTargetValues, boolean tight, PolicyDecisionObserver pObserver) throws ServiceFailure
origPropertyName
- String specifying the property for which
values are to be found.origActionDesc
- ActionInstanceDescription object which will
be used to find applicable policies.allTargetValues
- Set of possible property values - now it is a fake argument,
which should really be calculated by the directory service
and passed to the entity disclosing the policy (PolicyDisclosure).tight
- boolean, if set to 'true', will result in returning
only these values for the missing specified property
which would satisfy some policy if used alone.pObserver
- PolicyDecisionObserver, an entity interested in receiving updates
whenever policy decisions change.
ServiceFailure
- when the policy service cannot be reached, or fails.java.util.Vector getForbiddenValuesForActionProperty(java.lang.String origPropertyName, ActionInstanceDescription origActionDesc, PolicyDecisionObserver pObserver) throws ServiceFailure
origPropertyName
- the property for which to find those values.origActionDesc
- the AID for which to find the values.pObserver
- PolicyDecisionObserver, an entity interested in receiving updates
whenever policy decisions change.
ServiceFailure
- when the policy service cannot be reached, or fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |