当前位置: 首页>>代码示例>>Java>>正文


Java DeltaBuilder类代码示例

本文整理汇总了Java中info.magnolia.module.delta.DeltaBuilder的典型用法代码示例。如果您正苦于以下问题:Java DeltaBuilder类的具体用法?Java DeltaBuilder怎么用?Java DeltaBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DeltaBuilder类属于info.magnolia.module.delta包,在下文中一共展示了DeltaBuilder类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: VanityUrlModuleVersionHandler

import info.magnolia.module.delta.DeltaBuilder; //导入依赖的package包/类
public VanityUrlModuleVersionHandler() {
    DeltaBuilder update131 = update("1.3.1", "Update to version 1.3.1");
    update131.addTask(new BootstrapConditionally("Bootstrap new config", "Bootstrap new public url service configuration.", "/mgnl-bootstrap/magnolia-vanity-url/config.modules.magnolia-vanity-url.config.publicUrlService.xml"));
    register(update131);

    DeltaBuilder update133 = update("1.3.3", "Update to version 1.3.3");
    update133.addTask(new BootstrapSingleModuleResource("Bootstrap new config", "Bootstrap folder/type definition in app.", "config.modules.magnolia-vanity-url.apps.vanityUrl.xml"));
    register(update133);

    DeltaBuilder update141 = update("1.4.1", "Update to version 1.4.1");
    update141.addTask(new BootstrapSingleModuleResource("Bootstrap new config", "Bootstrap folder/type definition in app.", "config.modules.magnolia-vanity-url.apps.vanityUrl.xml"));
    register(update141);

    DeltaBuilder update142 = update("1.4.2", "Update to version 1.4.2");
    update142.addTask(new BootstrapSingleModuleResource("Bootstrap new config", "Bootstrap new forward type definition in app dialog.", "config.modules.magnolia-vanity-url.apps.vanityUrl.xml"));
    register(update142);

    DeltaBuilder update150 = DeltaBuilder.update("1.5.0", "Update to version 1.5.0");
    update150.addTask(new BootstrapSingleModuleResource("Bootstrap new config", "Bootstrap new validation in app dialog.", "config.modules.magnolia-vanity-url.apps.vanityUrl.xml"));
    register(update150);
}
 
开发者ID:aperto,项目名称:magnolia-vanity-url,代码行数:22,代码来源:VanityUrlModuleVersionHandler.java

示例2: NewsModuleVersionHandler

import info.magnolia.module.delta.DeltaBuilder; //导入依赖的package包/类
/**
 * Constructor.
 * Here you can register deltas for tasks that need to be run when UPDATING an EXISTING module.
 */
public NewsModuleVersionHandler() {
    register(DeltaBuilder.update("1.1.1", "Add a userrole news-editor")
            .addTask(new BootstrapSingleResource("Userrole config", "Installing a userrole for the news module",
                    "/mgnl-bootstrap/magnolia-news-module/userroles/userroles.news-editor.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING)));

    register(DeltaBuilder.update("1.1.4", "Upgrading news module to Magnolia 5.5")
            .addTask(new RemoveNodeTask("Remove old nodes", "/modules/" + MODULE_NAME + "/apps"))
            .addTask(new RemoveNodeTask("Remove old nodes", "/modules/" + MODULE_NAME + "/dialogs"))
    );

    register(DeltaBuilder.update("1.1.6", "Un-nesting news items")
            .addTask(new FindAndMoveNestedNewsTask())
    );
}
 
开发者ID:tricode,项目名称:magnolia-news,代码行数:19,代码来源:NewsModuleVersionHandler.java

示例3: BlogsModuleVersionHandler

import info.magnolia.module.delta.DeltaBuilder; //导入依赖的package包/类
/**
 * Constructor.
 * Here you can register deltas for tasks that need to be run when UPDATING an EXISTING module.
 */
public BlogsModuleVersionHandler() {
    register(DeltaBuilder.update("1.1.1", "Add a userrole blog-editor")
            .addTask(new BootstrapSingleModuleResource("Userrole config", "Installing a userrole for the blog module",
                    "/userroles/userroles.blog-editor.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))
    );

    register(DeltaBuilder.update("1.1.2", "Updating blog module")
            .addTask(new BootstrapSingleModuleResource("Rendering config", "Installing new freemarker context attributes for blogfn alias",
                    "/config/config.modules.rendering.renderers.freemarker.contextAttributes.blogfn.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))
    );

    register(DeltaBuilder.update("1.1.3", "Updating blog module")
            .addTask(new BootstrapSingleResource("Update config", "Fix dialog setting on edit blog folder",
                    "/mgnl-bootstrap/updates/config.modules.magnolia-blogs-module.apps.tricode-blogs.subApps.browser.actions.editFolder.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))
            .addTask(new BootstrapSingleResource("Update config", "Add new action for editing initial activation date",
                    "/mgnl-bootstrap/updates/config.modules.magnolia-blogs-module.apps.tricode-blogs.subApps.browser.actions.editActivationDate.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))
            .addTask(new BootstrapSingleResource("Update config", "Add new edit activation date action to action bar",
                    "/mgnl-bootstrap/updates/config.modules.magnolia-blogs-module.apps.tricode-blogs.subApps.browser.actionbar.sections.blog.groups.activationActions.items.editActivationDate.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))
    );

    register(DeltaBuilder.update("1.1.5", "Upgrading blog module to Magnolia 5.5")
            .addTask(new RemoveNodeTask("Remove old nodes", "/modules/" + MODULE_NAME + "/apps"))
            .addTask(new RemoveNodeTask("Remove old nodes", "/modules/" + MODULE_NAME + "/dialogs"))
    );

    register(DeltaBuilder.update("1.1.8", "Add publish date to blogs")
            .addTask(new BootstrapSingleModuleResource("Update config", "Add new CurrentDateField definition",
                    "/config/config.modules.ui-framework.fieldTypes.currentDateField.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING))
    );
}
 
开发者ID:tricode,项目名称:magnolia-blog,代码行数:35,代码来源:BlogsModuleVersionHandler.java


注:本文中的info.magnolia.module.delta.DeltaBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。