/** * Initializes a configuration after all parameters have been added.<p> * * @throws CmsConfigurationException if something goes wrong */ public void initConfiguration() throws CmsConfigurationException { m_repositoryList = Collections.unmodifiableList(m_repositoryList); Iterator iter = m_repositoryList.iterator(); while (iter.hasNext()) { A_CmsRepository rep = (A_CmsRepository)iter.next(); m_repositoryMap.put(rep.getName(), rep); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_ADD_REPOSITORY_2, rep.getClass().getName(), rep.getName())); } rep.initConfiguration(); } m_frozen = true; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_REPOSITORY_CONFIG_FINISHED_0)); } }
repositoryElement.addAttribute(A_NAME, repository.getName()); repositoryElement.addAttribute(A_CLASS, repository.getClass().getName()); Map config = repository.getConfiguration(); if ((config != null) && (config.size() > 0)) { Element paramsElement = repositoryElement.addElement(N_PARAMS); CmsRepositoryFilter filter = repository.getFilter(); if (filter != null) { List rules = filter.getFilterRules();
/** * @see org.opencms.repository.A_CmsRepository#initConfiguration() */ @Override public void initConfiguration() throws CmsConfigurationException { CmsParameterConfiguration config = getConfiguration(); List<I_CmsResourceWrapper> wrapperObjects = CmsRepositoryManager.createResourceWrappersFromConfiguration( config, PARAM_WRAPPER, LOG); m_wrappers = Collections.unmodifiableList(wrapperObjects); super.initConfiguration(); }
m_session = m_repository.login(m_username, password); } catch (CmsException ex) { m_session = null;