public class QueryElementsAndDisplayWarningTask extends AbstractRepositoryTask
A warning is displayed only if there is at least one node found by given query.
DO_NOTHING
Constructor and Description |
---|
QueryElementsAndDisplayWarningTask(String name,
String description,
String workspace,
String queryStatement,
String baseMessageFormat,
List<String> exclusionLists) |
QueryElementsAndDisplayWarningTask(String name,
String description,
String workspace,
String queryStatement,
String nodeType,
String baseMessageFormat,
List<String> exclusionLists)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(InstallContext installContext) |
execute
getDescription, getName, toString
public QueryElementsAndDisplayWarningTask(String name, String description, String workspace, String queryStatement, String nodeType, String baseMessageFormat, List<String> exclusionLists)
name
- Name of the taskdescription
- Description of the taskworkspace
- Name of the workspace to search inqueryStatement
- Full query statementnodeType
- The node type of the nodes to aggregate; provide null
to display every itembaseMessageFormat
- The message format to be displayed, make sure to provide it with a %s
placeholder, e.g. "Message start\n%s\nMessage end."
exclusionLists
- A list of paths to exclude from being mentioned in warningprotected void doExecute(InstallContext installContext) throws javax.jcr.RepositoryException, TaskExecutionException
doExecute
in class AbstractRepositoryTask
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.