org.ogf.graap.wsag.samples
Class Sample1NegotiateAgreementAction
java.lang.Object
org.ogf.graap.wsag.server.actions.AbstractNegotiationAction
org.ogf.graap.wsag.samples.Sample1NegotiateAgreementAction
- All Implemented Interfaces:
- IActionHandler, INegotiationAction
public class Sample1NegotiateAgreementAction
- extends AbstractNegotiationAction
Sample1NegotiateAgreementAction
- Author:
- Oliver Waeldrich
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sample1NegotiateAgreementAction
public Sample1NegotiateAgreementAction()
negotiate
public NegotiationOfferType[] negotiate(NegotiationOfferType quote,
Map<String,Object> context)
throws NegotiationException
- Negotiates an agreement offer. For each negotiation offer, one or more counter proposals may be
created. A negotiation request can comprise multiple negotiation offers. These offers are processed
sequentially, sharing a common invocation context.
- Parameters:
quote
- the negotiation offer to processcontext
- the invocation context
- Returns:
- a set of counter offers
- Throws:
NegotiationException
- indicates an error during the negotiation process- See Also:
INegotiationAction.negotiate(org.ogf.schemas.graap.wsAgreement.negotiation.NegotiationOfferType,
java.util.Map)
initialize
public void initialize()
throws ActionInitializationException
- Default implementation of action initialization. Subclasses may overwrite this
method in order to provide a custom initialization of a handler.
Initializes an action handler. This method is called when a agreement factory
action initializes its action handlers. It is called once during the the engine initialization.
- Specified by:
initialize
in interface IActionHandler
- Overrides:
initialize
in class AbstractNegotiationAction
- Throws:
ActionInitializationException
- Indicates an error during handler initialization.- See Also:
IAction.initialize()
Copyright © 2008-2012. All Rights Reserved.