Package org.ametys.cms.content.compare
Class ContentComparatorChange
java.lang.Object
org.ametys.cms.content.compare.ContentComparatorChange
One of the changes between 2 contents
-
Constructor Summary
ConstructorDescriptionContentComparatorChange
(String attributeDataPath, String detailDataPath, ModelItem modeItem, DataChangeType type) Constructor with no details for this changeContentComparatorChange
(String attributeDataPath, String detailDataPath, ModelItem modeItem, DataChangeType type, DataChangeTypeDetail detail) Constructor with change detail -
Method Summary
-
Constructor Details
-
ContentComparatorChange
public ContentComparatorChange(String attributeDataPath, String detailDataPath, ModelItem modeItem, DataChangeType type) Constructor with no details for this change- Parameters:
attributeDataPath
- path of the attribute data (can be rep[2]/someComposite/someRichText for instance)detailDataPath
- relative path of the detail (can be lastModified for a RichText for instance)modeItem
- the model itemtype
- type of change
-
ContentComparatorChange
public ContentComparatorChange(String attributeDataPath, String detailDataPath, ModelItem modeItem, DataChangeType type, DataChangeTypeDetail detail) Constructor with change detail- Parameters:
attributeDataPath
- path of the attribute data (can be rep[2]/someComposite/someRichText for instance)detailDataPath
- relative path of the detail (can be lastModified for a RichText for instance)modeItem
- the model itemtype
- type of changedetail
- detail of the change
-
-
Method Details
-
getPath
path of the change- Returns:
- path of the change
-
getAttributeDataPath
path of the attribute holding the change (is less specific thangetPath()
)- Returns:
- path of the attribute holding the change
-
getDetailDataPath
relative path of the detail of the change- Returns:
- relative path of the detail of the change
-
getModelItem
the model item of the change- Returns:
- model item of the change
-
getDataChangeType
Type of change- Returns:
- Type of change
-
getDataChangeTypeDetail
Detail of change- Returns:
- Detail of change
-
toString
-