org.ogf.graap.wsag.server.actions
Interface ICreateAgreementAction

All Superinterfaces:
IActionHandler
All Known Implementing Classes:
AbstractCreateAgreementAction, CreatePendingAgreementAction, CreatePendingAgreementWithNotificationAction, ExampleCreateAgreementAction, Sample1CreateAgreementAction, Sample2CreateAgreementAction, SampleCreateAgreementAction, SampleMonitoredAgreementAction

public interface ICreateAgreementAction
extends IActionHandler

A create agreement action handler implements the functionality to create a new agreement instance. It is accociated with a specific

Author:
Oliver Waeldrich

Method Summary
 Agreement createAgreement(AgreementOffer offer, Map<String,Object> context)
          Creates a new agreement based on an offer.
 
Methods inherited from interface org.ogf.graap.wsag.server.actions.IActionHandler
getHandlerContext, initialize, setHandlerContext
 

Method Detail

createAgreement

Agreement createAgreement(AgreementOffer offer,
                          Map<String,Object> context)
                          throws AgreementFactoryException
Creates a new agreement based on an offer.

Parameters:
offer - the offer to create an agreement for
context - factory invocation context
Returns:
the created agreement
Throws:
AgreementFactoryException - indicates that the agreement offer was rejected or a factory fault occurred.


Copyright © 2008-2012. All Rights Reserved.