cgl.narada.wsinfra.wsrm
Interface WsrmSequencePolicyFactory

All Known Implementing Classes:
WsrmSequencePolicyFactoryImpl

public interface WsrmSequencePolicyFactory

This is a utility class which facilitates the creation of WsrmSequence Policies, and also the addition of policy elements besides the serialization/de-serialization of the policies.


Method Summary
 WsrmSequencePolicies createWsrmSequencePolicies(XmlObject xmlObject)
          Construct a sequence policies instance using the XmlCursor instance that has been provided.
 WsrmSequencePolicies getDefaultWsrmSequencePolicies()
          Get a default wsrm sequence policies element
 SequenceRefDocument getSequenceRefDocument(EnvelopeDocument envelopeDocument)
          Get the sequenceRef document.
 WsrmSequencePolicies getWsrmSequencePolicies(byte[] marshalledBytes)
          Create a sequence policies instance based on its marshalled representation.
 void updateExpiry(WsrmSequencePolicies wsrmSequencePolicies, Calendar expiresAt)
          Update the expiry associated with a sequence.
 

Method Detail

createWsrmSequencePolicies

WsrmSequencePolicies createWsrmSequencePolicies(XmlObject xmlObject)
Construct a sequence policies instance using the XmlCursor instance that has been provided.


getDefaultWsrmSequencePolicies

WsrmSequencePolicies getDefaultWsrmSequencePolicies()
Get a default wsrm sequence policies element


updateExpiry

void updateExpiry(WsrmSequencePolicies wsrmSequencePolicies,
                  Calendar expiresAt)
Update the expiry associated with a sequence. This can happen due to a new expiry value being specified within a Sequence element.


getWsrmSequencePolicies

WsrmSequencePolicies getWsrmSequencePolicies(byte[] marshalledBytes)
Create a sequence policies instance based on its marshalled representation.


getSequenceRefDocument

SequenceRefDocument getSequenceRefDocument(EnvelopeDocument envelopeDocument)
Get the sequenceRef document. The way this method works is as follows. SequenceRef elements should be contained within the wsp:AppliesTo element which in turn must be encapsulated within a PolicyAttachment element. If any of the predecessors are missing, this method will return a NULL.



For comments and suggestions please send e-mail to The NaradaBrokering Project
HTML>