info.magnolia.module.workflow.jcr
Class JCRExpressionStore

java.lang.Object
  extended by openwfe.org.AbstractService
      extended by openwfe.org.engine.impl.expool.AbstractExpressionStore
          extended by info.magnolia.module.workflow.jcr.JCRExpressionStore
All Implemented Interfaces:
openwfe.org.engine.expool.ExpressionStore, openwfe.org.OwfeRunnable, openwfe.org.RunnableService, openwfe.org.Service

public class JCRExpressionStore
extends openwfe.org.engine.impl.expool.AbstractExpressionStore

The JCR implementation of the expression store.

Author:
Jackie Ju, Nicolas Modrzyk, John Mettraux, gjoseph

Nested Class Summary
protected  class JCRExpressionStore.StoreIterator
          'lightweight' storeIterator.
 
Field Summary
 
Fields inherited from interface openwfe.org.Service
CONFIGURATION_FILE
 
Constructor Summary
JCRExpressionStore(boolean useLifeTimeJCRSession, boolean cleanUp)
           
 
Method Summary
 Iterator contentIterator(Class assignClass)
          Returns an iterator on the content of that expression store.
protected  HierarchyManager getHierarchyManager()
           
 void init(String serviceName, openwfe.org.ApplicationContext context, Map serviceParams)
           
 openwfe.org.engine.expressions.FlowExpression loadExpression(openwfe.org.engine.expressions.FlowExpressionId fei)
          Loads an expression given its id.
 int size()
          Returns the number of expressions currently stored in that store.
 void storeExpression(openwfe.org.engine.expressions.FlowExpression fe)
          Stores one expression.
 String toXPathFriendlyString(openwfe.org.engine.expressions.FlowExpressionId fei)
           
 void unstoreExpression(openwfe.org.engine.expressions.FlowExpression fe)
          Removes the expression from the JCR storage.
 
Methods inherited from class openwfe.org.engine.impl.expool.AbstractExpressionStore
determineExpressionShortNames, getExpressionPool, loadAll, loadEngineEnvironment
 
Methods inherited from class openwfe.org.AbstractService
getContext, getName, getParams, getState, getStatus, isRunning, pause, play, setState, stop, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRExpressionStore

public JCRExpressionStore(boolean useLifeTimeJCRSession,
                          boolean cleanUp)
Method Detail

init

public void init(String serviceName,
                 openwfe.org.ApplicationContext context,
                 Map serviceParams)
          throws openwfe.org.ServiceException
Specified by:
init in interface openwfe.org.Service
Overrides:
init in class openwfe.org.AbstractService
Throws:
openwfe.org.ServiceException

storeExpression

public void storeExpression(openwfe.org.engine.expressions.FlowExpression fe)
                     throws openwfe.org.engine.expool.PoolException
Stores one expression.

Throws:
openwfe.org.engine.expool.PoolException

unstoreExpression

public void unstoreExpression(openwfe.org.engine.expressions.FlowExpression fe)
                       throws openwfe.org.engine.expool.PoolException
Removes the expression from the JCR storage.

Throws:
openwfe.org.engine.expool.PoolException

contentIterator

public Iterator contentIterator(Class assignClass)
Returns an iterator on the content of that expression store.


loadExpression

public openwfe.org.engine.expressions.FlowExpression loadExpression(openwfe.org.engine.expressions.FlowExpressionId fei)
                                                             throws openwfe.org.engine.expool.PoolException
Loads an expression given its id.

Throws:
openwfe.org.engine.expool.PoolException

size

public int size()
Returns the number of expressions currently stored in that store.


toXPathFriendlyString

public final String toXPathFriendlyString(openwfe.org.engine.expressions.FlowExpressionId fei)

getHierarchyManager

protected HierarchyManager getHierarchyManager()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.