info.magnolia.module.delta
Class FindAndChangeTemplateIdTask

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

public class FindAndChangeTemplateIdTask
extends AbstractRepositoryTask

Task which find all content with specific template id and change template id to new one.


Constructor Summary
FindAndChangeTemplateIdTask(String name, String description, String repository, String oldTemplateId, String newTemplateId)
           
 
Method Summary
protected  void doExecute(InstallContext installContext)
           
protected  void operateOnNode(InstallContext installContext, javax.jcr.Node node)
           
 
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

FindAndChangeTemplateIdTask

public FindAndChangeTemplateIdTask(String name,
                                   String description,
                                   String repository,
                                   String oldTemplateId,
                                   String newTemplateId)
Method Detail

doExecute

protected void doExecute(InstallContext installContext)
                  throws javax.jcr.RepositoryException,
                         TaskExecutionException
Specified by:
doExecute in class AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
TaskExecutionException

operateOnNode

protected void operateOnNode(InstallContext installContext,
                             javax.jcr.Node node)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.