info.magnolia.module.delta
Class SetPropertyTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.SetPropertyTask
All Implemented Interfaces:
Task

public class SetPropertyTask
extends AbstractRepositoryTask

Sets a new value for a property. Consider using CheckAndModifyPropertyValueTask if you want your update tasks to only modify expected values.

Version:
$Revision: $ ($Author: $)
Author:
fgiust
See Also:
CheckAndModifyPropertyValueTask

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
SetPropertyTask(String workspaceName, String nodePath, String propertyName, String newValue)
           
SetPropertyTask(String taskName, String workspaceName, String nodePath, String propertyName, 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

SetPropertyTask

public SetPropertyTask(String workspaceName,
                       String nodePath,
                       String propertyName,
                       String newValue)

SetPropertyTask

public SetPropertyTask(String taskName,
                       String workspaceName,
                       String nodePath,
                       String propertyName,
                       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-2012 Magnolia International Ltd.. All Rights Reserved.