|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.process.filter.Filter atg.process.filter.ExpressionFilter atg.markers.scenario.MarkerExpressionFilter
public abstract class MarkerExpressionFilter
This abstract class can be implemented to create a marker expression filter.
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
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected MarkerConfiguration |
mMarkerConfiguration
The MarkerConfiguration reference |
Fields inherited from class atg.process.filter.Filter |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
MarkerExpressionFilter()
|
Method Summary | |
---|---|
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)
|
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, evaluate, 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
protected MarkerConfiguration mMarkerConfiguration
Constructor Detail |
---|
public MarkerExpressionFilter()
Method Detail |
---|
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 configuration
java.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |