org.ogf.graap.wsag.samples.actions
Class SampleCreateAgreementAction

java.lang.Object
  extended by org.ogf.graap.wsag.server.actions.AbstractCreateAgreementAction
      extended by org.ogf.graap.wsag.samples.actions.SampleCreateAgreementAction
All Implemented Interfaces:
IActionHandler, ICreateAgreementAction

public class SampleCreateAgreementAction
extends AbstractCreateAgreementAction

SampleCreateAgreementAction

Author:
hrasheed

Field Summary
static String SAMPLE_OFFER
          Key to identify an offer in the agreement execution properties.
 
Constructor Summary
SampleCreateAgreementAction()
           
 
Method Summary
 Agreement createAgreement(AgreementOffer offer)
          Compatibility method to support old agreement actions.
 void initialize()
          Default implementation of action initialization.
 
Methods inherited from class org.ogf.graap.wsag.server.actions.AbstractCreateAgreementAction
createAgreement, getHandlerContext, setHandlerContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAMPLE_OFFER

public static final String SAMPLE_OFFER
Key to identify an offer in the agreement execution properties.

See Also:
IMonitoringContext.getProperties(), AbstractAgreementType.getExecutionContext(), Constant Field Values
Constructor Detail

SampleCreateAgreementAction

public SampleCreateAgreementAction()
Method Detail

createAgreement

public Agreement createAgreement(AgreementOffer offer)
                          throws AgreementFactoryException
Compatibility method to support old agreement actions. The invocation context is not passed to the action.

Overrides:
createAgreement in class AbstractCreateAgreementAction
Parameters:
offer - the offer to create an agreement for
Returns:
the created agreement
Throws:
AgreementFactoryException - indicates that the agreement offer was rejected or a factory fault occurred.

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 AbstractCreateAgreementAction
Throws:
ActionInitializationException - Indicates an error during handler initialization.


Copyright © 2008-2012. All Rights Reserved.