org.apache.agila.services
Class AbstractBusinessProcessService

java.lang.Object
  extended by org.apache.agila.services.AbstractBusinessProcessService
All Implemented Interfaces:
BusinessProcessService
Direct Known Subclasses:
BusinessProcessServiceImpl, BusinessProcessServiceImpl

public abstract class AbstractBusinessProcessService
extends java.lang.Object
implements BusinessProcessService

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

Constructor Summary
AbstractBusinessProcessService()
           
 
Method Summary
 BusinessProcessID addGraph(BusinessProcess graph)
          Adds a new graph to the system, returning the ID assigned to that graph.
 BusinessProcessID addGraph(java.lang.String graph)
           
 java.util.List getCurrentProcessInfos()
           
 BusinessProcess getGraphByID(BusinessProcessID id)
          Returns a BusinessProcess for the given id.
 BusinessProcessID getGraphIDByName(java.lang.String name)
           
 BusinessProcessInfo getInfoByID(BusinessProcessID id)
          Returns a BusinessProcessInfo object for the given id
protected abstract  BusinessProcessID internalAddGraph(BusinessProcess graph)
          Takes a graph and adds it to the persistent store, returning it's new ID.
protected abstract  java.util.List internalGetAllProcessGraphs()
          returns all saved graph
protected abstract  BusinessProcess internalGetByID(BusinessProcessID id)
          returns a saved graph
protected abstract  BusinessProcessID internalGetIDByName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBusinessProcessService

public AbstractBusinessProcessService()
Method Detail

addGraph

public BusinessProcessID addGraph(BusinessProcess graph)
Description copied from interface: BusinessProcessService
Adds a new graph to the system, returning the ID assigned to that graph. The business process must (right now) have a unique name

Specified by:
addGraph in interface BusinessProcessService

addGraph

public BusinessProcessID addGraph(java.lang.String graph)
Specified by:
addGraph in interface BusinessProcessService

getGraphByID

public BusinessProcess getGraphByID(BusinessProcessID id)
Description copied from interface: BusinessProcessService
Returns a BusinessProcess for the given id. Note that the BusinessProcess includes activity graphs, and may not be serilizable. For serializable information, use getInfoByID()

Specified by:
getGraphByID in interface BusinessProcessService
Returns:

getInfoByID

public BusinessProcessInfo getInfoByID(BusinessProcessID id)
Description copied from interface: BusinessProcessService
Returns a BusinessProcessInfo object for the given id

Specified by:
getInfoByID in interface BusinessProcessService
Returns:

getGraphIDByName

public BusinessProcessID getGraphIDByName(java.lang.String name)
Specified by:
getGraphIDByName in interface BusinessProcessService

getCurrentProcessInfos

public java.util.List getCurrentProcessInfos()
Specified by:
getCurrentProcessInfos in interface BusinessProcessService

internalAddGraph

protected abstract 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)

Parameters:
graph -
Returns:

internalGetByID

protected abstract BusinessProcess internalGetByID(BusinessProcessID id)
returns a saved graph

Parameters:
id -
Returns:

internalGetAllProcessGraphs

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

Returns:

internalGetIDByName

protected abstract BusinessProcessID internalGetIDByName(java.lang.String name)


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