Package org.apache.ofbiz.entityext.eca
Class DelegatorEcaHandler
- java.lang.Object
-
- org.apache.ofbiz.entityext.eca.DelegatorEcaHandler
-
- All Implemented Interfaces:
EntityEcaHandler<EntityEcaRule>
public class DelegatorEcaHandler extends java.lang.Object implements EntityEcaHandler<EntityEcaRule>
EntityEcaUtil
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.atomic.AtomicReference<java.util.concurrent.Future<DispatchContext>>
dctx
protected Delegator
delegator
protected java.lang.String
delegatorName
protected java.lang.String
entityEcaReaderName
static java.lang.String
module
-
Fields inherited from interface org.apache.ofbiz.entity.eca.EntityEcaHandler
EV_CACHE_CHECK, EV_CACHE_CLEAR, EV_CACHE_PUT, EV_RETURN, EV_RUN, EV_VALIDATE, OP_CREATE, OP_FIND, OP_REMOVE, OP_STORE
-
-
Constructor Summary
Constructors Constructor Description DelegatorEcaHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evalRules(java.lang.String currentOperation, java.util.Map<java.lang.String,java.util.List<EntityEcaRule>> eventMap, java.lang.String event, GenericEntity value, boolean isError)
protected DispatchContext
getDispatchContext()
java.util.Map<java.lang.String,java.util.List<EntityEcaRule>>
getEntityEventMap(java.lang.String entityName)
void
setDelegator(Delegator delegator)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
delegator
protected Delegator delegator
-
delegatorName
protected java.lang.String delegatorName
-
entityEcaReaderName
protected java.lang.String entityEcaReaderName
-
dctx
protected java.util.concurrent.atomic.AtomicReference<java.util.concurrent.Future<DispatchContext>> dctx
-
-
Method Detail
-
setDelegator
public void setDelegator(Delegator delegator)
- Specified by:
setDelegator
in interfaceEntityEcaHandler<EntityEcaRule>
-
getDispatchContext
protected DispatchContext getDispatchContext() throws GenericEntityException
- Throws:
GenericEntityException
-
getEntityEventMap
public java.util.Map<java.lang.String,java.util.List<EntityEcaRule>> getEntityEventMap(java.lang.String entityName)
- Specified by:
getEntityEventMap
in interfaceEntityEcaHandler<EntityEcaRule>
-
evalRules
public void evalRules(java.lang.String currentOperation, java.util.Map<java.lang.String,java.util.List<EntityEcaRule>> eventMap, java.lang.String event, GenericEntity value, boolean isError) throws GenericEntityException
- Specified by:
evalRules
in interfaceEntityEcaHandler<EntityEcaRule>
- Throws:
GenericEntityException
-
-