getCms().addUserToGroup(userName, groupName); } catch (Throwable e) { getReport().println( Messages.get().container(Messages.RPT_USER_COULDNT_BE_ADDED_TO_GROUP_2, userName, groupName), I_CmsReport.FORMAT_WARNING); return; } catch (Throwable e) { getReport().println( Messages.get().container(Messages.RPT_USER_COULDNT_BE_ADDED_TO_ROLE_2, userName, roleName), I_CmsReport.FORMAT_WARNING);
/** * Imports an ACE from the current xml data.<p> * * @see #addResourceAceRules(Digester, String) */ public void importAccessControlEntries() { // only set permissions if the resource did not exists or if the keep permissions flag is not set if ((m_resource == null) || !m_importACEs) { return; } if ((m_aces == null) || (m_aces.size() == 0)) { // no ACE in the list return; } // if the resource was imported add the access control entries if available try { getCms().importAccessControlEntries(m_resource, m_aces); } catch (@SuppressWarnings("unused") CmsException exc) { getReport().println( Messages.get().container(Messages.RPT_IMPORT_ACL_DATA_FAILED_0), I_CmsReport.FORMAT_WARNING); } finally { m_aces = null; } }
getReport().println( Messages.get().container(Messages.RPT_START_IMPORT_RELATIONS_0), I_CmsReport.FORMAT_HEADLINE); getReport().print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(i + 1), String.valueOf(m_relations.size())), I_CmsReport.FORMAT_NOTE); getReport().print( Messages.get().container( Messages.RPT_IMPORTING_RELATIONS_FOR_2, new Integer(relations.size())), I_CmsReport.FORMAT_NOTE); getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); relation.getType().getName()); } catch (CmsException e) { getReport().addWarning(e); withErrors = true; if (LOG.isWarnEnabled()) { getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); } else { getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_FAILED_0),
getReport().println( Messages.get().container(Messages.RPT_USER_COULDNT_BE_ADDED_TO_GROUP_2, m_user.getName(), groupName), I_CmsReport.FORMAT_WARNING);
getReport().println( Messages.get().container(Messages.RPT_USER_COULDNT_BE_ADDED_TO_ROLE_2, m_user.getName(), roleName), I_CmsReport.FORMAT_WARNING);
try { if (m_throwable != null) { getReport().println(m_throwable); getReport().print(Messages.get().container(Messages.RPT_IMPORT_GROUP_0), I_CmsReport.FORMAT_NOTE); getReport().print( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, groupName)); getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); getReport().println(Messages.get().container(Messages.RPT_NOT_CREATED_0), I_CmsReport.FORMAT_OK); } catch (@SuppressWarnings("unused") CmsDbEntryNotFoundException e) { m_groupFlags, parentGroupId == null ? null : m_groupParent); getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); getReport().println(e);
getReport().println(m_throwable); getReport().addError(m_throwable); getReport().print(Messages.get().container(Messages.RPT_IMPORT_ORGUNIT_0), I_CmsReport.FORMAT_NOTE); getReport().print( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, m_orgUnitName)); getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); getReport().println(Messages.get().container(Messages.RPT_NOT_CREATED_0), I_CmsReport.FORMAT_OK); m_orgUnitResources.remove(m_orgUnitName); return; getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); } catch (CmsException e) { getReport().println(e); getReport().addError(e);
getReport().println(m_throwable); getReport().addError(m_throwable); getReport().print(Messages.get().container(Messages.RPT_IMPORT_PROJECT_0), I_CmsReport.FORMAT_NOTE); getReport().print( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, m_projectName)); getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); getReport().println(Messages.get().container(Messages.RPT_NOT_CREATED_0), I_CmsReport.FORMAT_OK); return; } catch (@SuppressWarnings("unused") CmsDataAccessException e) { getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); } catch (CmsException e) { getReport().println(e); getReport().addError(e);
if (m_throwable != null) { m_user = null; getReport().println(m_throwable); getReport().print(Messages.get().container(Messages.RPT_IMPORT_USER_0), I_CmsReport.FORMAT_NOTE); getReport().print( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, userName)); getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); getReport().println(Messages.get().container(Messages.RPT_NOT_CREATED_0), I_CmsReport.FORMAT_OK); m_user = null; return; m_userInfos); getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); } catch (Throwable e) { m_user = null; getReport().println(e);
getReport().println(m_throwable); getReport().addError(m_throwable); getReport().print(Messages.get().container(Messages.RPT_IMPORTING_0), I_CmsReport.FORMAT_NOTE); getReport().print( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, translatedName)); getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); getReport().println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); getReport().print(Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.FORMAT_NOTE); getReport().println( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, m_resource = null; getReport().print(Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.FORMAT_NOTE); getReport().println( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, getReport().println(e); getReport().addError(e);
/** * Rewrites all parseable files, to assure link check.<p> * * This is a global process, that is executed only once at the * end of the import to be sure that all link targets are * available.<p> * * @see #addXmlDigesterRules(Digester) */ public void rewriteParseables() { if (m_parseables.isEmpty()) { return; } I_CmsReport report = getReport(); CmsObject cms = getCms(); cms.getRequestContext().setAttribute(CmsLogEntry.ATTR_LOG_ENTRY, Boolean.FALSE); report.println(Messages.get().container(Messages.RPT_START_PARSE_LINKS_0), I_CmsReport.FORMAT_HEADLINE); parseLinks(cms, report); report.println(Messages.get().container(Messages.RPT_END_PARSE_LINKS_0), I_CmsReport.FORMAT_HEADLINE); m_parseables = null; }
ioe); getReport().println(ioe); } finally { try {