public class HierarchicalAssetContainer extends AbstractAssetContainer implements com.vaadin.data.Container.Hierarchical
AbstractAssetContainer
.AbstractAssetContainer.BaseItemSetChangeEvent
info.magnolia.ui.workbench.container.AbstractContainer.ItemSetChangeEvent, info.magnolia.ui.workbench.container.AbstractContainer.PropertySetChangeEvent
com.vaadin.data.Container.Editor, com.vaadin.data.Container.Filter, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeEvent, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeEvent, com.vaadin.data.Container.PropertySetChangeListener, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.data.Container.Viewer
DEFAULT_CACHE_RATIO, DEFAULT_PAGE_LENGTH
Constructor and Description |
---|
HierarchicalAssetContainer(AssetContentConnector assetContentConnector) |
Modifier and Type | Method and Description |
---|---|
boolean |
areChildrenAllowed(Object itemId) |
Collection<info.magnolia.dam.api.ItemKey> |
getChildren(Object itemId) |
info.magnolia.dam.api.ItemKey |
getParent(Object itemId) |
List<String> |
getSortableContainerPropertyIds() |
boolean |
hasChildren(Object itemId) |
boolean |
isRoot(Object itemId) |
void |
refresh()
Refreshes the container - clears all caches and resets size and offset.
|
Collection<info.magnolia.dam.api.ItemKey> |
rootItemIds() |
boolean |
setChildrenAllowed(Object itemId,
boolean areChildrenAllowed) |
boolean |
setParent(Object itemId,
Object newParentId) |
addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, addSortableProperty, clearItemIndexes, constructQuery, containsId, fireItemSetChange, firstItemId, getAssetItem, getAssetProvider, getCacheRatio, getContainerProperty, getCurrentOffset, getDefaultOrderBy, getIdByIndex, getItem, getItemIds, getItemIds, getPageLength, indexOfId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, removeAllItems, removeItem, removeItemSetChangeListener, removeListener, resetOffset, setAssetProvider, setCacheRatio, setPageLength, setSize, size, sort
addContainerProperty, getContainerPropertyIds, getType, removeContainerProperty
public HierarchicalAssetContainer(AssetContentConnector assetContentConnector)
public void refresh()
AbstractAssetContainer
refresh
in interface info.magnolia.ui.workbench.container.Refreshable
refresh
in class AbstractAssetContainer
public Collection<info.magnolia.dam.api.ItemKey> getChildren(Object itemId)
getChildren
in interface com.vaadin.data.Container.Hierarchical
public info.magnolia.dam.api.ItemKey getParent(Object itemId)
getParent
in interface com.vaadin.data.Container.Hierarchical
public Collection<info.magnolia.dam.api.ItemKey> rootItemIds()
rootItemIds
in interface com.vaadin.data.Container.Hierarchical
public boolean areChildrenAllowed(Object itemId)
areChildrenAllowed
in interface com.vaadin.data.Container.Hierarchical
public boolean isRoot(Object itemId)
isRoot
in interface com.vaadin.data.Container.Hierarchical
public boolean hasChildren(Object itemId)
hasChildren
in interface com.vaadin.data.Container.Hierarchical
public List<String> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
getSortableContainerPropertyIds
in class AbstractAssetContainer
public boolean setParent(Object itemId, Object newParentId) throws UnsupportedOperationException
setParent
in interface com.vaadin.data.Container.Hierarchical
UnsupportedOperationException
public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) throws UnsupportedOperationException
setChildrenAllowed
in interface com.vaadin.data.Container.Hierarchical
UnsupportedOperationException
Copyright © 2016 Magnolia International Ltd.. All rights reserved.