public abstract class MarkerExpressionFilter extends ExpressionFilter implements MarkerConstants
This class provides access to a configuration component of type MarkerConfiguration.
Accessor methods are provided to return the configurable property values from the configuration component. By default, each of the accessor methods returns the configured value from the MarkerConfiguration componenent. However these methods can be extended to return dynamic values.
configure(java.lang.String, java.lang.Object)
,
getDuplicationMode(atg.process.ProcessExecutionContext)
,
getExtendedProperties(atg.process.ProcessExecutionContext)
,
getMarkedItemType(atg.process.ProcessExecutionContext)
,
getMarkerItemType(atg.process.ProcessExecutionContext)
,
getMarkerPropertyName(atg.process.ProcessExecutionContext)
,
MarkerConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected MarkerConfiguration |
mMarkerConfiguration
The MarkerConfiguration reference
|
ALLOW_DUPLICATES, ANY_VALUE, DEFAULT_MARKER_ID_PROPERTY_NAME, DEFAULT_MARKER_ITEM_TYPE, DEFAULT_MARKER_PROPERTY_NAME, DEFAULT_MARKER_SORT_PROPERTY_NAME, MARKER_CREATIONDATE_PROPERTY_NAME, MARKER_DATA_PROPERTY_NAME, MARKER_DUPLICATIONMODE_PROPERTY_NAME, MARKER_KEY_PROPERTY_NAME, MARKER_OWNER_PROPERTY_NAME, MARKER_RESOURCE_NAME, MARKER_VALUE_PROPERTY_NAME, NO_DUPLICATES, PARAM_DATA, PARAM_DUPMODE, PARAM_EXTENDED_PROPERTIES, PARAM_ITEM, PARAM_ITEM_ID, PARAM_KEY, PARAM_MARKED_ITEM_TYPE, PARAM_MARKER_ITEM_TYPE, PARAM_MARKER_MANAGER, PARAM_MARKER_PROPERTY_NAME, PARAM_VALUE, REPLACE_DUPLICATES, sResourceBundle
Constructor and Description |
---|
MarkerExpressionFilter() |
Modifier and Type | Method and Description |
---|---|
void |
configure(java.lang.String pOperator,
java.lang.Object pConfiguration)
The configuration object provides the reference to
the the RepositoryMarkerManager and also the
default parameter values.
|
protected java.lang.String |
getData(ProcessExecutionContext pContext)
Returns the data parameter.
|
protected java.lang.String |
getDuplicationMode(ProcessExecutionContext pContext)
Returns the duplcationMode.
|
protected java.util.Map |
getExtendedProperties(ProcessExecutionContext pContext)
This method is called by the evaluate method to return the
extendedProperties map.
|
protected java.lang.String |
getKey(ProcessExecutionContext pContext)
Returns the key parameter.
|
protected java.lang.String |
getMarkedItemType(ProcessExecutionContext pContext)
Returns the markedItemType.
|
protected MarkerConfiguration |
getMarkerConfiguration() |
protected java.lang.String |
getMarkerItemType(ProcessExecutionContext pContext)
Returns the markerItemType.
|
protected java.lang.String |
getMarkerPropertyName(ProcessExecutionContext pContext)
Returns the markerPropertyName.
|
protected RepositoryMarkerManager |
getRepositoryMarkerManager()
Returns the cofigured RepositoryMarkerManager.
|
protected java.lang.String |
getValue(ProcessExecutionContext pContext)
Returns the value parameter.
|
void |
initialize(java.lang.String pOperator,
Expression[] pOperands)
Initializes this ExpressionFilter, given its operator and
operands.
|
protected void |
setMarkerConfiguration(java.lang.Object pConfiguration) |
equals, getOperands, getOperator, operandsEquals, setOperands, setOperator, toString
andFilters, andFilters, assumeFalse, assumeTrue, createProcessInstanceQuery, createSubjectQuery, evaluate, getResourceBundle, getSubjectType, hashCode, implies, isCacheable, negate, orFilters, orFilters, setCacheable, test
public static java.lang.String CLASS_VERSION
protected MarkerConfiguration mMarkerConfiguration
protected MarkerConfiguration getMarkerConfiguration()
protected void setMarkerConfiguration(java.lang.Object pConfiguration) throws ProcessException
ProcessException
public void configure(java.lang.String pOperator, java.lang.Object pConfiguration) throws ProcessException, java.lang.UnsupportedOperationException
configure
in class ExpressionFilter
ProcessException
- if the filter could not be configured
- for example, because some of the required properties are
missing from the configurationjava.lang.UnsupportedOperationException
- if this filter is not
configurableMarkerConfiguration
public void initialize(java.lang.String pOperator, Expression[] pOperands) throws ProcessException
initialize
in class ExpressionFilter
pOperator
- the filter operator namespOperands
- the operands to the filter.ProcessException
- if the operands argument is invalidprotected java.lang.String getKey(ProcessExecutionContext pContext) throws ProcessException
This parameter is expected to be element zero in the parameter array.
ProcessException
protected java.lang.String getValue(ProcessExecutionContext pContext) throws ProcessException
This parameter is expected to be element one in the parameter array.
ProcessException
protected java.lang.String getData(ProcessExecutionContext pContext) throws ProcessException
This parameter is expected to be element two in the parameter array.
ProcessException
protected java.lang.String getMarkerPropertyName(ProcessExecutionContext pContext)
By default, the marker configuration's defaultMarkerPropertyName is returned.
Override this method to return an alternate value such as something provided as a parameter or derived dynamically based on the context.
protected java.lang.String getMarkerItemType(ProcessExecutionContext pContext)
By default, the marker configuration's defaultMarkerItemType is returned.
Override this method to return an alternate value such as something provided as a parameter or derived dynamically based on the context.
protected java.lang.String getMarkedItemType(ProcessExecutionContext pContext)
By default, the marker configuration's defaultMarkedItemType is returned.
Override this method to return an alternate value such as something provided as a parameter or derived dynamically based on the context.
protected java.lang.String getDuplicationMode(ProcessExecutionContext pContext)
By default, the marker configuration's defaultDuplicationMode is returned.
Override this method to return an alternate value such as something provided as a parameter or derived dynamically based on the context.
protected RepositoryMarkerManager getRepositoryMarkerManager()
protected java.util.Map getExtendedProperties(ProcessExecutionContext pContext)
The based implementation returns null.