|
||||||||||
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.AbstractAgreementFactoryClient org.ogf.graap.wsag.client.api.local.LocalAgreementFactoryClient
public class LocalAgreementFactoryClient
An implementation of the Client API for local invocation of an agreement factory.
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementFactoryClient |
---|
FACTORY |
Constructor Summary | |
---|---|
LocalAgreementFactoryClient(AgreementFactory factory)
Creates a client for local invocation of an agreement factory. |
|
LocalAgreementFactoryClient(AgreementFactory factory,
Agreement[] source)
|
Method Summary | |
---|---|
AgreementFactoryClient |
clone()
Creates s copy of this AgreementFactoryClient. |
AgreementClient |
createAgreement(AgreementOffer offer)
Creates a new agreement instance. |
AgreementClient |
createPendingAgreement(AgreementOffer offer)
Creates a new pending agreement instance. |
AgreementClient |
createPendingAgreement(AgreementOffer offer,
EndpointReferenceType acceptanceEPR)
Creates a new pending agreement instance. |
RemoteClient |
getRemoteClient()
Returns the remote client used by this implementation in order to communicate with the WSAG4J server. |
String |
getResourceId()
Returns the WSDM id of a web-service resource. |
AgreementFactoryPropertiesType |
getResourceProperties()
Returns the resource properties of the agreement factory instance. |
AgreementTemplateType |
getTemplate(String name,
String id)
Returns a template with a particular name and id from the server, or null if the requested
template does not exist. |
AgreementTemplateType[] |
getTemplates()
Returns the templates supported by this factory. |
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
Initiates a Negotiation. |
AgreementClient[] |
listAgreements()
Lists all agreements of this factory. |
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 LocalAgreementFactoryClient(AgreementFactory factory)
factory
- the factory objectpublic LocalAgreementFactoryClient(AgreementFactory factory, Agreement[] source)
factory
- the local factory objectsource
- the agreements associated with this registry.Method Detail |
---|
public AgreementFactoryClient clone() throws CloneNotSupportedException
clone
in interface AgreementFactoryClient
clone
in class AbstractAgreementFactoryClient
CloneNotSupportedException
- this particular client implementation does not support cloningpublic AgreementClient createAgreement(AgreementOffer offer) throws AgreementFactoryException
createAgreement
in interface AgreementFactoryClient
createAgreement
in class AbstractAgreementFactoryClient
offer
- the offer to create the agreement for
AgreementFactoryException
- the agreement offer was rejected by the factorypublic AgreementClient createPendingAgreement(AgreementOffer offer) throws AgreementFactoryException
createPendingAgreement
in interface AgreementFactoryClient
createPendingAgreement
in class AbstractAgreementFactoryClient
offer
- The agreement offer passed from the agreement initiator.
AgreementClient
for the new created agreement.
AgreementFactoryException
- An error occurred during the the agreement creation. The agreement was rejected.public String getResourceId()
getResourceId
in interface AgreementFactoryClient
getResourceId
in class AbstractAgreementFactoryClient
public AgreementTemplateType[] getTemplates()
getTemplates
in interface AgreementFactoryClient
getTemplates
in class AbstractAgreementFactoryClient
public AgreementTemplateType getTemplate(String name, String id)
AgreementFactoryClient
null
if the requested
template does not exist.
getTemplate
in interface AgreementFactoryClient
getTemplate
in class AbstractAgreementFactoryClient
name
- the name of the requested templateid
- the id of the requested template
public AgreementClient[] listAgreements()
listAgreements
in interface AgreementFactoryClient
listAgreements
in class AbstractAgreementFactoryClient
public RemoteClient getRemoteClient()
AbstractClient
getRemoteClient
in interface AgreementFactoryClient
getRemoteClient
in class AbstractClient
public AgreementClient createPendingAgreement(AgreementOffer offer, EndpointReferenceType acceptanceEPR) throws AgreementFactoryException
AbstractAgreementFactoryClient
createPendingAgreement
in interface AgreementFactoryClient
createPendingAgreement
in class AbstractAgreementFactoryClient
offer
- The agreement offer passed from the agreement initiator.acceptanceEPR
- An endpoint to an agreement acceptance instance.
AgreementClient
for the new created agreement.
AgreementFactoryException
- An error occurred during the the agreement creation. The agreement was rejected.public NegotiationClient initiateNegotiation(NegotiationContextType context) throws NegotiationFactoryException
AbstractAgreementFactoryClient
initiateNegotiation
in interface AgreementFactoryClient
initiateNegotiation
in class AbstractAgreementFactoryClient
context
- the context for the negotiation to initialize
NegotiationFactoryException
- indicates that the creation of a negotiation process was rejectedpublic AgreementFactoryPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
AbstractAgreementFactoryClient
getResourceProperties
in interface AgreementFactoryClient
getResourceProperties
in class AbstractAgreementFactoryClient
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 |