/** * Cleans up member variables after the import is finished.<p> * * This is required since there is only one instance for * each import version that is kept in memory and reused.<p> */ @Override protected void cleanUp() { m_pageStorage = null; m_folderStorage = null; m_webAppNames = null; m_webappUrl = null; super.cleanUp(); }
/** * Initializes all member variables before the import is started.<p> * * This is required since there is only one instance for * each import version that is kept in memory and reused.<p> */ @Override protected void initialize() { m_convertToXmlPage = true; m_webAppNames = new ArrayList<String>(); super.initialize(); }
name = getChildElementTextValue(currentElement, A_CmsImport.N_NAME); name = OpenCms.getImportExportManager().translateUser(name); pwd = getChildElementTextValue(currentElement, A_CmsImport.N_PASSWORD); password = new String(Base64.decodeBase64(pwd.trim().getBytes())); description = getChildElementTextValue(currentElement, A_CmsImport.N_DESCRIPTION); flags = getChildElementTextValue(currentElement, A_CmsImport.N_FLAGS); firstname = getChildElementTextValue(currentElement, A_CmsImport.N_FIRSTNAME); lastname = getChildElementTextValue(currentElement, A_CmsImport.N_LASTNAME); email = getChildElementTextValue(currentElement, A_CmsImport.N_EMAIL); address = getChildElementTextValue(currentElement, A_CmsImport.N_TAG_ADDRESS); defaultGroup = getChildElementTextValue(currentElement, A_CmsImport.N_DEFAULTGROUP); infoNode = getChildElementTextValue(currentElement, A_CmsImport.N_USERINFO); try { byte[] value = getFileBytes(infoNode); for (int j = 0; j < groupNodes.size(); j++) { currentGroup = (Element)groupNodes.get(j); String userInGroup = getChildElementTextValue(currentGroup, A_CmsImport.N_NAME); userInGroup = OpenCms.getImportExportManager().translateGroup(userInGroup); userGroups.add(userInGroup); importUser(name, flags, password, firstname, lastname, email, 0, userInfo, userGroups);
/** * @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); }
name = getChildElementTextValue(currentElement, A_CmsImport.N_NAME); name = OpenCms.getImportExportManager().translateGroup(name); description = getChildElementTextValue(currentElement, A_CmsImport.N_DESCRIPTION); flags = getChildElementTextValue(currentElement, A_CmsImport.N_FLAGS); parentgroup = getChildElementTextValue(currentElement, A_CmsImport.N_PARENTGROUP); if ((parentgroup != null) && (parentgroup.length() > 0)) { parentgroup = OpenCms.getImportExportManager().translateGroup(parentgroup); importGroup(name, description, flags, parentgroup); parentgroup = groupdata.get(A_CmsImport.N_PARENTGROUP); importGroup(name, description, flags, parentgroup);
false); return getVersion() == Integer.parseInt( ((Element)docXml.selectNodes("//" + CmsImportExportManager.N_VERSION).get(0)).getTextTrim()); } catch (IOException e) {
key = getChildElementTextValue(propertyElement, A_CmsImport.N_NAME); value = getChildElementTextValue(propertyElement, A_CmsImport.N_VALUE); if (value == null) { value = "";
name = getChildElementTextValue(currentElement, A_CmsImport.N_NAME); name = OpenCms.getImportExportManager().translateUser(name); pwd = getChildElementTextValue(currentElement, A_CmsImport.N_PASSWORD); password = new String(Base64.decodeBase64(pwd.trim().getBytes())); description = getChildElementTextValue(currentElement, A_CmsImport.N_DESCRIPTION); flags = getChildElementTextValue(currentElement, A_CmsImport.N_FLAGS); firstname = getChildElementTextValue(currentElement, A_CmsImport.N_FIRSTNAME); lastname = getChildElementTextValue(currentElement, A_CmsImport.N_LASTNAME); email = getChildElementTextValue(currentElement, A_CmsImport.N_EMAIL); address = getChildElementTextValue(currentElement, A_CmsImport.N_TAG_ADDRESS); defaultGroup = getChildElementTextValue(currentElement, A_CmsImport.N_DEFAULTGROUP); infoNode = getChildElementTextValue(currentElement, A_CmsImport.N_USERINFO); try { byte[] value = getFileBytes(infoNode); for (int j = 0; j < groupNodes.size(); j++) { currentGroup = (Element)groupNodes.get(j); String userInGroup = getChildElementTextValue(currentGroup, A_CmsImport.N_NAME); userInGroup = OpenCms.getImportExportManager().translateGroup(userInGroup); userGroups.add(userInGroup); importUser(name, flags, password, firstname, lastname, email, 0, userInfo, userGroups);
/** * @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); }
name = getChildElementTextValue(currentElement, A_CmsImport.N_NAME); name = OpenCms.getImportExportManager().translateGroup(name); description = getChildElementTextValue(currentElement, A_CmsImport.N_DESCRIPTION); flags = getChildElementTextValue(currentElement, A_CmsImport.N_FLAGS); parentgroup = getChildElementTextValue(currentElement, A_CmsImport.N_PARENTGROUP); if ((parentgroup != null) && (parentgroup.length() > 0)) { parentgroup = OpenCms.getImportExportManager().translateGroup(parentgroup); importGroup(name, description, flags, parentgroup); parentgroup = (String)groupdata.get(A_CmsImport.N_PARENTGROUP); importGroup(name, description, flags, parentgroup);
false); return getVersion() == Integer.parseInt(((Element)docXml.selectNodes( "//" + CmsImportExportManager.N_VERSION).get(0)).getTextTrim()); } catch (IOException e) {
key = getChildElementTextValue(propertyElement, A_CmsImport.N_NAME); value = getChildElementTextValue(propertyElement, A_CmsImport.N_VALUE); if (value == null) { value = "";
/** * @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); }
/** * Initializes all member variables before the import is started.<p> * * This is required since there is only one instance for * each import version that is kept in memory and reused.<p> */ @Override protected void initialize() { m_convertToXmlPage = true; m_webAppNames = new ArrayList(); super.initialize(); }
/** * Cleans up member variables after the import is finished.<p> * * This is required since there is only one instance for * each import version that is kept in memory and reused.<p> */ @Override protected void cleanUp() { m_pageStorage = null; m_folderStorage = null; m_webAppNames = null; m_webappUrl = null; super.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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }