@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; }
protected List<Task> getCommonTasks() { final List<Task> commonTasks = new ArrayList<>(); commonTasks.add(new IsInstallSamplesTask("Re-Bootstrap website content for sample pages", "Re-bootstrap website content to account for all changes", new ArrayDelegateTask("", new BootstrapSingleResource("", "", "/mgnl-bootstrap-samples/samples/website.ftl-sample-site.xml"), new BootstrapSingleResource("", "", "/mgnl-bootstrap-samples/samples/dam.samples.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING)))); // We re-bootstrap twice because a simple (and single) re-bootstrap (using ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING) would NOT // "move" an existing site definition (which might actually exist from a previous version) in the site module commonTasks.add(new BootstrapSingleModuleResource("config.modules.samples.config.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING)); commonTasks.add(new BootstrapSingleModuleResource("config.modules.samples.config.xml", ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW)); return commonTasks; }
private Task getSampleRegistrationTypeTask(Task... additionalTasks) { ArrayDelegateTask task = new ArrayDelegateTask("", "", new RegisterNodeTypeTask("company"), new RegisterNodeTypeTask("department"), new RegisterNodeTypeTask("employees"), new RegisterNodeTypeTask("director"), new RegisterNodeTypeTask("manager"), new RegisterNodeTypeTask("developer")); for (Task t : additionalTasks) { task.addTask(t); } return new IsInstallSamplesTask("Samples installation", "Register sample of hierarchical node types", task); } }