|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.process.filter.Filter
atg.process.filter.ExpressionFilter
atg.markers.scenario.MarkerExpressionFilter
atg.commerce.markers.scenario.OrderHasMarker
public class OrderHasMarker
This class can be used to create marker test expressions for an order.
Extensions must provide the map of the new expression's operator names to the ones provided by this class.
The operator names provided by this class are:
hasMarker
hasLastMarker
hasLastMarkerWithKey
MarkerConfiguration.getHasMarkerOperatorMap()
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
OP_HAS_LASTMARKER
|
static java.lang.String |
OP_HAS_LASTMARKER_WITHKEY
|
static java.lang.String |
OP_HAS_MARKER
Scenario operators handled by the evaluate methods |
Fields inherited from class atg.markers.scenario.MarkerExpressionFilter |
---|
mMarkerConfiguration |
Fields inherited from class atg.process.filter.Filter |
---|
FALSE, TRUE |
Fields inherited from interface atg.commerce.markers.OrderMarkerConstants |
---|
ORDER_MARKER_RESOURCE_NAME, ORDER_PROPERTY_NAME, sResourceBundle |
Constructor Summary | |
---|---|
OrderHasMarker()
|
Method Summary | |
---|---|
protected Filter |
evaluate(ProcessExecutionContext pContext)
Evaluates this filter in the given process execution context. |
protected java.lang.String |
getHasMarkerOperatorToPerform(ProcessExecutionContext pContext)
This method is called by the evaluate method to determine the operator name. |
protected Order |
getOrderToUse(ProcessExecutionContext pContext)
This method is called by the doAction method to return the Order that's used in the order marker manager API calls. |
void |
initialize(java.lang.String pOperator,
Expression[] pOperands)
called by Scenario Manager to initialize the expression |
Methods inherited from class atg.markers.scenario.MarkerExpressionFilter |
---|
configure, getData, getDuplicationMode, getExtendedProperties, getKey, getMarkedItemType, getMarkerConfiguration, getMarkerItemType, getMarkerPropertyName, getRepositoryMarkerManager, getValue, setMarkerConfiguration |
Methods inherited from class atg.process.filter.ExpressionFilter |
---|
equals, getOperands, getOperator, operandsEquals, setOperands, setOperator, toString |
Methods inherited from class atg.process.filter.Filter |
---|
andFilters, andFilters, assumeFalse, assumeTrue, createProcessInstanceQuery, createSubjectQuery, getResourceBundle, getSubjectType, hashCode, implies, isCacheable, negate, orFilters, orFilters, setCacheable, test |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String OP_HAS_MARKER
public static final java.lang.String OP_HAS_LASTMARKER
public static final java.lang.String OP_HAS_LASTMARKER_WITHKEY
Constructor Detail |
---|
public OrderHasMarker()
Method Detail |
---|
protected Order getOrderToUse(ProcessExecutionContext pContext)
The order is either extracted from the event or from the current session's shopping cart.
protected java.lang.String getHasMarkerOperatorToPerform(ProcessExecutionContext pContext)
By default, this method uses the operator name returned by getOperator to lookup to the appropriate base operator name provided by ItemHasMarker.
The base operator names for OrderHasMarker are: hasMarker, hasLastMarker and hasLastMarkerWithKey
Because this class can be extended to implement any number of scenario hasMarker expressions, the new expression operator names must be mapped in the configuration component to one of the standard operators above.
MarkerConfiguration.getHasMarkerOperatorMap()
public void initialize(java.lang.String pOperator, Expression[] pOperands) throws ProcessException
initialize
in class MarkerExpressionFilter
pOperator
- the filter operator namespOperands
- the operands to the filter.
ProcessException
- if the operands argument is invalidprotected Filter evaluate(ProcessExecutionContext pContext) throws ProcessException
The possible return values of this method are as follows:
Filter.TRUE
- if the filter can be fully
evaluated, and is satisfied in the given context
Filter.FALSE
- if the filter can be fully
evaluated, and is not satisfied in the given context
evaluate
in class Filter
ProcessException
- if there is a problem evaluating the
filter (other than information missing from the context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |