|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.server.api.EngineComponent org.ogf.graap.wsag.server.api.impl.AbstractAgreementFactory org.ogf.graap.wsag.samples.SampleAgreementFactory
@Deprecated public class SampleAgreementFactory
Sample implementation of an agreement factory.
Constructor Summary | |
---|---|
SampleAgreementFactory()
Deprecated. default constructor |
Method Summary | |
---|---|
Agreement |
createAgreement(AgreementOffer offer,
Map<String,Object> context)
Deprecated. Creates a new agreement based on an offer. |
Agreement |
createPendingAgreement(AgreementOffer offer,
PendingAgreementListener listener,
Map<String,Object> context)
Deprecated. Creates a new pending agreement based on an offer. |
protected void |
doInitialize()
Deprecated. |
AgreementTemplateType[] |
getTemplates()
Deprecated. |
Negotiation |
initiateNegotiation(NegotiationContextType context,
org.apache.xmlbeans.XmlObject[] criticalExtensions,
org.apache.xmlbeans.XmlObject[] nonCriticalExtensions,
Map<String,Object> environment)
Deprecated. Initializes a new negotiation instance. |
Methods inherited from class org.ogf.graap.wsag.server.api.impl.AbstractAgreementFactory |
---|
getFactoryContext, setFactoryContext |
Methods inherited from class org.ogf.graap.wsag.server.api.EngineComponent |
---|
getEngine, initialize |
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.AgreementFactory |
---|
getFactoryContext, setFactoryContext |
Methods inherited from interface org.ogf.graap.wsag.server.api.IEngineComponent |
---|
getEngine, initialize |
Constructor Detail |
---|
public SampleAgreementFactory()
Method Detail |
---|
public AgreementTemplateType[] getTemplates()
getTemplates
in interface AgreementFactory
public Agreement createAgreement(AgreementOffer offer, Map<String,Object> context) throws AgreementFactoryException
createAgreement
in interface AgreementFactory
offer
- agreement offercontext
- invocation context
AgreementFactoryException
- Indicates that the agreement offer was rejected or another fault occurred.public Negotiation initiateNegotiation(NegotiationContextType context, org.apache.xmlbeans.XmlObject[] criticalExtensions, org.apache.xmlbeans.XmlObject[] nonCriticalExtensions, Map<String,Object> environment) throws NegotiationFactoryException
initiateNegotiation
in interface AgreementFactory
context
- The negotiation context defines the roles and obligations of the negotiating parties.
Furthermore, it defines the nature of the negotiation process (e.g. negotiation or
re-negotiation).criticalExtensions
- Critical extensions must be supported during the negotiation process. If a critical
extension is not understood or supported by the negotiation factory, it must throw an @see
NegotiationFactoryException.nonCriticalExtensions
- Non-critical extensions should be supported during the negotiation process. If a
non-critical extension is not understood or supported by the negotiation factory, it can be
ignored. Alternatively, an @see NegotiationFactoryException could be thrown.environment
- Provides access to additional variables provided by the calling instance. These environment
variables are domain specific.
NegotiationFactoryException
- indicates that an error occurred while instantiating the negotiation processpublic Agreement createPendingAgreement(AgreementOffer offer, PendingAgreementListener listener, Map<String,Object> context) throws AgreementFactoryException
AgreementFactory
createPendingAgreement
in interface AgreementFactory
offer
- agreement offerlistener
- the listener, when provided, receives the agreement acceptance events once the creation
process is finishedcontext
- invocation context
AgreementFactoryException
- Indicates that the agreement offer was rejected or another fault occurred.protected void doInitialize() throws Exception
doInitialize
in class EngineComponent
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |