public abstract class AddMarkerToItem extends MarkerAction implements MarkerConstants
Extend this class and to create an action that adds a marker to a repository item.
Extensions must implement the getItemToUse method that returns the repositor item to be marked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mMarkerConfiguration
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 |
---|
AddMarkerToItem() |
Modifier and Type | Method and Description |
---|---|
void |
doAction(ProcessExecutionContext pContext)
Adds a marker to the item.
|
protected abstract RepositoryItem |
getItemToUse(ProcessExecutionContext pContext)
This method is called by the doAction method to return the RepositoryItem
that's used in the RepositoryMarkerManager addMarker API calls.
|
void |
initialize(java.util.Map pParameters)
verifies required parameters are provided
|
configure, doesParameterExist, executeAction, getData, getDuplicationMode, getExtendedProperties, getKey, getMarkedItemType, getMarkerConfiguration, getMarkerItemType, getMarkerPropertyName, getValue, setMarkerConfiguration
execute, execute, getActionName, getParameterExpression, getParameterValue, storeOptionalParameter, storeRequiredMutableParameter, storeRequiredParameter, toString, toString
protected abstract RepositoryItem getItemToUse(ProcessExecutionContext pContext)
public void initialize(java.util.Map pParameters) throws ProcessException
Required parameters: PARAM_KEY
initialize
in interface Action
initialize
in class MarkerAction
ProcessException
- if key is no providedExpression
public void doAction(ProcessExecutionContext pContext) throws ProcessException
doAction
in class MarkerAction
ProcessException
- if the action can not be executed