Package org.ametys.cms.content.version
Class CompareContentVersionToolClientSideElement.ContentVersionComparator
- java.lang.Object
-
- org.ametys.cms.content.version.CompareContentVersionToolClientSideElement.ContentVersionComparator
-
- Enclosing class:
- CompareContentVersionToolClientSideElement
private class CompareContentVersionToolClientSideElement.ContentVersionComparator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private String
_baseVersion
private ContentComparatorResult
_comparatorResult
private String
_contentId
private CompareView
_resultCompareView
private Content
_targetContent
private String
_targetVersion
-
Constructor Summary
Constructors Constructor Description ContentVersionComparator(String contentId, String version, String baseVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Collection<String>
_changedAttributeDataPaths()
private Map<String,Object>
_resultCompareViewToJson()
private View
_retrieveEditionView()
private String
_saxedContent(String contentVersion)
(package private) void
compare()
(package private) Map<String,Object>
resultToJson()
-
-
-
Field Detail
-
_contentId
private final String _contentId
-
_baseVersion
private final String _baseVersion
-
_targetVersion
private final String _targetVersion
-
_targetContent
private Content _targetContent
-
_comparatorResult
private ContentComparatorResult _comparatorResult
-
_resultCompareView
private CompareView _resultCompareView
-
-
Constructor Detail
-
ContentVersionComparator
ContentVersionComparator(String contentId, String version, String baseVersion)
-
-
Method Detail
-
compare
void compare() throws IOException
- Throws:
IOException
-
resultToJson
Map<String,Object> resultToJson() throws IOException, ProcessingException
- Throws:
IOException
ProcessingException
-
_resultCompareViewToJson
private Map<String,Object> _resultCompareViewToJson() throws ProcessingException
- Throws:
ProcessingException
-
_changedAttributeDataPaths
private Collection<String> _changedAttributeDataPaths() throws AmetysRepositoryException
- Throws:
AmetysRepositoryException
-
_saxedContent
private String _saxedContent(String contentVersion) throws IOException
- Throws:
IOException
-
_retrieveEditionView
private View _retrieveEditionView()
-
-