@Deprecated public class PartialBootstrapTask extends AbstractTask
DO_NOTHING
Constructor and Description |
---|
PartialBootstrapTask(String name,
String resource,
String itemPath)
Deprecated.
|
PartialBootstrapTask(String name,
String resource,
String itemPath,
int importUUIDBehavior)
Deprecated.
|
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath)
Deprecated.
Bootstraps fragment of file.
|
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath,
int importUUIDBehavior)
Deprecated.
|
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath,
String targetResource)
Deprecated.
Bootstraps newly created file.
|
PartialBootstrapTask(String name,
String description,
String resource,
String itemPath,
String targetResource,
int importUUIDBehavior)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bootstrap(String resourceName,
String itemName,
int importUUIDBehavior,
InputStream stream)
Deprecated.
|
void |
execute(InstallContext ctx)
Deprecated.
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()
Deprecated.
|
protected String |
getItemPath()
Deprecated.
|
protected InputStream |
getNodeStream(String fileName,
String nodePath)
Deprecated.
|
protected String |
getOutputResourceName(String resource,
String itemPath)
Deprecated.
|
protected String |
getResource()
Deprecated.
|
getDescription, getName, toString
public PartialBootstrapTask(String name, String resource, String itemPath)
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 getOutputResourceName(String resource, String itemPath)
protected String getResource()
protected String getItemName()
protected String getItemPath()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.