|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.comparison.CmsResourceComparison
Comparison of two OpenCms resources.
Field Summary | |
static java.lang.String |
TYPE_ADDED
Constant indicating that an item (e.g. element or property) has been added. |
static java.lang.String |
TYPE_CHANGED
Constant indicating that an item has been changed. |
static java.lang.String |
TYPE_REMOVED
Constant indicating that an item has been removed. |
static java.lang.String |
TYPE_UNCHANGED
Constant indicating that an item has not been changed. |
Constructor Summary | |
protected |
CmsResourceComparison()
Constructs a new resource comparison object. |
Method Summary | |
static java.util.List |
compareAttributes(CmsObject cms,
CmsFile file1,
CmsFile file2)
Helper method that collects all meta attributes of the two file versions and finds out, which of the attributes were added, removed, modified or remain unchanged. |
static java.util.List |
compareProperties(CmsObject cms,
CmsFile file1,
CmsFile file2)
Helper method that finds out, which of the properties were added, removed, modified or remain unchanged. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TYPE_ADDED
public static final java.lang.String TYPE_CHANGED
public static final java.lang.String TYPE_REMOVED
public static final java.lang.String TYPE_UNCHANGED
Constructor Detail |
protected CmsResourceComparison()
Method Detail |
public static java.util.List compareAttributes(CmsObject cms, CmsFile file1, CmsFile file2)
cms
- the CmsObject to usefile1
- the first file to read the properties fromfile2
- the second file to read the properties from
public static java.util.List compareProperties(CmsObject cms, CmsFile file1, CmsFile file2) throws CmsException
cms
- the CmsObject to usefile1
- the first file to read the properties fromfile2
- the second file to read the properties from
CmsException
- if something goes wrong
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |