prop = i.next(); comparedProperties.add( new CmsAttributeComparison(prop.getName(), "", prop.getValue(), CmsResourceComparison.TYPE_ADDED)); prop = i.next(); comparedProperties.add( new CmsAttributeComparison(prop.getName(), prop.getValue(), "", CmsResourceComparison.TYPE_REMOVED)); if (value1.equals(value2)) { comparedProperties.add( new CmsAttributeComparison(prop.getName(), value1, value2, CmsResourceComparison.TYPE_UNCHANGED)); } else { comparedProperties.add( new CmsAttributeComparison(prop.getName(), value1, value2, CmsResourceComparison.TYPE_CHANGED));
while (i.hasNext()) { prop = (CmsProperty)i.next(); comparedProperties.add(new CmsAttributeComparison( prop.getName(), "", while (i.hasNext()) { prop = (CmsProperty)i.next(); comparedProperties.add(new CmsAttributeComparison( prop.getName(), prop.getValue(), String value2 = ((CmsProperty)properties2.get(properties2.indexOf(prop))).getValue(); if (value1.equals(value2)) { comparedProperties.add(new CmsAttributeComparison( prop.getName(), value1, CmsResourceComparison.TYPE_UNCHANGED)); } else { comparedProperties.add(new CmsAttributeComparison( prop.getName(), value1,
comparedAttributes.add(new CmsAttributeComparison( Messages.GUI_HISTORY_COLS_SIZE_0, String.valueOf(resource1.getLength()), comparedAttributes.add(new CmsAttributeComparison(Messages.GUI_LABEL_DATE_RELEASED_0, release1, release2)); String expire1; if (CmsResource.DATE_EXPIRED_DEFAULT == resource1.getDateExpired()) { comparedAttributes.add(new CmsAttributeComparison(Messages.GUI_LABEL_DATE_EXPIRED_0, expire1, expire2)); comparedAttributes.add(new CmsAttributeComparison( Messages.GUI_PERMISSION_INTERNAL_0, String.valueOf(resource1.isInternal()), DateFormat.SHORT, cms.getRequestContext().getLocale()); comparedAttributes.add(new CmsAttributeComparison( Messages.GUI_LABEL_DATE_LAST_MODIFIED_0, dateLastModified1, String type1 = OpenCms.getResourceManager().getResourceType(resource1.getTypeId()).getTypeName(); String type2 = OpenCms.getResourceManager().getResourceType(resource2.getTypeId()).getTypeName(); comparedAttributes.add(new CmsAttributeComparison(Messages.GUI_HISTORY_COLS_FILE_TYPE_0, type1, type2)); } catch (CmsLoaderException e) { LOG.debug(e.getMessage(), e); DateFormat.SHORT, cms.getRequestContext().getLocale()); comparedAttributes.add(new CmsAttributeComparison( Messages.GUI_HISTORY_COLS_DATE_PUBLISHED_0,
new CmsAttributeComparison( Messages.GUI_HISTORY_COLS_SIZE_0, String.valueOf(resource1.getLength()), comparedAttributes.add(new CmsAttributeComparison(Messages.GUI_LABEL_DATE_RELEASED_0, release1, release2)); String expire1; if (CmsResource.DATE_EXPIRED_DEFAULT == resource1.getDateExpired()) { comparedAttributes.add(new CmsAttributeComparison(Messages.GUI_LABEL_DATE_EXPIRED_0, expire1, expire2)); comparedAttributes.add( new CmsAttributeComparison( Messages.GUI_PERMISSION_INTERNAL_0, String.valueOf(resource1.isInternal()), cms.getRequestContext().getLocale()); comparedAttributes.add( new CmsAttributeComparison(Messages.GUI_LABEL_DATE_LAST_MODIFIED_0, dateLastModified1, dateLastModified2)); try { String type1 = OpenCms.getResourceManager().getResourceType(resource1.getTypeId()).getTypeName(); String type2 = OpenCms.getResourceManager().getResourceType(resource2.getTypeId()).getTypeName(); comparedAttributes.add(new CmsAttributeComparison(Messages.GUI_HISTORY_COLS_FILE_TYPE_0, type1, type2)); } catch (CmsLoaderException e) { LOG.debug(e.getMessage(), e); cms.getRequestContext().getLocale()); comparedAttributes.add( new CmsAttributeComparison(Messages.GUI_HISTORY_COLS_DATE_PUBLISHED_0, dateCreated1, dateCreated2)); try { String userLastModified1 = resource1.getUserLastModified().toString();