private Task configureActionsAsAsynchronous() { return new IsModuleInstalledOrRegistered("Configure actions as asynchronous", "Configure actions as asynchronous if scheduler module is installed", "scheduler", new ArrayDelegateTask("", "", new NodeExistsDelegateTask("Configure activation as asynchronous", "/modules/dam/apps/assets/subApps/browser/actions/activate", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/activate", "asynchronous", "true")), new NodeExistsDelegateTask("Configure recursive activation as asynchronous", "/modules/dam/apps/assets/subApps/browser/actions/activateRecursive", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/activateRecursive", "asynchronous", "true")), new NodeExistsDelegateTask("Configure deletion as asynchronous", "/modules/dam/apps/assets/subApps/browser/actions/delete", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/delete", "asynchronous", "true")), new NodeExistsDelegateTask("Configure deletion of folder as asynchronous", "/modules/dam/apps/assets/subApps/browser/actions/deleteFolder", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/deleteFolder", "asynchronous", "true")) )); }
public MigrateValidationSelectFieldToTwinColSelectFieldTask(String name, String[] fields) { super(name); for (String field : fields) { addTask(new NodeExistsDelegateTask(String.format("Migrate 'validation' field '%s' to multi select field.", field), field, new ArrayDelegateTask("", new RemovePropertyTask(String.format("Remove property 'buttonLabel' for validation field in '%s'", field), field, "buttonLabel"), new RemovePropertyTask(String.format("Remove property 'type' for validation field in '%s'", field), field, "type"), new ValueOfPropertyDelegateTask("", field, "class", "info.magnolia.ui.form.field.definition.SelectFieldDefinition", false, new SetPropertyTask(RepositoryConstants.CONFIG, field, "class", "info.magnolia.ui.form.field.definition.TwinColSelectFieldDefinition")), new SetPropertyTask(RepositoryConstants.CONFIG, field, "leftColumnCaption", "dialog.form.edit.tabMain.validation.leftColumnCaption"), new SetPropertyTask(RepositoryConstants.CONFIG, field, "rightColumnCaption", "dialog.form.edit.tabMain.validation.rightColumnCaption") ), new WarnTask("Unable to migrate validation field", String.format(WARNING_MESSAGE_FORMAT, field))) ); } }
@Override public void execute(InstallContext context) throws TaskExecutionException { ModuleDefinition moduleDefinition = context.getCurrentModuleDefinition(); String defaultURI = StringUtils.isNotEmpty(moduleProperty) ? moduleDefinition.getProperty(moduleProperty) : moduleDefinition.getProperty(DEFAULT_PUBLIC_URI_PROPERTY); Task setPublicTask = new IsAdminInstanceDelegateTask("", "Set default virtual URI on public instances.", null, new NodeExistsDelegateTask(String.format("Set default virtual URI to old mapping path '%s'", OLD_DEFAULT_URI_MAPPING_PATH), OLD_DEFAULT_URI_MAPPING_PATH, new SetPropertyTask(RepositoryConstants.CONFIG, OLD_DEFAULT_URI_MAPPING_PATH, "toURI", defaultURI), new NodeExistsDelegateTask(String.format("Set default virtual URI to new mapping path '%s'", NEW_DEFAULT_URI_MAPPING_PATH), NEW_DEFAULT_URI_MAPPING_PATH, new SetPropertyTask(RepositoryConstants.CONFIG, NEW_DEFAULT_URI_MAPPING_PATH, "toUri", defaultURI), new WarnTask("Default URI", "Could not set defaultPublicURI, default mapping was not found.")))); setPublicTask.execute(context); } }
tasks.add(new ArrayDelegateTask("Configure icons for assets app", new NodeExistsDelegateTask("", "/server/MIMEMapping/txt", new SetPropertyTask(RepositoryConstants.CONFIG, "/server/MIMEMapping/txt", "iconStyle", "icon-file-text")), new NodeExistsDelegateTask("", "/server/MIMEMapping/txt", new SetPropertyTask(RepositoryConstants.CONFIG, "/server/MIMEMapping/doc", "iconStyle", "icon-file-word")), new NodeExistsDelegateTask("", "/server/MIMEMapping/txt", new SetPropertyTask(RepositoryConstants.CONFIG, "/server/MIMEMapping/docx", "iconStyle", "icon-file-word")), new NodeExistsDelegateTask("", "/server/MIMEMapping/txt", new SetPropertyTask(RepositoryConstants.CONFIG, "/server/MIMEMapping/xls", "iconStyle", "icon-file-excel")), new NodeExistsDelegateTask("", "/server/MIMEMapping/txt", new SetPropertyTask(RepositoryConstants.CONFIG, "/server/MIMEMapping/xlsx", "iconStyle", "icon-file-excel")),
@Override public void execute(InstallContext ctx) throws TaskExecutionException { new MoveNodeTask("", "", RepositoryConstants.CONFIG, from, to, true).execute(ctx); new SetPropertyTask(RepositoryConstants.CONFIG, to, "icon", icon).execute(ctx); }
public UpdateSendMailOnPagesNotificationTask() { super("Update sendMailOnPageChanges configuration", "Updates sendMailOnPageChanges listener configuration in order to use a freemarker template for sending an email.", new RemovePropertyTask("", "", RepositoryConstants.CONFIG, listenerParams, "from"), new RemovePropertyTask("", "", RepositoryConstants.CONFIG, listenerParams, "subject"), new RemovePropertyTask("", "", RepositoryConstants.CONFIG, listenerParams, "text"), new PropertyExistsDelegateTask("", "", RepositoryConstants.CONFIG, listenerParams, "type", new CheckAndModifyPropertyValueTask("", "", RepositoryConstants.CONFIG, listenerParams, "type", "text", "freemarker")), new PropertyExistsDelegateTask("", "", RepositoryConstants.CONFIG, listenerParams, "mailTemplate", new SetPropertyTask("", RepositoryConstants.CONFIG, listenerParams, "mailTemplate", "pageChangeNotification")), new PartialBootstrapTask("", "", "/mgnl-bootstrap/listenerConfigs/config.modules.observation.config.xml", "/config/listenerConfigurations/sendMailOnPageChanges/listener/params/model")); } }
public SiteModuleVersionHandler() { register(DeltaBuilder.update("1.0.1", "") .addTask(updateI18nContentSupport)); register(DeltaBuilder.update("1.0.3", "") .addTask(new NodeExistsDelegateTask("Create empty site definition node if it does not exist", "/modules/site/config/site", null, new BootstrapSingleModuleResource("config.modules.site.config.site.xml")))); register(DeltaBuilder.update("1.0.5", "") .addTask(new BootstrapConditionally("Add site-aware JSP renderer if it does not exist", "/mgnl-bootstrap/site/config.modules.site.renderers.site-jsp.xml")) .addTask(new PropertyValueDelegateTask("Reconfigure site renderer to delegate to freemarker renderer", "/modules/site/renderers/site", "class", SiteAwareFreemarkerRenderer.class.getName(), true, new ArrayDelegateTask("", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/site/renderers/site", "wrappedRendererType", "freemarker"), new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/site/renderers/site", "class", SiteAwareRendererWrapper.class.getName()), new RemoveNodeTask("", "/modules/site/renderers/site/contextAttributes"), new RemovePropertyTask("", "/modules/site/renderers/site/", "type")))) .addTask(orderSiteMergeFilter) //fix incorrect order of siteMerge filter after update from M5.3 which is before multiSite filter ); register(DeltaBuilder.update("1.1", "") .addTask(new NodeExistsDelegateTask("Remove themes folder if empty", "Location /modules/site/config/themes is deprecated but still supported", RepositoryConstants.CONFIG, "/modules/site/config/themes", new RemoveNodeWithoutChildren("/modules/site/config/themes")))); }
new ArrayDelegateTask("", new RemovePropertyTask("", "", RepositoryConstants.CONFIG, "/modules/forum/dialogs/forumEdit/tabForum/allowsNestingMessages", "checked"), new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/forumEdit/tabForum/allowsNestingMessages", "selected", Boolean.FALSE) new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/author", "required", "true"))) .addTask(new NodeExistsDelegateTask("Add missing 'required' property", "Sets 'required' property of 'messageEdit/form/tabs/tabMain/fields/content' to 'true'", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/content", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/content", "required", "true"))) .addTask(new NodeExistsDelegateTask("Add missing 'required' property", "Sets 'required' property of 'messageEdit/form/tabs/tabMetadata/fields/creationDate' to 'true'", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMetadata/fields/creationDate", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMetadata/fields/creationDate", "required", "true"))) .addTask(new RemoveHardcodedI18nPropertiesFromDialogsTask("forum")) .addTask(new NodeExistsDelegateTask("Change Creation Date column to use 'creationDate' rather than 'created' JCR property", "Change Creation Date column of forum app to use 'creationDate' rather than 'created' JCR property", RepositoryConstants.CONFIG, "/modules/forum/apps/forum/subApps/browser/workbench/contentViews/list/columns/creation", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/apps/forum/subApps/browser/workbench/contentViews/list/columns/creation", "propertyName", "creationDate"))) .addTask(new NodeExistsDelegateTask("Change Creation Date column to use 'creationDate' rather than 'created' JCR property", "Change Creation Date column of forum app to use 'creationDate' rather than 'created' JCR property", RepositoryConstants.CONFIG, "/modules/forum/apps/forum/subApps/moderation/workbench/contentViews/list/columns/creation", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/apps/forum/subApps/moderation/workbench/contentViews/list/columns/creation", "propertyName", "creationDate"))) .addTask(new NodeExistsDelegateTask("Make Creation Date property read only", "Make Creation Date property read only in forum app dialog", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMetadata/fields/creationDate", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMetadata/fields/creationDate", "readOnly", "true"))) .addTask(new NodeExistsDelegateTask("Make Author property read only", "Make Author property read only in forum app dialog", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/author", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/author", "readOnly", "true"))) .addTask(new NodeExistsDelegateTask("Make InReplyTo property read only", "Make InReplyTo property read only in forum app dialog", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/inReplyTo", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageEdit/form/tabs/tabMain/fields/inReplyTo", "readOnly", "true"))) .addTask(new PartialBootstrapTask("Bootstrap 'addMessage' action for browser subApp", "", "/mgnl-bootstrap/forum/apps/config.modules.forum.apps.forum.subApps.browser.actions.xml", "actions/addMessage")) .addTask(new PartialBootstrapTask("Bootstrap 'addMessage' configuration for editActions group of thread in browser subApp", "", "/mgnl-bootstrap/forum/apps/config.modules.forum.apps.forum.subApps.browser.actionbar.xml", "actionbar/sections/thread/groups/editActions/items/addMessage"))
.addTask(new NodeExistsDelegateTask("Add property", "Add property for vertical layout of fields", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/editor/form/tabs/mainTab/fields/feeds/field", new NewPropertyTask("", "", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/editor/form/tabs/mainTab/fields/feeds/field", "layout", "vertical"))) .addTask(new NodeExistsDelegateTask("Add property", "Add property for vertical layout of fields", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/editor/form/tabs/mainTab/fields/filters/field", new NewPropertyTask("", "", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/editor/form/tabs/mainTab/fields/filters/field", "layout", "vertical"))) .addTask(new NodeExistsDelegateTask("Change save action", "Replace form save action with RSS specific one.", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/actions/commit", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/actions/commit", "implementationClass", "info.magnolia.module.rssaggregator.action.SaveRSSAction"))) .addTask(new NodeExistsDelegateTask("Add transformer", "Add proper transformer class for name field.", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/editor/form/tabs/mainTab/fields/name", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/detail/editor/form/tabs/mainTab/fields/name", "transformerClass", "info.magnolia.module.rssaggregator.action.RSSBasicTransformer"))) .addTask(new NodeExistsDelegateTask("JCR agnostic remove node", "Remove nodeTypes node.", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/browser/actions/editRSSAggregator/availability/nodeTypes", new RemoveNodeTask("", "", RepositoryConstants.CONFIG, "/modules/rssaggregator/apps/rssAggregator/subApps/browser/actions/editRSSAggregator/availability/nodeTypes"))) .addTask(new RenameFilterFieldsPropertiesTask())); new PropertyExistsDelegateTask("", "/modules/rssaggregator/config", "automatedImport", new PropertyValueDelegateTask("", "/modules/rssaggregator/config", "automatedImport", "false", true, new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/rssaggregator/config", "importTimingSetter", "Disabled"), new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/rssaggregator/config", "importTimingSetter", "CronString") new PropertyExistsDelegateTask("Set property fetcherClass according to /modules/rssaggregator/config/fetcher@class", "/modules/rssaggregator/config/fetcher", "class", new SetFetcherClassPropertyTask(), new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/rssaggregator/config", "fetcherClass", "info.magnolia.module.rssaggregator.importhandler.FastRSSFeedFetcher")), new NodeExistsDelegateTask("", "", RepositoryConstants.CONFIG, "/modules/rssaggregator/config/fetcher", new RemoveNodeTask("Remove /modules/rssaggregator/config/fetcher node.", "/modules/rssaggregator/config/fetcher"))
.addTask(new PropertyValueDelegateTask("Disable sample attachment for testFreemarker template", "/modules/mail/config/templatesConfiguration/testFreemarker/attachments/0001", "url", "http://ugakara.com/pc/interview/images/aiko/aiko_p1img.jpg", false, new ArrayDelegateTask("", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/mail/config/templatesConfiguration/testFreemarker/attachments/0001", "enabled", false), new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/mail/config/templatesConfiguration/testFreemarker/attachments/0001", "url", "http://some/image/url")
.addTask(new ArrayDelegateTask("Change content type of JavaScript resources", new PropertyValueDelegateTask("", "/modules/resources/templates/js", "contentType", "application/x-javascript", false, new SetPropertyTask("config", "/modules/resources/templates/js", "contentType", "application/javascript")), new PropertyValueDelegateTask("", "/modules/resources/templates/processedJs", "contentType", "application/x-javascript", false, new SetPropertyTask("config", "/modules/resources/templates/processedJs", "contentType", "application/javascript")))) .addTask(new TemplateMigrationTask(new NodeExistsDelegateTask("Remove app launcher configuration for inplace templating", INPLACE_TEMPLATING_APP_LAUNCHER_CONFIG, new RemoveNodeTask("", INPLACE_TEMPLATING_APP_LAUNCHER_CONFIG))))
new RenamePropertyTask("Rename old JS mimetype property in caching policy", RepositoryConstants.CONFIG, BROWSER_CACHE_POLICIES_CONTENT_TYPE_ALLOWED, "javascript", "x-javascript", true), new SetPropertyTask(RepositoryConstants.CONFIG, BROWSER_CACHE_POLICIES_CONTENT_TYPE_ALLOWED, "x-javascript", "application/x-javascript")) ))))
"/mgnl-bootstrap-prior-2_6/config.modules.rssaggregator.virtualURIMapping.categoryFeeds.xml")) .addTask(new NodeExistsDelegateTask("Set i18n property", "/modules/standard-templating-kit/dialogs/pages/categoryOverview/stkCategoryOverviewProperties/form/tabs/tabMain/fields/title", new SetPropertyTask("Set i18n property", RepositoryConstants.CONFIG, "/modules/standard-templating-kit/dialogs/pages/categoryOverview/stkCategoryOverviewProperties/form/tabs/tabMain/fields/title", "i18n", Boolean.TRUE))) .addTask(new RemovePropertyTask("Remove obsolete 'repository' property", "Remove obsolete 'repository' property from /modules/categorization/dialogs/catCloud/form/tabs/tabMain/fields/catCloud", RepositoryConstants.CONFIG, "/modules/categorization/dialogs/catCloud/form/tabs/tabMain/fields/catCloud", "repository")) .addTask(new NodeExistsDelegateTask("Add missing 'dialogName' property", "Sets 'dialogName' property of 'categoryRSSFeed/form/tabs/tabFeed/fields/siteRoot' to 'ui-pages-app:link'", RepositoryConstants.CONFIG, "/modules/categorization/dialogs/categoryRSSFeed/form/tabs/tabFeed/fields/siteRoot", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/categorization/dialogs/categoryRSSFeed/form/tabs/tabFeed/fields/siteRoot", "dialogName", "ui-pages-app:link"))) .addTask(new RemoveNodeTask("Remove deprecated configuration", "Removes obsolete controls", RepositoryConstants.CONFIG, "/modules/categorization/controls")) .addTask(addReadRoleToAnonymousUser) .addTask(new NodeExistsDelegateTask("Add missing 'i18nBasename' property", "Adds missing 'i18nBasename' property when migrating from Magnolia 4.5.x", RepositoryConstants.CONFIG, "/modules/standard-templating-kit/templates/pages/stkCategoryOverview", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/standard-templating-kit/templates/pages/stkCategoryOverview", "i18nBasename", "info.magnolia.module.templatingkit.messages"))) .addTask(new MoveMisplacedI18nPropertiesInStkDialogsTask("Move misplaced i18n properties", "Move misplaced i18nBasename and label properties"))); .addTask(new RemoveHardcodedI18nPropertiesFromDialogsTask("categorization")) .addTask(new NodeExistsDelegateTask("Set app permissions", "Set app permissions for demo-project-base role.", RepositoryConstants.CONFIG, "/modules/categorization/apps/categories/permissions/roles", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/categorization/apps/categories/permissions/roles", "demo-project-base", "demo-project-base"), new ArrayDelegateTask("", "", new CreateNodePathTask("", "", RepositoryConstants.CONFIG, "/modules/categorization/apps/categories/permissions/roles", NodeTypes.ContentNode.NAME), new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/categorization/apps/categories/permissions/roles", "demo-project-base", "demo-project-base")))) .addTask(new ArrayDelegateTask("Rename property", "Rename property [workspace] to [targetWorkspace].", new RemovePropertyTask("", "", RepositoryConstants.CONFIG, "/modules/categorization/dialogs/categoryRSSFeed/form/tabs/tabFeed/fields/siteRoot", "workspace"), new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/categorization/dialogs/categoryRSSFeed/form/tabs/tabFeed/fields/siteRoot", "targetWorkspace", RepositoryConstants.WEBSITE))) .addTask(new RemovePropertyTask("Remove useless property", "Remove 'required=false' property.", RepositoryConstants.CONFIG, "/modules/standard-templating-kit/dialogs/components/features/stkRelatedCategoriesLinkList/form/tabs/tabMain/fields/listTitle", "required")) .addTask(new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/standard-templating-kit/dialogs/components/features/stkRelatedCategoriesLinkList/form/tabs/tabMain", "label", "dialogs.paragraphs.features.stkCategoryOverview.tabMain.label")));
new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/detail/editor/form/tabs/asset/fields/metadataStandard", "class", StaticFieldDefinition.class.getName()))) .addTask(new PropertyExistsDelegateTask("Remove default value of the metadataStandard field Definition ", "", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/detail/editor/form/tabs/asset/fields/metadataStandard", "defaultValue", new RemovePropertyTask("", "", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/detail/editor/form/tabs/asset/fields/metadataStandard", "defaultValue"))) .addTask(new PropertyExistsDelegateTask("Set value property of the static metadataStandard field ", "", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/detail/editor/form/tabs/asset/fields/metadataStandard", "defaultValue", new SetPropertyTask("Set value of the static metadataStandard field ", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/detail/editor/form/tabs/asset/fields/metadataStandard", "value", "Simple Dublin Core Metadata Element Set (DCMES)"))) new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/detail", "subAppClass", AssetDetailSubApp.class.getName()))) new RemovePropertyTask("", "", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/moveFolder", "label"))) .addTask(new NodeExistsDelegateTask("In confirmDeleteAsset: Rename action deleteAsset to delete", "So that it is standardized.", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/confirmDeleteAsset", new SetPropertyTask("", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/actions/confirmDeleteAsset", "successActionName", "delete"))) .addTask(new NodeExistsDelegateTask("Set a valid text voter expression for text documents", "", RepositoryConstants.CONFIG, "/modules/dam/config/mediaTypes/document/voter/text_voter", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam/config/mediaTypes/document/voter/text_voter", "pattern", "text/.*"))) .addTask(new NodeExistsDelegateTask("Set a valid factory class for rich-text fields", "", RepositoryConstants.CONFIG, "/modules/ui-framework/fieldTypes/textArea", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/ui-framework/fieldTypes/textArea", "factoryClass", AssetsEnabledRichTextFieldFactory.class.getName()))) .addTask(new ConvertAclToAppPermissionTask("Convert permissions for 'assets' app", "Convert ACL permissions to dms to new 'assets' app permissions", "/modules/adminInterface/config/menu/dms", "/modules/dam/apps/assets", true))); new CheckAndModifyPropertyValueTask("Change asset name column definition class", "", RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/workbench/contentViews/list/columns/asset", "class", "info.magnolia.ui.workbench.column.definition.PropertyColumnDefinition", "info.magnolia.dam.app.assets.column.AssetNameColumnDefinition")), new NodeExistsDelegateTask("", "/modules/dam/apps/assets/subApps/browser/workbench/contentViews/list/columns/asset", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam/apps/assets/subApps/browser/workbench/contentViews/list/columns/asset", "formatterClass", "info.magnolia.dam.app.assets.column.AssetNameColumnFormatter")), new BootstrapSingleModuleResource("config.server.MIMEMapping.audio.xml"), new BootstrapSingleModuleResource("config.server.MIMEMapping.video.xml"), .addTask(new ContentAppMigrationTask("/modules/dam-app")) .addTask(new NodeExistsDelegateTask("Change the reference of the renameAsset dialog name", "/modules/dam-app/apps/assets/subApps/browser/actions/renameAsset", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam-app/apps/assets/subApps/browser/actions/renameAsset", "dialogName", "dam-app:renameAsset"))) .addTask(new NodeExistsDelegateTask("Change the reference of the importZip dialog name", "/modules/dam-app/apps/assets/subApps/browser/actions/importZip", new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/dam-app/apps/assets/subApps/browser/actions/importZip", "dialogName", "dam-app:importZip")))
new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/form/dialogs/formHoneypot/form/tabs/tabMain/fields/validation", "class", "info.magnolia.ui.form.field.definition.HiddenFieldDefinition"), new HasPropertyDelegateTask( "Change property name 'value' to 'defaultValue' for validation field in Honeypot dialog",
new SetPropertyTask("config", "/server/MIMEMapping/js", "mime-type", "application/javascript"))));