org.systinet.wasp.policy
Interface PolicyAttachment


public interface PolicyAttachment

This class represents a policy attachment according WS-PolicyAttachment. WS-PolicyAttachment provides the mechanism for associating policy with one or more subjects or resources. The domain of a scope of policy expression is identified using an extensible DomainExpression model.

An policy atachment can be created with the help of PolicyManager.

Since:
5.0
Component:
Core

Method Summary
 void addPolicy(Policy policy)
          Adds given policy to this policy attachment.
 javax.xml.transform.Source getContent()
          Gets the content of this object as Source
 DomainExpression getDomainExpression()
          Gets the domain expression associated with this policy attachment.
 Policy[] getPolicies()
          Gets the array of policies associated with this policy attachment.
 void removePolicy(Policy policy)
          Removes given policy form this policy attachment.
 

Method Detail

getDomainExpression

public DomainExpression getDomainExpression()
Gets the domain expression associated with this policy attachment.

Returns:
domain expression associated with this policy attachment

getPolicies

public Policy[] getPolicies()
Gets the array of policies associated with this policy attachment.

Returns:
the array of policies associated with this policy attachment

addPolicy

public void addPolicy(Policy policy)
Adds given policy to this policy attachment.

Parameters:
policy - policy to add

removePolicy

public void removePolicy(Policy policy)
Removes given policy form this policy attachment.

Parameters:
policy - poicy to remove

getContent

public javax.xml.transform.Source getContent()
                                      throws PolicyException
Gets the content of this object as Source

Returns:
the content of this object as Source
Throws:
PolicyException - when an error occurs