|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 object
public 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 AgreementFactoryClientclone in class AbstractAgreementFactoryClientCloneNotSupportedException - this particular client implementation does not support cloning
public AgreementClient createAgreement(AgreementOffer offer)
throws AgreementFactoryException
createAgreement in interface AgreementFactoryClientcreateAgreement in class AbstractAgreementFactoryClientoffer - the offer to create the agreement for
AgreementFactoryException - the agreement offer was rejected by the factory
public AgreementClient createPendingAgreement(AgreementOffer offer)
throws AgreementFactoryException
createPendingAgreement in interface AgreementFactoryClientcreatePendingAgreement in class AbstractAgreementFactoryClientoffer - 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 AgreementFactoryClientgetResourceId in class AbstractAgreementFactoryClientpublic AgreementTemplateType[] getTemplates()
getTemplates in interface AgreementFactoryClientgetTemplates in class AbstractAgreementFactoryClient
public AgreementTemplateType getTemplate(String name,
String id)
AgreementFactoryClientnull if the requested
template does not exist.
getTemplate in interface AgreementFactoryClientgetTemplate in class AbstractAgreementFactoryClientname - the name of the requested templateid - the id of the requested template
public AgreementClient[] listAgreements()
listAgreements in interface AgreementFactoryClientlistAgreements in class AbstractAgreementFactoryClientpublic RemoteClient getRemoteClient()
AbstractClient
getRemoteClient in interface AgreementFactoryClientgetRemoteClient in class AbstractClient
public AgreementClient createPendingAgreement(AgreementOffer offer,
EndpointReferenceType acceptanceEPR)
throws AgreementFactoryException
AbstractAgreementFactoryClient
createPendingAgreement in interface AgreementFactoryClientcreatePendingAgreement in class AbstractAgreementFactoryClientoffer - 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 AgreementFactoryClientinitiateNegotiation in class AbstractAgreementFactoryClientcontext - the context for the negotiation to initialize
NegotiationFactoryException - indicates that the creation of a negotiation process was rejected
public AgreementFactoryPropertiesType getResourceProperties()
throws ResourceUnknownException,
ResourceUnavailableException
AbstractAgreementFactoryClient
getResourceProperties in interface AgreementFactoryClientgetResourceProperties in class AbstractAgreementFactoryClientResourceUnknownException - 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 | |||||||||