|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.local.LocalWsClient
org.ogf.graap.wsag.client.local.LocalAgreementServiceImpl
public class LocalAgreementServiceImpl
Implementation of the WSAG4J client API for accessing local agreement instances.
Constructor Summary | |
---|---|
LocalAgreementServiceImpl(Agreement agreement)
|
Method Summary | |
---|---|
void |
destroy()
Destroys agreement instance. |
String |
getAgreementId()
Returns the id of the agreement instance. |
AgreementContextType |
getContext()
Returns the context of the agreement instance. |
GuaranteeTermStateType[] |
getGuaranteeTermStates()
Returns the state for the individual guarantee terms of the agreement instance. |
String |
getName()
Returns the name of the agreement instance. |
ServiceTermStateType[] |
getServiceTermStates()
Returns the state for the individual service terms of the agreement instance. |
AgreementStateType |
getState()
Returns the state of the agreement instance. |
TermTreeType |
getTerms()
Returns the terms of the agreement instance. |
void |
terminate(TerminateInputType reason)
Terminates the agreement instance. |
Methods inherited from class org.ogf.graap.wsag.client.local.LocalWsClient |
---|
getEndpoint, getProperties, getSecurityProperties, getWebServiceClient, isUsingTrace, setProperties, setTrace |
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.client.AgreementService |
---|
getWebServiceClient |
Constructor Detail |
---|
public LocalAgreementServiceImpl(Agreement agreement)
agreement
- the local agreement instanceMethod Detail |
---|
public String getAgreementId() throws ResourceUnknownException, ResourceUnavailableException
getAgreementId
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementContextType getContext() throws ResourceUnknownException, ResourceUnavailableException
getContext
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic GuaranteeTermStateType[] getGuaranteeTermStates() throws ResourceUnknownException, ResourceUnavailableException
getGuaranteeTermStates
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic String getName() throws ResourceUnknownException, ResourceUnavailableException
getName
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic ServiceTermStateType[] getServiceTermStates() throws ResourceUnknownException, ResourceUnavailableException
getServiceTermStates
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementStateType getState() throws ResourceUnknownException, ResourceUnavailableException
getState
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic TermTreeType getTerms() throws ResourceUnknownException, ResourceUnavailableException
getTerms
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate(TerminateInputType reason) throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface AgreementService
reason
- a domain-specific termination reason
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |