本文整理汇总了Java中info.magnolia.module.delta.Task类的典型用法代码示例。如果您正苦于以下问题:Java Task类的具体用法?Java Task怎么用?Java Task使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Task类属于info.magnolia.module.delta包,在下文中一共展示了Task类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getExtraInstallTasks(InstallContext installContext) {
List<Task> tasks = new ArrayList<Task>(super.getExtraInstallTasks(installContext));
tasks.add(new NodeExistsDelegateTask("", "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/neatconfiguration", null,
new CreateNodeTask("", "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps", "neatconfiguration", NodeTypes.ContentNode.NAME)));
tasks.add(new MoveNodeTask("", "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/configuration", "/modules/ui-admincentral/config/appLauncherLayout/groups/tools/apps/configuration", false));
tasks.add(new NodeExistsDelegateTask("", "/modules/ui-admincentral/apps/stkSiteApp/subApps",
new SetPropertyTask("config", "/modules/ui-admincentral/apps/stkSiteApp/subApps", "extends", "/modules/neat-tweaks-developers/apps/neatconfiguration/subApps")));
tasks.add(new NodeExistsDelegateTask("", "/modules/ui-admincentral/apps/stkThemesApp/subApps",
new SetPropertyTask("config", "/modules/ui-admincentral/apps/stkThemesApp/subApps", "extends", "/modules/neat-tweaks-developers/apps/neatconfiguration/subApps")));
tasks.add(new NodeExistsDelegateTask("", "/modules/ui-admincentral/apps/stkChannelsApp/subApps",
new SetPropertyTask("config", "/modules/ui-admincentral/apps/stkChannelsApp/subApps", "extends", "/modules/neat-tweaks-developers/apps/neatconfiguration/subApps")));
tasks.add(new NodeExistsDelegateTask("", "/modules/ui-admincentral/apps/stkDialogsApp/subApps",
new SetPropertyTask("config", "/modules/ui-admincentral/apps/stkDialogsApp/subApps", "extends", "/modules/neat-tweaks-developers/apps/neatconfiguration/subApps")));
tasks.add(new NodeExistsDelegateTask("", "/modules/ui-admincentral/apps/stkTemplateDefsApp/subApps",
new SetPropertyTask("config", "/modules/ui-admincentral/apps/stkTemplateDefsApp/subApps", "extends", "/modules/neat-tweaks-developers/apps/neatconfiguration/subApps")));
tasks.add(new IsModuleInstalledOrRegistered("STK JPG Image generator", "standard-templating-kit",
new BootstrapSingleResource("", "", "/mgnl-bootstrap/standard-templating-kit/config.modules.imaging.config.generators.stk-jpg.xml")));
return tasks;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:21,代码来源:NeatTweaks4DevelopersVersionHandler.java
示例2: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
/**
* Override this method when defining tasks that need to be executed when INITIALLY INSTALLING the module.
*
* @param installContext Context of the install, can be used to display messages
* @return A list of tasks to execute on initial install
*/
@Override
protected List<Task> getExtraInstallTasks(final InstallContext installContext) {
final List<Task> tasks = Lists.newArrayList(super.getExtraInstallTasks(installContext));
return tasks;
}
开发者ID:tricode,项目名称:magnolia-news,代码行数:13,代码来源:NewsModuleVersionHandler.java
示例3: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getExtraInstallTasks(InstallContext ctx) {
final List<Task> tasks = new ArrayList<Task>();
tasks.addAll(super.getExtraInstallTasks(ctx));
tasks.add(new CheckAndModifyPropertyValueTask("Use different URI2Repository manager", "Updates URI2RepositoryManager", RepositoryConstants.CONFIG, "/server/URI2RepositoryMapping",
"class", "info.magnolia.cms.beans.config.URI2RepositoryManager", "nl.gertontenham.magnolia.templating.tools.managers.SiteURI2RepositoryManager"));
return tasks;
}
开发者ID:gtenham,项目名称:magnolia-templating,代码行数:11,代码来源:FoundationToolsModuleVersionHandler.java
示例4: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getExtraInstallTasks(InstallContext ctx) {
final List<Task> tasks = new ArrayList<Task>();
tasks.addAll(super.getExtraInstallTasks(ctx));
tasks.addAll(getGenericTasks());
return tasks;
}
开发者ID:gtenham,项目名称:magnolia-templating,代码行数:10,代码来源:FoundationTemplatingModuleVersionHandler.java
示例5: getDefaultUpdateTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getDefaultUpdateTasks(Version forVersion) {
final List<Task> tasks = new ArrayList<Task>();
tasks.addAll(super.getDefaultUpdateTasks(forVersion));
// Always update templates, resources no matter what version is updated!
tasks.addAll(getGenericTasks());
//tasks.add(new UpdateModuleBootstrapTask(MODULE_NAME, "apps, dialogs, templates"));
return tasks;
}
开发者ID:gtenham,项目名称:magnolia-templating,代码行数:12,代码来源:FoundationTemplatingModuleVersionHandler.java
示例6: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
/**
* Override this method when defining tasks that need to be executed when INITIALLY INSTALLING the module.
*
* @param installContext Context of the install, can be used to display messages
* @return A list of tasks to execute on initial install
*/
@Override
protected List<Task> getExtraInstallTasks(final InstallContext installContext) {
final List<Task> tasks = new ArrayList<>();
tasks.addAll(super.getExtraInstallTasks(installContext));
return tasks;
}
开发者ID:tricode,项目名称:magnolia-blog,代码行数:14,代码来源:BlogsModuleVersionHandler.java
示例7: getStartupTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getStartupTasks(final InstallContext installContext) {
final List<Task> startupTasks = new ArrayList<>(0);
startupTasks.addAll(super.getStartupTasks(installContext));
if ("SNAPSHOT".equals(installContext.getCurrentModuleDefinition().getVersion().getClassifier())) {
// force updates for snapshots
startupTasks.add(new RemoveNodeTask("Remove snapshot information", "", "config", "/modules/" + MODULE_NAME + "/commands"));
startupTasks.add(new ModuleBootstrapTask());
}
return startupTasks;
}
开发者ID:tricode,项目名称:magnolia-blog,代码行数:14,代码来源:BlogsModuleVersionHandler.java
示例8: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getExtraInstallTasks(InstallContext installContext) {
List<Task> tasks = new ArrayList<Task>(super.getExtraInstallTasks(installContext));
if (!LicenseFileExtractor.getInstance().get(LicenseFileExtractor.VERSION_NUMBER).startsWith("5.4")) {
tasks.add(new InstallTextResourceTask("/ui-admincentral/neat_theme.css"));
} else {
tasks.add(new CreateNodePathTask("admincentral", "/", NodeTypes.Folder.NAME));
}
return tasks;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:11,代码来源:DefaultNeatVersionHandler.java
示例9: getBasicInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getBasicInstallTasks(InstallContext installContext) {
List<Task> tasks = new ArrayList<Task>();
tasks.add(new IsModuleInstalledOrRegistered("remove old neat-tweaks if exists", "", "neat-tweaks",
new ArrayDelegateTask("",
new RemoveNodeTask("","","config","/modules/neat-tweaks"),
new RemoveNodeTask("","","config","/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/neatconfiguration"),
new MoveNodeTask("", "/modules/ui-admincentral/config/appLauncherLayout/groups/tools/apps/configuration", "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/configuration", false)
)));
tasks.addAll(super.getBasicInstallTasks(installContext));
return tasks;
}
开发者ID:rah003,项目名称:neat-tweaks,代码行数:13,代码来源:DefaultNeatVersionHandler.java
示例10: getBasicInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getBasicInstallTasks(InstallContext installContext) {
List<Task> tasks = new ArrayList<Task>();
tasks.add(new CreateNodeTask("", "", "scripts", "/", "selectFields", NodeTypes.Folder.NAME));
tasks.addAll(super.getBasicInstallTasks(installContext));
return tasks;
}
开发者ID:rah003,项目名称:scripted-select,代码行数:8,代码来源:NeatScriptedSelectVersionHandler.java
示例11: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getExtraInstallTasks(InstallContext installContext) {
List<Task> tasks = new ArrayList<Task>();
tasks.add(new SetPropertyTask("Replace template selector in pages:createPage dialog",
RepositoryConstants.CONFIG, "/modules/pages/dialogs/createPage/form/tabs/tabPage/fields/template",
"class", TemplateSelectorDefinition.class.getName()));
tasks.add(new SetPropertyTask("Replace template selector in pages:editTemplate dialog",
RepositoryConstants.CONFIG, "/modules/pages/dialogs/editTemplate/form/tabs/tabTemplate/fields/template",
"class", TemplateSelectorDefinition.class.getName()));
return tasks;
}
开发者ID:magnoliales,项目名称:magnolia-handlebars,代码行数:12,代码来源:HandlebarsVersionHandler.java
示例12: getExtraInstallTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
@Override
protected List<Task> getExtraInstallTasks(final InstallContext installContext) {
List<Task> tasks = new ArrayList<>();
tasks.add(_addAppToLauncher);
tasks.add(_addUriRepositoryMapping);
return tasks;
}
开发者ID:aperto,项目名称:magnolia-vanity-url,代码行数:8,代码来源:VanityUrlModuleVersionHandler.java
示例13: getGenericTasks
import info.magnolia.module.delta.Task; //导入依赖的package包/类
protected List<Task> getGenericTasks() {
final List<Task> tasks = new ArrayList<Task>();
//tasks.add(new TemplatesInstallTask(DEFAULT_MOD_PATH+".*\\.ftl", true));
return tasks;
}
开发者ID:gtenham,项目名称:magnolia-templating,代码行数:7,代码来源:FoundationTemplatingModuleVersionHandler.java
注:本文中的info.magnolia.module.delta.Task类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论