initialize(); m_cms = cms; m_importPath = params.getDestinationPath(); importGroups(); importUsers(); importAllResources(); convertPointerToSiblings(); } catch (IOException e) { CmsMessageContainer msg = Messages.get().container( } finally { helper.closeFile(); cleanUp();
/** * @see org.opencms.importexport.A_CmsImport#importUser(String, String, String, String, String, String, long, Map, List) */ @Override protected void importUser( String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map userInfo, List userGroups) throws CmsImportExportException { boolean convert = false; Map config = OpenCms.getPasswordHandler().getConfiguration(); if ((config != null) && config.containsKey(I_CmsPasswordHandler.CONVERT_DIGEST_ENCODING)) { convert = Boolean.valueOf((String)config.get(I_CmsPasswordHandler.CONVERT_DIGEST_ENCODING)).booleanValue(); } if (convert) { password = convertDigestEncoding(password); } super.importUser(name, flags, password, firstname, lastname, email, dateCreated, userInfo, userGroups); }
boolean old_overwriteCollidingResources = false; try { m_webAppNames = getCompatibilityWebAppNames(); } catch (Exception e) { if (LOG.isDebugEnabled()) { source = getChildElementTextValue(currentElement, A_CmsImport.N_SOURCE); destination = getChildElementTextValue(currentElement, A_CmsImport.N_DESTINATION); resourceTypeName = getChildElementTextValue(currentElement, A_CmsImport.N_TYPE); if (RESOURCE_TYPE_NEWPAGE_NAME.equals(resourceTypeName)) { resourceTypeId = RESOURCE_TYPE_NEWPAGE_ID; uuid = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDSTRUCTURE); uuidresource = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDRESOURCE); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_LASTMODIFIED); if (timestamp != null) { lastmodified = Long.parseLong(timestamp); boolean resourceNotImmutable = checkImmutable(translatedName, immutableResources); translatedName = m_cms.getRequestContext().removeSiteRoot(translatedName); if (resourceNotImmutable) { properties = readPropertiesFromManifest(currentElement, deleteProperties); CmsResource res = importResource( source, destination,
content = getFileBytes(source); content = convertContent(source, destination, content, resourceTypeName);
CmsXmlPage xmlPage = CmsXmlPageConverter.convertToXmlPage(m_cms, bodyfile.getContents(), getLocale( resourcename, properties), encoding);
boolean old_overwriteCollidingResources = false; try { m_webAppNames = getCompatibilityWebAppNames(); } catch (Exception e) { if (LOG.isDebugEnabled()) { source = getChildElementTextValue(currentElement, A_CmsImport.N_SOURCE); destination = getChildElementTextValue(currentElement, A_CmsImport.N_DESTINATION); resourceTypeName = getChildElementTextValue(currentElement, A_CmsImport.N_TYPE); if (RESOURCE_TYPE_NEWPAGE_NAME.equals(resourceTypeName)) { resourceTypeId = RESOURCE_TYPE_NEWPAGE_ID; uuid = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDSTRUCTURE); uuidresource = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDRESOURCE); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_LASTMODIFIED); if (timestamp != null) { lastmodified = Long.parseLong(timestamp); boolean resourceNotImmutable = checkImmutable(translatedName, immutableResources); translatedName = m_cms.getRequestContext().removeSiteRoot(translatedName); if (resourceNotImmutable) { properties = readPropertiesFromManifest(currentElement, deleteProperties); CmsResource res = importResource( source, destination,
content = getFileBytes(source); content = convertContent(source, destination, content, resourceTypeName);
m_cms, bodyfile.getContents(), getLocale(resourcename, properties), encoding);
initialize(); m_cms = cms; m_importPath = params.getDestinationPath(); importGroups(); importUsers(); importAllResources(); convertPointerToSiblings(); } catch (IOException e) { CmsMessageContainer msg = Messages.get().container( } finally { helper.closeFile(); cleanUp();
/** * @see org.opencms.importexport.A_CmsImport#importUser(String, String, String, String, String, String, long, Map, List) */ @Override protected void importUser( String name, String flags, String password, String firstname, String lastname, String email, long dateCreated, Map<String, Object> userInfo, List<String> userGroups) throws CmsImportExportException { boolean convert = false; CmsParameterConfiguration config = OpenCms.getPasswordHandler().getConfiguration(); if ((config != null) && config.containsKey(I_CmsPasswordHandler.CONVERT_DIGEST_ENCODING)) { convert = config.getBoolean(I_CmsPasswordHandler.CONVERT_DIGEST_ENCODING, false); } if (convert) { password = convertDigestEncoding(password); } super.importUser(name, flags, password, firstname, lastname, email, dateCreated, userInfo, userGroups); }