PolicyInfo

Representation of a Policy Object. This class allows for associating and unassociation of Grid objects using this policy

Constructor

PolicyInfo Construct a policy.

Methods

Summary:

PolicyInfo(String type)

Construct a policy.

associate(GridObjectInfo gridObject)

Associate a grid object with this policy.

Parameters: gridObject - Grid object to associate this policy with.

unassociate(GridObjectInfo gridObject)

Unassociate a grid object with this policy.

Parameters: gridObject - Grid object to unassociate this policy with.

getPolicyText()

Retrieve policy text from policy

Returns: String Policy text

setPolicyText(String policyText)

Set new policy text for policy

Parameters: policyText - String policy text.

Raises: Exception - if syntax or validation errors occur.

Examples

Example of retrieving a policy object and associating an object to the policy:

      policy = getMatrix().getPolicy("myPolicy")
      policy.associate(myResource)

See Also

Javadoc: PolicyInfo