info.magnolia.setup.for3_5
Class CheckAndUpdateExistingFilters

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.AllChildrenNodesOperation
              extended by info.magnolia.setup.for3_5.CheckAndUpdateExistingFilters
All Implemented Interfaces:
Task

public final class CheckAndUpdateExistingFilters
extends AllChildrenNodesOperation

Checks for modifications between current filter configuration and the 3.0 default configuration. If there are some, a warning is displayed. Bypass configurations are transformed to the new format if that's the only change. TODO deletion of filters is not detected.

Version:
$Id: CheckAndUpdateExistingFilters.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
vsteller

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
CheckAndUpdateExistingFilters(String existingFiltersPath)
           
 
Method Summary
 void execute(InstallContext installContext)
          Executes the AllChildrenNodesOperation and possibly added subtasks to update the configuration.
protected  void operateOnChildNode(Content node, InstallContext ctx)
           
 
Methods inherited from class info.magnolia.module.delta.AllChildrenNodesOperation
doExecute, getParentNode
 
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

CheckAndUpdateExistingFilters

public CheckAndUpdateExistingFilters(String existingFiltersPath)
Method Detail

execute

public void execute(InstallContext installContext)
             throws TaskExecutionException
Executes the AllChildrenNodesOperation and possibly added subtasks to update the configuration.

Specified by:
execute in interface Task
Overrides:
execute in class AbstractRepositoryTask
Throws:
TaskExecutionException

operateOnChildNode

protected void operateOnChildNode(Content node,
                                  InstallContext ctx)
                           throws javax.jcr.RepositoryException,
                                  TaskExecutionException
Specified by:
operateOnChildNode in class AllChildrenNodesOperation
Throws:
javax.jcr.RepositoryException
TaskExecutionException


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.