MetaDone
metadone_bundle_metabusiness.service.BusinessManager Interface Reference
Inheritance diagram for metadone_bundle_metabusiness.service.BusinessManager:

List of all members.

Classes

class  BMFactoryChanged

Public Member Functions

Workspace createWorkspace (String nameFactory, String nameProject) throws BadPreCondition, FailedOperation
Workspace openWorkspace (String nameFactory, String nameProject) throws BadPreCondition, FailedOperation, BadVersionMetal2
void createFactory (RepositoryManager.TechnoRepository techno, Properties props, String name) throws FailedOperation, BadPreCondition
boolean removeFactory (String name)
Set< String > listFactories ()
Set< String > listProjects (String nameFactory) throws BadPreCondition, FailedOperation
void dispose ()
Transaction newTransaction (String nameFactory) throws BadPreCondition
Transaction currentTransaction (String nameFactory) throws BadPreCondition
MetadoneEvents getEventManager ()

Detailed Description

Manages a set of project factories.

Author:
ven

Member Function Documentation

void metadone_bundle_metabusiness.service.BusinessManager.createFactory ( RepositoryManager.TechnoRepository  techno,
Properties  props,
String  name 
) throws FailedOperation, BadPreCondition

Creates a factory.

Parameters:
technoThe technology used
propsThe properties
nameThe name
Exceptions:
FailedOperation
BadPreCondition

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.actions.ConnectAction.configureJPA2().

Workspace metadone_bundle_metabusiness.service.BusinessManager.createWorkspace ( String  nameFactory,
String  nameProject 
) throws BadPreCondition, FailedOperation

Creates a workspace using a factory.

Exceptions:
BadPreConditionSome precondition has failed.
FailedOperationSome error occured during the creation.

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Transaction metadone_bundle_metabusiness.service.BusinessManager.currentTransaction ( String  nameFactory) throws BadPreCondition

Depending on the persistence layer, this transaction can be more efficient (does not require to open a new connection to the server for instance.

Returns:
The default transaction.
Exceptions:
BadPreCondition

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.actions.RollbackAction.actionPerformed().

void metadone_bundle_metabusiness.service.BusinessManager.dispose ( )

Disposes the resources.

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

MetadoneEvents metadone_bundle_metabusiness.service.BusinessManager.getEventManager ( )

Gets the event manager.

Returns:
The event manager

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.MainClientMetadone.getEventManager().

Set<String> metadone_bundle_metabusiness.service.BusinessManager.listFactories ( )

Gets the names of opened factories.

Returns:
The names of opened factories

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.MainClientMetadone.BusinessManagerSubscriber.trigger().

Set<String> metadone_bundle_metabusiness.service.BusinessManager.listProjects ( String  nameFactory) throws BadPreCondition, FailedOperation

Retrieves a list of projects from a factory.

Parameters:
nameFactoryThe name of the factory
Returns:
The list of projects stored in the repository.
Exceptions:
BadPreCondition
FailedOperation

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.actions.OpenProjectAction.actionPerformed().

Transaction metadone_bundle_metabusiness.service.BusinessManager.newTransaction ( String  nameFactory) throws BadPreCondition
Returns:
A new transaction that can be used in concurrent threads.
Exceptions:
BadPreCondition

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Workspace metadone_bundle_metabusiness.service.BusinessManager.openWorkspace ( String  nameFactory,
String  nameProject 
) throws BadPreCondition, FailedOperation, BadVersionMetal2

Opens a workspace using a factory.

Exceptions:
BadPreConditionSome precondition has failed.
FailedOperationSome error occured during the creation.
BadVersionMetal2The version of the repository doesn't match the version of the repository, and the repository is not compliant with that version.

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.actions.OpenProjectAction.actionPerformed().

boolean metadone_bundle_metabusiness.service.BusinessManager.removeFactory ( String  name)

Removes a factory from the manager.

Parameters:
nameThe name of the factory
Returns:
true iff a factory was removed

Implemented in metadone_bundle_metabusiness.TheBusinessManager.

Referenced by metadone.client.actions.CloseDatabaseAction.actionPerformed().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations