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

All Known Implementing Classes:
AbstractWSAG4JPersistence, DatabaseWSAG4JPersistence, SimpleWSAG4JPersistence, WSAG4JPersistenceFacade, WsagEngine

public interface IAgreementFactoryHome

This interface encapsulates one or more agreement factory that are loaded with one agreement engine. An agreement engine is based on one particular WSAG4J configuration, i.e. multiple factories can be exposed through the persistence layer, where each factory is instantiated on the same engine configuration file.

Author:
Oliver Waeldrich

Method Summary
 PersistentAgreementFactory find(String factoryId)
          Finds an agreement factory with a given id.
 PersistentAgreementFactory[] list()
          Lists all agreement factories.
 void remove(String factoryId)
          Removes the factory with the given ID.
 void saveAgreementFactories(PersistentAgreementFactory[] factories)
          Deprecated.  
 

Method Detail

find

PersistentAgreementFactory find(String factoryId)
                                throws Exception
Finds an agreement factory with a given id.

Parameters:
factoryId - ID of the agreement factory.
Returns:
the factory with the given id
Throws:
Exception - indicates an exception while loading the factory from the database

list

PersistentAgreementFactory[] list()
                                  throws Exception
Lists all agreement factories.

Returns:
List of all agreement factories.
Throws:
Exception - indicates an exception while loading the factories from the database

remove

void remove(String factoryId)
            throws Exception
Removes the factory with the given ID.

Parameters:
factoryId - ID of the factory to remove.
Throws:
Exception - indicates an exception while removing the factory from the database

saveAgreementFactories

@Deprecated
void saveAgreementFactories(PersistentAgreementFactory[] factories)
                            throws Exception
Deprecated. 

Parameters:
factories - List of factories, which should be saved/persisted.
Throws:
Exception - indicates an exception while saving the factory in the database


Copyright © 2008-2012. All Rights Reserved.