public abstract class BootstrapResourcesTask extends AbstractTask
DO_NOTHING, log
Constructor and Description |
---|
BootstrapResourcesTask() |
BootstrapResourcesTask(int importUUIDBehavior) |
BootstrapResourcesTask(String name,
String description) |
BootstrapResourcesTask(String name,
String description,
int importUUIDBehavior) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptResource(InstallContext installContext,
String resourceName)
Override this method to filter resources to bootstrap.
|
protected void |
bootstrap(InstallContext installContext,
int importUUIDBehavior) |
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 String[] |
getResourcesToBootstrap(InstallContext installContext)
Override this method to bootstrap specific resource files.
|
getDescription, getName, toString
public BootstrapResourcesTask()
public BootstrapResourcesTask(int importUUIDBehavior)
public void execute(InstallContext installContext) throws TaskExecutionException
Task
TaskExecutionException
protected void bootstrap(InstallContext installContext, int importUUIDBehavior) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
protected String[] getResourcesToBootstrap(InstallContext installContext)
protected boolean acceptResource(InstallContext installContext, String resourceName)
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.