org.ogf.graap.wsag.samples.pendingagreement
Class PendingAgreement

java.lang.Object
  extended by org.ogf.graap.wsag.api.types.WSAGXmlType
      extended by org.ogf.graap.wsag.api.types.AbstractAgreementType
          extended by org.ogf.graap.wsag.samples.pendingagreement.PendingAgreement
All Implemented Interfaces:
Agreement

public class PendingAgreement
extends AbstractAgreementType

Sample implementation of a pending agreement.

Author:
Oliver Waeldrich

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType
WSAGXmlType.Wsag4jObservable
 
Field Summary
 
Fields inherited from class org.ogf.graap.wsag.api.types.AbstractAgreementType
agreementProperties, DEFAULT_GUARANTEE_TERM_XPATH, DEFAULT_SDT_XPATH
 
Constructor Summary
PendingAgreement()
          default constructor
PendingAgreement(AgreementOffer offer)
          creates a pending agreement for an offer.
PendingAgreement(AgreementPropertiesType properties)
          Constructs an agreement and initializes it with the given resource properties.
 
Method Summary
 void terminate(TerminateInputType reason)
          Terminates an agreement.
 
Methods inherited from class org.ogf.graap.wsag.api.types.AbstractAgreementType
getAgreementId, getAgreementInstance, getContext, getExecutionContext, getGuaranteeTermStates, getImplementationClass, getName, getServiceTermStates, getState, getTerms, getTransientExecutionContext, getXMLObject, initialize, initialize, notifyReinitialized, notifyReload, setAgreementId, setContext, setGuaranteeTermStates, setName, setServiceTermStates, setState, setTerms, setXmlObject, validate
 
Methods inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType
addObserver, countObservers, deleteObserver, deleteObservers, getObservable, hasChanged, notifyObservers, notifyObservers, processTemplate, setChanged, setObservable, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ogf.graap.wsag.api.Agreement
addObserver, hasChanged, notifyObservers, notifyObservers
 

Constructor Detail

PendingAgreement

public PendingAgreement()
default constructor


PendingAgreement

public PendingAgreement(AgreementPropertiesType properties)
Constructs an agreement and initializes it with the given resource properties.

Parameters:
properties - the agreement properties to initialize

PendingAgreement

public PendingAgreement(AgreementOffer offer)
creates a pending agreement for an offer.

Parameters:
offer - the offer to create the agreement for
Method Detail

terminate

public void terminate(TerminateInputType reason)
Terminates an agreement.

Parameters:
reason - termination reason
See Also:
Agreement.terminate(org.ogf.schemas.graap.wsAgreement.TerminateInputType)


Copyright © 2008-2012. All Rights Reserved.