public class PartialBootstrapTask extends AbstractTask
DO_NOTHING
Constructor and Description |
---|
PartialBootstrapTask(String name,
String resource,
String itemPath) |
PartialBootstrapTask(String name,
String resource,
String itemPath,
int importUUIDBehavior) |
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath)
Bootstraps fragment of file.
|
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath,
int importUUIDBehavior) |
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath,
String targetResource)
Bootstraps newly created file.
|
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath,
String targetResource,
int importUUIDBehavior) |
Modifier and Type | Method and Description |
---|---|
protected void |
bootstrap(String resourceName,
String itemName,
int importUUIDBehavior,
InputStream stream) |
void |
execute(InstallContext ctx)
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 String |
getItemName() |
protected String |
getItemPath() |
protected InputStream |
getNodeStream(String fileName,
String nodePath) |
protected String |
getOutputResourceName(String resource,
String itemPath) |
protected String |
getResource() |
getDescription, getName, toString
public PartialBootstrapTask(String name, String resource, String itemPath, int importUUIDBehavior)
public PartialBootstrapTask(String name, String description, String resource, String itemPath)
resource
- - resource file i.e. /mgnl-bootstrap/standard-templating-kit/dialogs/pages/config.modules.standard-templating-kit.dialogs.pages.article.stkArticleProperties.xmlitemPath
- - path in the file of the node you want to bootstrap i.e. /stkArticleProperties/tabCategorizationpublic PartialBootstrapTask(String name, String description, String resource, String itemPath, String targetResource)
resource
- - resource file i.e. /mgnl-bootstrap/standard-templating-kit/dialogs/pages/config.modules.standard-templating-kit.dialogs.pages.article.stkArticleProperties.xmlitemPath
- - path in the file of the node you want to bootstrap i.e. /stkArticleProperties/tabCategorizationtargetResource
- - A target bootstrap file name in case you want to bootstrap the file in a different node /mgnl-bootstrap/standard-templating-kit/dialogs/pages/config.modules.standard-templating-kit.dialogs.pages.target.xmlpublic PartialBootstrapTask(String name, String description, String resource, String itemPath, String targetResource, int importUUIDBehavior)
public void execute(InstallContext ctx) throws TaskExecutionException
Task
TaskExecutionException
protected InputStream getNodeStream(String fileName, String nodePath)
protected void bootstrap(String resourceName, String itemName, int importUUIDBehavior, InputStream stream) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
protected String getResource()
protected String getItemName()
protected String getItemPath()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.