Package org.ametys.cms.content.version
Class CompareView
- java.lang.Object
-
- org.ametys.cms.content.version.CompareView
-
- All Implemented Interfaces:
ViewItemContainer
class CompareView extends Object implements ViewItemContainer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCompareView.AbstractCompareViewItemGroupprivate classCompareView.CompareElementDefinition<T>private classCompareView.CompareModelViewItemGroupprivate classCompareView.CompareSimpleViewItemGroupprivate classCompareView.CompareViewElement
-
Field Summary
Fields Modifier and Type Field Description private Set<String>_externalAndLocalMetadataprivate View_wrapped
-
Constructor Summary
Constructors Constructor Description CompareView(View fromView, Set<String> externalAndLocalMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void_populateViewItemContainerWithWrappedElements(ViewItemContainer sourceOfCopy, ViewItemContainer toPopulate)private ViewItem_wrapViewElement(ViewItem item)voidaddViewItem(ViewItem item)Add a view item in the containerList<ViewItem>getViewItems()Retrieves all the view items of this containervoidinsertViewItem(ViewItem item, int index)Insert a view item in the container at the given index(package private) Map<String,Object>toJSON()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.runtime.model.ViewItemContainer
getModelViewItem, hasModelViewItem
-
-
-
-
Field Detail
-
_externalAndLocalMetadata
private final Set<String> _externalAndLocalMetadata
-
-
Constructor Detail
-
CompareView
CompareView(View fromView, Set<String> externalAndLocalMetadata)
-
-
Method Detail
-
_populateViewItemContainerWithWrappedElements
private void _populateViewItemContainerWithWrappedElements(ViewItemContainer sourceOfCopy, ViewItemContainer toPopulate)
-
_wrapViewElement
private ViewItem _wrapViewElement(ViewItem item)
-
getViewItems
public List<ViewItem> getViewItems()
Description copied from interface:ViewItemContainerRetrieves all the view items of this container- Specified by:
getViewItemsin interfaceViewItemContainer- Returns:
- the view items
-
addViewItem
public void addViewItem(ViewItem item)
Description copied from interface:ViewItemContainerAdd a view item in the container- Specified by:
addViewItemin interfaceViewItemContainer- Parameters:
item- the item to add
-
insertViewItem
public void insertViewItem(ViewItem item, int index)
Description copied from interface:ViewItemContainerInsert a view item in the container at the given index- Specified by:
insertViewItemin interfaceViewItemContainer- Parameters:
item- the item to insertindex- index at which the item has to be inserted
-
toJSON
Map<String,Object> toJSON() throws ProcessingException
- Throws:
ProcessingException
-
-