org.ogf.graap.wsag.server.persistence
Interface PersistentAgreementFactory

All Superinterfaces:
AgreementFactory, IAgreementHome
All Known Subinterfaces:
WsPersistentAgreementFactory
All Known Implementing Classes:
AbstractPersistentAgreementFactory, DatabasePersistentAgreementFactory, SimplePersistentAgreementFactory, WsDatabaseAgreementFactory

public interface PersistentAgreementFactory
extends AgreementFactory, IAgreementHome

PersistentAgreementFactory

Author:
Oliver Waeldrich

Method Summary
 void addAgreement(Agreement agreement, EndpointReferenceType epr)
          Deprecated. use createAgreement method of AgreementFactory interface instead
 AgreementFactory getAgreementFactory()
          Deprecated. should internally delegate calls to Agreement factory implementation
 String getResourceId()
           
 void load()
          loads the factory instance
 void save()
          saves the factory instance
 
Methods inherited from interface org.ogf.graap.wsag.api.AgreementFactory
createAgreement, getTemplates, initiateNegotiation
 
Methods inherited from interface org.ogf.graap.wsag.server.persistence.IAgreementHome
find, list, list, remove
 

Method Detail

getResourceId

String getResourceId()
Returns:
unique factory id

getAgreementFactory

AgreementFactory getAgreementFactory()
Deprecated. should internally delegate calls to Agreement factory implementation

Returns:
the concrete implementation of the persisted factory

load

void load()
          throws Exception
loads the factory instance

Throws:
Exception - indicates an exception while loading the agreement factory from the database

save

void save()
          throws Exception
saves the factory instance

Throws:
Exception - indicates an exception while saving the agreement to the database

addAgreement

void addAgreement(Agreement agreement,
                  EndpointReferenceType epr)
Deprecated. use createAgreement method of AgreementFactory interface instead

Persists a new created agreement instance

Parameters:
agreement - the agreement instance to add
epr - the external reference for this agreement


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.