info.magnolia.module.delta
Class ChangeAllPropertiesWithCertainValueTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
info.magnolia.module.delta.ChangeAllPropertiesWithCertainValueTask
- All Implemented Interfaces:
- Task
public class ChangeAllPropertiesWithCertainValueTask
- extends AbstractRepositoryTask
Changes all properties in an entire workspace that are of type PropertyType.STRING
and has a certain value.
Note that this uses the query functionality of JCR and is therefore usable only if currentValue
is a
valid fullTextSearchExpression
as defined in JCR2 6.7.19. More specifically it is not guaranteed to
find all properties intended to be changed if currentValue
either:
- starts with a dash
- contains the word
OR
- contains characters that conflict with the query syntax such as quote, double quote, minus and backslash
ChangeAllPropertiesWithCertainValueTask
public ChangeAllPropertiesWithCertainValueTask(String name,
String description,
String workspaceName,
String currentValue,
String newValue)
doExecute
protected void doExecute(InstallContext installContext)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Specified by:
doExecute
in class AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.