while (itRelations.hasNext()) { Element relationElement = (Element)itRelations.next(); String structureID = getChildElementTextValue(relationElement, A_CmsImport.N_RELATION_ATTRIBUTE_ID); String targetPath = getChildElementTextValue(relationElement, A_CmsImport.N_RELATION_ATTRIBUTE_PATH); String relationType = getChildElementTextValue(relationElement, A_CmsImport.N_RELATION_ATTRIBUTE_TYPE); CmsUUID targetId = new CmsUUID(structureID); CmsRelationType type = CmsRelationType.valueOf(relationType);
while (itRelations.hasNext()) { Element relationElement = (Element)itRelations.next(); String structureID = getChildElementTextValue(relationElement, A_CmsImport.N_RELATION_ATTRIBUTE_ID); String targetPath = getChildElementTextValue(relationElement, A_CmsImport.N_RELATION_ATTRIBUTE_PATH); String relationType = getChildElementTextValue(relationElement, A_CmsImport.N_RELATION_ATTRIBUTE_TYPE); CmsUUID targetId = new CmsUUID(structureID); CmsRelationType type = CmsRelationType.valueOf(relationType);
source = getChildElementTextValue(currentElement, A_CmsImport.N_SOURCE); destination = getChildElementTextValue(currentElement, A_CmsImport.N_DESTINATION); String typeName = getChildElementTextValue(currentElement, A_CmsImport.N_TYPE); I_CmsResourceType type; try { uuidstructure = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDSTRUCTURE); uuidresource = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDRESOURCE); } else { uuidresource = null; timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATELASTMODIFIED); if (timestamp != null) { datelastmodified = convertTimestamp(timestamp); userlastmodified = getChildElementTextValue(currentElement, A_CmsImport.N_USERLASTMODIFIED); userlastmodified = OpenCms.getImportExportManager().translateUser(userlastmodified); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATECREATED); if (timestamp != null) { datecreated = convertTimestamp(timestamp); usercreated = getChildElementTextValue(currentElement, A_CmsImport.N_USERCREATED); usercreated = OpenCms.getImportExportManager().translateUser(usercreated); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATERELEASED);
source = getChildElementTextValue(currentElement, A_CmsImport.N_SOURCE); destination = getChildElementTextValue(currentElement, A_CmsImport.N_DESTINATION); String typeName = getChildElementTextValue(currentElement, A_CmsImport.N_TYPE); I_CmsResourceType type; try { uuidstructure = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDSTRUCTURE); uuidresource = getChildElementTextValue(currentElement, A_CmsImport.N_UUIDRESOURCE); } else { uuidresource = null; timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATELASTMODIFIED); if (timestamp != null) { datelastmodified = convertTimestamp(timestamp); userlastmodified = getChildElementTextValue(currentElement, A_CmsImport.N_USERLASTMODIFIED); userlastmodified = OpenCms.getImportExportManager().translateUser(userlastmodified); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATECREATED); if (timestamp != null) { datecreated = convertTimestamp(timestamp); usercreated = getChildElementTextValue(currentElement, A_CmsImport.N_USERCREATED); usercreated = OpenCms.getImportExportManager().translateUser(usercreated); timestamp = getChildElementTextValue(currentElement, A_CmsImport.N_DATERELEASED);