org.apache.agila.impl.memory
Class BusinessProcessServiceImpl

java.lang.Object
  extended by org.apache.agila.services.AbstractBusinessProcessService
      extended by org.apache.agila.impl.memory.BusinessProcessServiceImpl
All Implemented Interfaces:
BusinessProcessService

public class BusinessProcessServiceImpl
extends AbstractBusinessProcessService

In-memory implemetation of the BusinessProcessService. Just keeps the process graphs in a map *

Version:
$Id: $
Author:
Geir Magnusson Jr.

Constructor Summary
BusinessProcessServiceImpl()
           
 
Method Summary
protected  BusinessProcessID internalAddGraph(BusinessProcess graph)
          Takes a graph and adds it to the persistent store, returning it's new ID.
protected  java.util.List internalGetAllProcessGraphs()
          returns all saved graph
protected  BusinessProcess internalGetByID(BusinessProcessID id)
          returns a saved graph
protected  BusinessProcessID internalGetIDByName(java.lang.String name)
           
 
Methods inherited from class org.apache.agila.services.AbstractBusinessProcessService
addGraph, addGraph, getCurrentProcessInfos, getGraphByID, getGraphIDByName, getInfoByID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessProcessServiceImpl

public BusinessProcessServiceImpl()
Method Detail

internalAddGraph

protected BusinessProcessID internalAddGraph(BusinessProcess graph)
Takes a graph and adds it to the persistent store, returning it's new ID.

TODO - something smart if already exists (name makes it unique)

Specified by:
internalAddGraph in class AbstractBusinessProcessService
Parameters:
graph -
Returns:

internalGetByID

protected BusinessProcess internalGetByID(BusinessProcessID id)
returns a saved graph

Specified by:
internalGetByID in class AbstractBusinessProcessService
Parameters:
id -
Returns:

internalGetAllProcessGraphs

protected java.util.List internalGetAllProcessGraphs()
returns all saved graph

Specified by:
internalGetAllProcessGraphs in class AbstractBusinessProcessService
Returns:

internalGetIDByName

protected BusinessProcessID internalGetIDByName(java.lang.String name)
Specified by:
internalGetIDByName in class AbstractBusinessProcessService


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.