initialize(); m_cms = cms; m_importPath = params.getDestinationPath(); importGroups(); importUsers(); importAllResources(); convertPointerToSiblings(); } catch (IOException ioe) { 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); }
source = getChildElementTextValue(currentElement, A_CmsImport.N_SOURCE); destination = getChildElementTextValue(currentElement, A_CmsImport.N_DESTINATION); type = getChildElementTextValue(currentElement, A_CmsImport.N_TYPE); uuidresource = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDRESOURCE); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATELASTMODIFIED); if (timestamp != null) { datelastmodified = Long.parseLong(timestamp); userlastmodified = getChildElementTextValue(currentElement, A_CmsImport.N_USERLASTMODIFIED); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATECREATED); if (timestamp != null) { datecreated = Long.parseLong(timestamp); usercreated = getChildElementTextValue(currentElement, A_CmsImport.N_USERCREATED); flags = getChildElementTextValue(currentElement, A_CmsImport.N_FLAGS); boolean resourceNotImmutable = checkImmutable(translatedName, immutableResources); translatedName = m_cms.getRequestContext().removeSiteRoot(translatedName); properties = readPropertiesFromManifest(currentElement, deleteProperties); CmsResource res = importResource( source,
content = getFileBytes(source); m_cms, content, getLocale(destination, properties), encoding);
source = getChildElementTextValue(currentElement, A_CmsImport.N_SOURCE); destination = getChildElementTextValue(currentElement, A_CmsImport.N_DESTINATION); type = getChildElementTextValue(currentElement, A_CmsImport.N_TYPE); uuidresource = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDRESOURCE); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATELASTMODIFIED); if (timestamp != null) { datelastmodified = Long.parseLong(timestamp); userlastmodified = getChildElementTextValue(currentElement, A_CmsImport.N_USERLASTMODIFIED); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATECREATED); if (timestamp != null) { datecreated = Long.parseLong(timestamp); usercreated = getChildElementTextValue(currentElement, A_CmsImport.N_USERCREATED); flags = getChildElementTextValue(currentElement, A_CmsImport.N_FLAGS); boolean resourceNotImmutable = checkImmutable(translatedName, immutableResources); translatedName = m_cms.getRequestContext().removeSiteRoot(translatedName); properties = readPropertiesFromManifest(currentElement, deleteProperties); CmsResource res = importResource( source,
content = getFileBytes(source); CmsXmlPage xmlPage = CmsXmlPageConverter.convertToXmlPage(m_cms, content, getLocale( destination, properties), encoding);
initialize(); m_cms = cms; m_importPath = params.getDestinationPath(); importGroups(); importUsers(); importAllResources(); convertPointerToSiblings(); } catch (IOException ioe) { 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); }