org.ogf.graap.wsag.samples
Class SampleAgreement
java.lang.Object
org.ogf.graap.wsag.api.types.WSAGXmlType
org.ogf.graap.wsag.api.types.AbstractAgreementType
org.ogf.graap.wsag.samples.SampleAgreement
- All Implemented Interfaces:
- Agreement
public class SampleAgreement
- extends AbstractAgreementType
Sample agreement implementation.
- Author:
- Oliver Waeldrich
Methods inherited from class org.ogf.graap.wsag.api.types.AbstractAgreementType |
getAgreementId, getAgreementInstance, getContext, getExecutionContext, getImplementationClass, getName, 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 |
SampleAgreement
public SampleAgreement(AgreementOffer offer)
- constructs new agreement based on offer.
- Parameters:
offer
- offer object
SampleAgreement
public SampleAgreement(AgreementPropertiesType properties)
- Creates an agreement with the given agreement properties document.
- Parameters:
properties
- the agreement properties document
terminate
public void terminate(TerminateInputType reason)
- Terminates an agreement.
- Parameters:
reason
- termination reason- See Also:
Agreement.terminate(org.ogf.schemas.graap.wsAgreement.TerminateInputType)
getServiceTermStates
public ServiceTermStateType[] getServiceTermStates()
-
- Specified by:
getServiceTermStates
in interface Agreement
- Overrides:
getServiceTermStates
in class AbstractAgreementType
- Returns:
- the agreement service term states
getState
public AgreementStateType getState()
-
- Specified by:
getState
in interface Agreement
- Overrides:
getState
in class AbstractAgreementType
- Returns:
- the agreement state
getGuaranteeTermStates
public GuaranteeTermStateType[] getGuaranteeTermStates()
-
- Specified by:
getGuaranteeTermStates
in interface Agreement
- Overrides:
getGuaranteeTermStates
in class AbstractAgreementType
- Returns:
- the agreement guarantee term states
Copyright © 2008-2012. All Rights Reserved.