info.magnolia.module.delta
Class ChangeAllPropertiesWithCertainValueTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by 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:


Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
ChangeAllPropertiesWithCertainValueTask(String name, String description, String workspaceName, String currentValue, String newValue)
           
 
Method Summary
protected  void doExecute(InstallContext installContext)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractRepositoryTask
execute
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeAllPropertiesWithCertainValueTask

public ChangeAllPropertiesWithCertainValueTask(String name,
                                               String description,
                                               String workspaceName,
                                               String currentValue,
                                               String newValue)
Method Detail

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.