Class ConfigEntry
java.lang.Object
com.adobe.granite.workflow.launcher.ConfigEntry
The
ConfigEntry represents one workflow launcher
configuration entry-
Constructor Summary
ConstructorsConstructorDescriptionConfigEntry(int eventType, String glob, String nodetype, String whereClause, String workflow, String id, String description, boolean enabled, List<String> excludeList, List<String> runModes) Deprecated.ConfigEntry(int eventType, String glob, String nodetype, List<String> whereClauses, String workflow, String id, String description, boolean enabled, List<String> excludeList, List<String> runModes, List<String> features, List<String> disabledFeatures) Construct a ConfigEntry with the specified information. -
Method Summary
Modifier and TypeMethodDescriptionGet the description for this launcher configuration.return a list of features which must be disabled or not found for this launcher configuration to be enabledintReturn the JCR Event Type that triggers this config.Returns a list of exclude conditions.return a list of features which must be enabled for this launcher configuration to be enabledgetGlob()Returns the path pattern that triggers this launcher configuration.getId()Return the ID of this trigger.Get the node type associated with this launcher.Return the list of runmode associated with this launcher configuration.Deprecated.use #getWhereClauses()Return the where clause for this trigger.Return the name of the workflow to trigger.inthashCode()booleanReturns if this launcher configuration is enabled or not.voidsetDescription(String description) Set the description for this launcher configuration.voidsetDisabledFeatures(List<String> disabledFeatures) sets a list of features which must be disabled for this launcher configuration to be enabledvoidsetEnabled(boolean enabled) Enables or disables this launcher configuration.voidsetEventType(int eventType) Set the event type to watch.voidsetExcludeList(List<String> excludeList) Set the list of exclude conditions.voidsetFeatures(List<String> features) sets a list of features which must be enabled for this launcher configuration to be enabledvoidSet the path pattern to trigger this launcher configuration.voidSet the Id of this triggervoidsetNodetype(String nodetype) Set the node type associated with this launcher.voidsetRunModes(List<String> runModes) Set the run moodes associated with this launcher configuration.voidsetWhereClause(String whereClause) Deprecated.use #setWhereClausesvoidsetWhereClauses(List<String> whereClauses) Set the where clause for this trigger.voidsetWorkflow(String workflow) Set the name of the workflow to trigger.toString()
-
Constructor Details
-
ConfigEntry
public ConfigEntry(int eventType, String glob, String nodetype, String whereClause, String workflow, String id, String description, boolean enabled, List<String> excludeList, List<String> runModes) Deprecated.Construct a ConfigEntry with the specified information.- Parameters:
eventType- one of javax.jcr.observation.Event#NODE_ADDEDglob- the path pattern, can be regexp, where the event should be watchingnodetype- type of node to watchwhereClause- node property conditions to watchworkflow- the name of the workflow to triggerid- the id for this configdescription- description for this configenabled- true if the enabled, false for disabledexcludeList- conditions to exclude from the eventrunModes- runmodes for this config
-
ConfigEntry
public ConfigEntry(int eventType, String glob, String nodetype, List<String> whereClauses, String workflow, String id, String description, boolean enabled, List<String> excludeList, List<String> runModes, List<String> features, List<String> disabledFeatures) Construct a ConfigEntry with the specified information.- Parameters:
eventType- one of javax.jcr.observation.Event#NODE_ADDEDglob- the path pattern, can be regexp, where the event should be watchingnodetype- type of node to watchwhereClauses- list of node property conditions. All conditions must be TRUE to launch the workflow. A single condition entry can contain || for OR conditionsworkflow- the name of the workflow to triggerid- the id for this configdescription- description for this configenabled- true if the enabled, false for disabledexcludeList- conditions to exclude from the eventrunModes- runmodes for this configfeatures- features which must be enabled for this launcher to be activedisabledFeatures- features which must be disabled for this launcher to be active
-
-
Method Details
-
getWorkflow
Return the name of the workflow to trigger.- Returns:
- workflow name.
-
setWorkflow
Set the name of the workflow to trigger.- Parameters:
workflow- workflow name
-
getEventType
public int getEventType()Return the JCR Event Type that triggers this config.- Returns:
- event type
-
setEventType
public void setEventType(int eventType) Set the event type to watch.- Parameters:
eventType- event type to listen to.
-
getGlob
Returns the path pattern that triggers this launcher configuration.- Returns:
- path pattern.
-
setGlob
Set the path pattern to trigger this launcher configuration.- Parameters:
glob- path pattern.
-
getNodetype
Get the node type associated with this launcher.- Returns:
- node type
-
setNodetype
Set the node type associated with this launcher.- Parameters:
nodetype- the node type
-
getWhereClause
Deprecated.use #getWhereClauses()Return the where clause for this trigger. The where clause is a condition of node properties, e.g. approved==true- Returns:
- where clause
-
getWhereClauses
Return the where clause for this trigger. The where clause is a condition of node properties, e.g. approved==true- Returns:
- where clause
-
setWhereClause
Deprecated.use #setWhereClausesSet the where clause for this trigger.- Parameters:
whereClause- condition
-
setWhereClauses
Set the where clause for this trigger.- Parameters:
whereClauses- conditions
-
getId
Return the ID of this trigger.- Returns:
- id
-
setId
Set the Id of this trigger- Parameters:
id- trigger id.
-
getDescription
Get the description for this launcher configuration.- Returns:
- description
-
setDescription
Set the description for this launcher configuration.- Parameters:
description- a new description.
-
hashCode
public int hashCode() -
isEnabled
public boolean isEnabled()Returns if this launcher configuration is enabled or not.- Returns:
- true if the configuration is enabled, false otherwise.
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables this launcher configuration.- Parameters:
enabled- true to enable this configuration, false otherwise.
-
getExcludeList
Returns a list of exclude conditions. If conditions in this list evaluate to true the launcher configuration does not trigger.- Returns:
- list of conditions
-
setExcludeList
Set the list of exclude conditions.- Parameters:
excludeList- new exclude conditions list.
-
getRunModes
Return the list of runmode associated with this launcher configuration.- Returns:
- list of run modes.
-
setRunModes
Set the run moodes associated with this launcher configuration.- Parameters:
runModes- list of runmodes.
-
getFeatures
return a list of features which must be enabled for this launcher configuration to be enabled- Returns:
- list of features for this launcher
-
getDisabledFeatures
return a list of features which must be disabled or not found for this launcher configuration to be enabled- Returns:
- list of features for this launcher
-
setFeatures
sets a list of features which must be enabled for this launcher configuration to be enabled- Parameters:
features- list of features for this launcher
-
setDisabledFeatures
sets a list of features which must be disabled for this launcher configuration to be enabled- Parameters:
disabledFeatures- list of features which must be disabled
-
toString
-