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_baseVersionprivate ContentComparatorResult_comparatorResultprivate String_contentIdprivate CompareView_resultCompareViewprivate Content_targetContentprivate 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) voidcompare()(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:
 IOExceptionProcessingException
 
- 
_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()
 
 - 
 
 -