info.magnolia.module.inplacetemplating.setup
Class TemplatesInstallTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.inplacetemplating.setup.TemplatesInstallTask
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class TemplatesInstallTask
extends info.magnolia.module.delta.AbstractTask

Install task installing templates.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
TemplatesInstallTask(String matchPattern, boolean stripExtension)
           
TemplatesInstallTask(String taskName, String taskDescription, String matchPattern, boolean stripExtension)
           
 
Method Summary
protected  boolean acceptResource(info.magnolia.module.InstallContext ctx, String name)
           
 void execute(info.magnolia.module.InstallContext installContext)
           
protected  String[] getResourcesToInstall(info.magnolia.module.InstallContext installContext)
           
protected  void updateTemplateContent(info.magnolia.cms.core.Content template, String resource)
           
 
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

TemplatesInstallTask

public TemplatesInstallTask(String matchPattern,
                            boolean stripExtension)

TemplatesInstallTask

public TemplatesInstallTask(String taskName,
                            String taskDescription,
                            String matchPattern,
                            boolean stripExtension)
Method Detail

acceptResource

protected boolean acceptResource(info.magnolia.module.InstallContext ctx,
                                 String name)

execute

public void execute(info.magnolia.module.InstallContext installContext)
             throws info.magnolia.module.delta.TaskExecutionException
Throws:
info.magnolia.module.delta.TaskExecutionException

getResourcesToInstall

protected String[] getResourcesToInstall(info.magnolia.module.InstallContext installContext)

updateTemplateContent

protected void updateTemplateContent(info.magnolia.cms.core.Content template,
                                     String resource)
                              throws IOException,
                                     javax.jcr.RepositoryException
Throws:
IOException
javax.jcr.RepositoryException


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