|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.server.actions.AbstractCreateAgreementAction
public abstract class AbstractCreateAgreementAction
AbstractCreateAgreementAction Abstract base class for agreement creation actions.
Constructor Summary | |
---|---|
AbstractCreateAgreementAction()
|
Method Summary | |
---|---|
Agreement |
createAgreement(AgreementOffer offer)
Compatibility method to support old agreement actions. |
Agreement |
createAgreement(AgreementOffer offer,
Map<String,Object> context)
Creates a new agreement based on an offer. |
IActionHandlerContext |
getHandlerContext()
Returns the context of this action handler. |
void |
initialize()
Default implementation of action initialization. |
void |
setHandlerContext(IActionHandlerContext context)
Sets the context for this action handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCreateAgreementAction()
Method Detail |
---|
public IActionHandlerContext getHandlerContext()
getHandlerContext
in interface IActionHandler
public void setHandlerContext(IActionHandlerContext context)
setHandlerContext
in interface IActionHandler
context
- Sets the context for this handler instance. A handler uses the context i.e. to look up the
handler configuration during initialization.IActionHandlerContext
public void initialize() throws ActionInitializationException
initialize
in interface IActionHandler
ActionInitializationException
- Indicates an error during handler initialization.public Agreement createAgreement(AgreementOffer offer, Map<String,Object> context) throws AgreementFactoryException
createAgreement
in interface ICreateAgreementAction
offer
- the offer to create an agreement forcontext
- factory invocation context
AgreementFactoryException
- indicates that the agreement offer was rejected or a factory fault occurred.public Agreement createAgreement(AgreementOffer offer) throws AgreementFactoryException
offer
- the offer to create an agreement for
AgreementFactoryException
- indicates that the agreement offer was rejected or a factory fault occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |