public UserNavigationHandlerServiceImpl(InitParams initParams) { userNavigationuri = initParams.getValuesParam("user.navigation.uri").getValues(); }
public AddNodeTypePlugin(InitParams params) { Iterator<ValuesParam> vparams = params.getValuesParamIterator(); while (vparams.hasNext()) { ValuesParam nodeTypeParam = vparams.next(); nodeTypes.put(nodeTypeParam.getName(), nodeTypeParam.getValues()); } }
private void initValuesParameters(InitParams initialParameters) { Iterator<ValuesParam> valuesParamIterator = initialParameters.getValuesParamIterator(); while (valuesParamIterator.hasNext()) { ValuesParam valuesParam = valuesParamIterator.next(); if (UNMODIFIABLE.equals(valuesParam.getName())) { unmodifiable.addAll(valuesParam.getValues()); } if (BEFORE_INITIALIZE.equals(valuesParam.getName())) { beforeInitialize.addAll(valuesParam.getValues()); } } }
public UpgradeNodeTypesTemplatesService(RepositoryService repositoryService, NodeHierarchyCreator nodeHierarchyCreator, DMSConfiguration dmsConfiguration, TemplateService templateService, ConfigurationManager configurationManager, InitParams initParams) { super(initParams); this.templateService = templateService; this.configurationManager = configurationManager; this.repositoryService = repositoryService; this.dmsConfiguration = dmsConfiguration; // List of eXo predefined Templates component-plugin names, // that contains the DocumentType Templates // that we want to be upgraded each Platform upgrade List<?> pluginNamesList = initParams.getValuesParam("plugin-names").getValues(); for (Object object : pluginNamesList) { this.pluginNamesList.add((String) object); } cmsTemplatesBasePath = nodeHierarchyCreator.getJcrPath(BasePath.CMS_TEMPLATES_PATH); if (cmsTemplatesBasePath == null) { throw new RuntimeException("UpgradeNodeTypesTemplatesService: " + BasePath.CMS_TEMPLATES_PATH + " path couldn't be found"); } }
@SuppressWarnings("unchecked") public ModuleRegistry(InitParams initParams) { if (initParams.containsKey("portlets.managed.by.profile")) { portletsManagedByProfile = initParams.getValuesParam("portlets.managed.by.profile").getValues(); } else { portletsManagedByProfile = new ArrayList<String>(); } Iterator<Module> iterator = initParams.getObjectParamValues(Module.class).iterator(); while (iterator.hasNext()) { Module module = iterator.next(); if (LOG.isDebugEnabled()) { LOG.debug(module.toString()); } modulesByName.put(module.getName(), module); } }
public ChromatticLifeCycle(InitParams params) { Map<String, String> options = new HashMap<String, String>(); PropertiesParam pp = params.getPropertiesParam("options"); if (pp != null) { options.putAll(pp.getProperties()); } this.domainName = params.getValueParam("domain-name").getValue(); this.workspaceName = params.getValueParam("workspace-name").getValue(); this.entityClassNames = params.getValuesParam("entities").getValues(); this.optionMap = options; }
ValuesParam exts = params.getValuesParam("properties.urls"); if (exts != null) { for (Object val : exts.getValues()) { String path = (String) val; if (path != null) {