info.magnolia.setup.for3_5
Class CheckAndUpdateSecureURIs

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.CheckAndUpdateSecureURIs
All Implemented Interfaces:
Task

public class CheckAndUpdateSecureURIs
extends AllChildrenNodesOperation
implements Task

Checks for modifications between current secureURI configuration and the 3.0 default configuration. Modified secureURIs are added as URI permissions to the anonymous user URI ACLs. If the default secured URIs ("root" and "admininterface") had been removed, they are re-added (by means of the default anonymous role's new permissions).

Version:
$Id: CheckAndUpdateSecureURIs.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
CheckAndUpdateSecureURIs(String existingSecureURIs)
           
 
Method Summary
 void execute(InstallContext installContext)
          A good-citizen task should execute itself responsibly: it should know what to do in case of problems: for instance, fixable or irrelevant issues should usually just be logged used the InstallContext methods, when the user can fix them later on.
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
 
Methods inherited from interface info.magnolia.module.delta.Task
getDescription, getName
 

Constructor Detail

CheckAndUpdateSecureURIs

public CheckAndUpdateSecureURIs(String existingSecureURIs)
Method Detail

execute

public void execute(InstallContext installContext)
             throws TaskExecutionException
Description copied from interface: Task
A good-citizen task should execute itself responsibly: it should know what to do in case of problems: for instance, fixable or irrelevant issues should usually just be logged used the InstallContext methods, when the user can fix them later on. The task could also potentially do backups of nodes it needs to modify extensively, so the user could refer to the backups in case of problem. In the event of an unrecoverable issue, the Task could also throw a TaskExecutionException, knowing that will cancel the whole module's installation, update and startup. If a TaskExecutionException must be thrown, keep in mind that the exception message will still be shown to the end user, so try to keep them human readable.

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.