Package org.ametys.cms.content.compare
Class ContentComparatorChange
- java.lang.Object
-
- org.ametys.cms.content.compare.ContentComparatorChange
-
public class ContentComparatorChange extends Object
One of the changes between 2 contents
-
-
Constructor Summary
Constructors Constructor Description ContentComparatorChange(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeDataPath()
path of the attribute holding the change (is less specific thangetPath()
)DataChangeType
getDataChangeType()
Type of changeDataChangeTypeDetail
getDataChangeTypeDetail()
Detail of changeString
getDetailDataPath()
relative path of the detail of the changeModelItem
getModelItem()
the model item of the changeString
getPath()
path of the changeString
toString()
-
-
-
Constructor Detail
-
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 Detail
-
getAttributeDataPath
public String getAttributeDataPath()
path of the attribute holding the change (is less specific thangetPath()
)- Returns:
- path of the attribute holding the change
-
getDetailDataPath
public String getDetailDataPath()
relative path of the detail of the change- Returns:
- relative path of the detail of the change
-
getModelItem
public ModelItem getModelItem()
the model item of the change- Returns:
- model item of the change
-
getDataChangeType
public DataChangeType getDataChangeType()
Type of change- Returns:
- Type of change
-
getDataChangeTypeDetail
public DataChangeTypeDetail getDataChangeTypeDetail()
Detail of change- Returns:
- Detail of change
-
-