|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.client.api.impl.AbstractClient org.ogf.graap.wsag.client.api.impl.AgreementClientImpl org.ogf.graap.wsag.client.api.local.LocalAgreementClient
public class LocalAgreementClient
LocalAgreementClientImpl
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementClient |
---|
FACTORY |
Constructor Summary | |
---|---|
LocalAgreementClient(Agreement agreement)
Creates a new local agreement instance using the given agreement object. |
Method Summary | |
---|---|
AgreementClient |
clone()
Returns a copy of the client. |
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. |
RemoteClient |
getRemoteClient()
Returns the remote client used by this implementation in order to communicate with the WSAG4J server. |
AgreementPropertiesType |
getResourceProperties()
Returns the resource properties 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.api.impl.AgreementClientImpl |
---|
getGuaranteeTermState, getServiceTermState, terminate |
Methods inherited from class org.ogf.graap.wsag.client.api.impl.AbstractClient |
---|
getProperties, getRemoteReference, getSecurityProperties, isUsingTrace, setProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalAgreementClient(Agreement agreement)
agreement
- the agreement instanceMethod Detail |
---|
public String getName()
getName
in interface AgreementClient
getName
in class AgreementClientImpl
Agreement.getName()
public String getAgreementId()
getAgreementId
in interface AgreementClient
getAgreementId
in class AgreementClientImpl
Agreement.getAgreementId()
public AgreementContextType getContext()
getContext
in interface AgreementClient
getContext
in class AgreementClientImpl
Agreement.getContext()
public TermTreeType getTerms()
getTerms
in interface AgreementClient
getTerms
in class AgreementClientImpl
Agreement.getTerms()
public void terminate(TerminateInputType reason)
terminate
in interface AgreementClient
terminate
in class AgreementClientImpl
reason
- a domain-specific termination reasonAgreement.terminate(org.ogf.schemas.graap.wsAgreement.TerminateInputType)
public AgreementStateType getState()
getState
in interface AgreementClient
getState
in class AgreementClientImpl
Agreement.getState()
public GuaranteeTermStateType[] getGuaranteeTermStates()
getGuaranteeTermStates
in interface AgreementClient
getGuaranteeTermStates
in class AgreementClientImpl
Agreement.getGuaranteeTermStates()
public ServiceTermStateType[] getServiceTermStates()
getServiceTermStates
in interface AgreementClient
getServiceTermStates
in class AgreementClientImpl
Agreement.getServiceTermStates()
public AgreementClient clone() throws CloneNotSupportedException
clone
in interface AgreementClient
clone
in class AgreementClientImpl
CloneNotSupportedException
- indicates that the client implementation does not support cloningpublic RemoteClient getRemoteClient()
getRemoteClient
in interface AgreementClient
getRemoteClient
in class AbstractClient
org.ogf.graap.wsag.client.api.AgreementService#getRemoteClient()
public void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface AgreementClient
destroy
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementClientImpl.destroy()
public AgreementPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
getResourceProperties
in interface AgreementClient
getResourceProperties
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementClient.getResourceProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |