@Override protected List<Task> getExtraInstallTasks(InstallContext installContext) { List<Task> tasks = new ArrayList<Task>(); tasks.add(new ModuleDependencyBootstrapTask("observation")); return tasks; } }
@Override protected List<Task> getExtraInstallTasks(InstallContext installContext) { List<Task> tasks = new ArrayList<Task>(); tasks.add(new ModuleDependencyBootstrapTask("observation")); tasks.add(new IsInstallSamplesTask("Install STK sample component availability", "Adds components of RSS aggregator to component availability of STK when installed", new ModuleDependencyBootstrapTask("standard-templating-kit"))); tasks.addAll(super.getExtraInstallTasks(installContext)); tasks.add(new NodeExistsDelegateTask("Reorder RSS in MANAGE group", "This reorders the RSS app before Config in the Manage group of the applauncher.", RepositoryConstants.CONFIG, "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/configuration", new OrderNodeBeforeTask("", "", RepositoryConstants.CONFIG, "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/rssAggregator", "configuration"))); tasks.add(setDefaultValues); return tasks; }
@Override protected List<Task> getExtraInstallTasks(InstallContext installContext) { final List<Task> tasks = new ArrayList<>(); tasks.add(new AbstractTask("Anonymous permissions for resources", "Grants the anonymous user the read permission to the resources repository.") { @Override public void execute(InstallContext ignored) throws TaskExecutionException { RoleManager roleMan = Security.getRoleManager(); Role anonymous = roleMan.getRole("anonymous"); roleMan.addPermission(anonymous, "resources", "/*", Permission.READ); } }); tasks.add(new ModuleDependencyBootstrapTask("observation")); tasks.add(addBypassToResourcesServlet()); return tasks; } }
@Override protected List<Task> getExtraInstallTasks(InstallContext installContext) { final List<Task> tasks = new ArrayList<Task>(); tasks.add(grantAllToSuperuser); tasks.add(new AppLauncherReorderingTask("forum", "edit", Order.AFTER, "assets")); tasks.add(new NodeExistsDelegateTask("Order 'messageAdd' dialog to the first position", "", RepositoryConstants.CONFIG, "/modules/forum/dialogs/messageAdd", new OrderNodeToFirstPositionTask("", "modules/forum/dialogs/messageAdd"))); tasks.add(new ModuleDependencyBootstrapTask("publishing-core")); tasks.add(new ModuleDependencyBootstrapTask("activation")); return tasks; }
@Override protected List<Task> getExtraInstallTasks(InstallContext installContext) { List<Task> tasks = new ArrayList<Task>(); tasks.add(new ModuleDependencyBootstrapTask("observation")); tasks.add(new ModuleDependencyBootstrapTask("scheduler")); tasks.add(addReadRoleToAnonymousUser); tasks.add(grantReadPermissionToAnonymousUser); tasks.add(new NodeExistsDelegateTask("Reorder Categories in MANAGE group", "This reorders the Categories app before RSS in the Manage group of the applauncher.", RepositoryConstants.CONFIG, "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/rssAggregator", new OrderNodeBeforeTask("", "", RepositoryConstants.CONFIG, "/modules/ui-admincentral/config/appLauncherLayout/groups/manage/apps/categories", "rssAggregator"))); tasks.add(new InstallRendererContextAttributeTask("rendering", "freemarker", "catfn", CategorizationTemplatingFunctions.class.getName())); return tasks; }
@Override protected List<Task> getExtraInstallTasks(InstallContext ctx) { final List<Task> tasks = new ArrayList<Task>(); tasks.add(new ModuleDependencyBootstrapTask("dms")); tasks.add(new ModuleDependencyBootstrapTask("data")); tasks.add(inboxMenu); tasks.add(flowsPageMenu); tasks.add(new InstallWorkflowDefinitionTask("Setup default activation workflow definition", "Adds the default activation workflow definition under the /modules/workflow/config/flows/activation config node.", "activation", "info/magnolia/module/workflow/default-activation-workflow.xml")); tasks.add(new InstallWorkflowDefinitionTask("Setup default deactivation workflow definition", "Adds the default deactivation workflow definition under the /modules/workflow/config/flows/deactivation config node.", "deactivation", "info/magnolia/module/workflow/deactivation-workflow.xml")); tasks.add(changeWebsiteTreeConfigurationTask); tasks.add(changeDMSTreeConfigurationTask); // TODO: MAGNOLIA-2979, move that to the samples if (ctx.isModuleRegistered("samples")) { tasks.add(new AddUserToGroupTask("Add sample user eve to the editors group", "eve", "editors")); tasks.add(new AddUserToGroupTask("Add sample user patrick to the publishers group", "patrick", "publishers")); tasks.add(new AddRoleToGroupTask("Update editors group with samples role", "editors","editors")); } tasks.add(new AddUserToGroupTask("Add superuser to the publishers group", "superuser", "publishers")); // MAGNOLIA-2603 and MAGNOLIA-2971 // the worflow base role grants only read permission. Now that the superuser is added to the publisher group he gets this restrictive permission assigned // to allow the superuser editing the workflow definition we have to add that permission explicitly to the superuser role tasks.add(new AddPermissionTask("Update Superuser Role", "Add all those permissions explicitly which could be overwritten by assigning the workflow base role.", "superuser", "config", "/modules/workflow/config/flows", Permission.ALL, true)); return tasks; }
tasks.add(new OrderNodeAfterTask("STK AppLauncher group ordering", "Moves the stk app group after the tools group", RepositoryConstants.CONFIG, "/modules/ui-admincentral/config/appLauncherLayout/groups/stk", "tools")); tasks.add(new ReorderSTKAppsTask()); tasks.add(new ModuleDependencyBootstrapTask("contacts")); tasks.add(new ModuleDependencyBootstrapTask("categorization")); tasks.add(setStkSiteAsActiveInSiteModule); tasks.add(new IsModuleInstalledOrRegistered("Configure STK site for multisite", "multisite", new CreateNodePathTask("", "/modules/multisite/config/sites/", NodeTypes.ContentNode.NAME), new CopyNodeTask("Default site configuration", "Copy the configuration of the STK site", "config", "/modules/standard-templating-kit/config/site", "/modules/multisite/config/sites/default", false), new ModuleDependencyBootstrapTask("multisite"), new CheckOrCreatePropertyTask("Add class property to legacy site", "/modules/multisite/config/sites/default", "class", "info.magnolia.module.templatingkit.sites.Site"), new SetPropertyTask("config", "/modules/multisite/config/sites/default", "label", "Default"))),
.addTask(new NodeExistsDelegateTask("Register observation for resources if not configured", "Register observation for resources if not configured", RepositoryConstants.CONFIG, "/modules/observation/config/listenerConfigurations/versionResourcesOnChange", null, new ModuleDependencyBootstrapTask("observation")) ));
.addTask(new ModuleDependencyBootstrapTask("activation"))