public class HierarchicalJcrContainer extends AbstractJcrContainer implements com.vaadin.data.Container.Hierarchical
AbstractJcrContainer
.AbstractContainer.ItemSetChangeEvent, 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
ASCENDING_KEYWORD, DEFAULT_CACHE_RATIO, DEFAULT_NODE_TYPE, DEFAULT_PAGE_LENGTH, DESCENDING_KEYWORD, JCR_NAME_FUNCTION, ORDER_BY, PROPERTY_NAME_AND_UUID_SEPARATOR, SELECT_TEMPLATE, SELECTOR_NAME, WHERE_TEMPLATE_FOR_PATH
Constructor and Description |
---|
HierarchicalJcrContainer(JcrContentConnectorDefinition definition) |
Modifier and Type | Method and Description |
---|---|
boolean |
areChildrenAllowed(Object itemId) |
protected Collection<JcrItemId> |
createContainerIds(Collection<javax.jcr.Item> children) |
Collection<javax.jcr.Item> |
getChildren(javax.jcr.Item item) |
Collection<JcrItemId> |
getChildren(Object itemId) |
JcrItemId |
getParent(Object itemId) |
Collection<javax.jcr.Item> |
getRootItemIds() |
protected javax.jcr.Node |
getRootNode() |
List<String> |
getSortableContainerPropertyIds() |
boolean |
hasChildren(Object itemId) |
protected boolean |
isNodeVisible(javax.jcr.Node node) |
boolean |
isRoot(javax.jcr.Item item)
Checks if an item is a root.
|
boolean |
isRoot(Object itemId) |
void |
refresh()
Refreshes the container - clears all caches and resets size and offset.
|
Collection<JcrItemId> |
rootItemIds() |
boolean |
setChildrenAllowed(Object itemId,
boolean areChildrenAllowed) |
boolean |
setParent(Object itemId,
Object newParentId) |
addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, addSortableProperty, clearItemIndexes, constructJCRQuery, containsId, ensureItemIndices, executeQuery, findSearchableNodeTypes, fireItemSetChange, firstItemId, getCacheRatio, getConfiguration, getContainerProperty, getCurrentOffset, getDefaultOrderBy, getIdByIndex, getItem, getItemIds, getItemIds, getItemIndexes, getJcrItem, getJcrNameOrderByFunction, getMainNodeType, getPageLength, getQuerySelectStatement, getQueryWhereClause, getQueryWhereClauseNodeTypes, getQueryWhereClauseWorkspacePath, getSearchableNodeTypes, getWorkspace, handleRepositoryException, indexOfId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, removeAllItems, removeItem, removeItemSetChangeListener, removeListener, resetOffset, setCacheRatio, setPageLength, setSize, size, sort, updateSize
addContainerProperty, getContainerPropertyIds, getType, removeContainerProperty
public HierarchicalJcrContainer(JcrContentConnectorDefinition definition)
public Collection<JcrItemId> getChildren(Object itemId)
getChildren
in interface com.vaadin.data.Container.Hierarchical
public JcrItemId getParent(Object itemId)
getParent
in interface com.vaadin.data.Container.Hierarchical
public Collection<JcrItemId> rootItemIds()
rootItemIds
in interface com.vaadin.data.Container.Hierarchical
public void refresh()
AbstractJcrContainer
refresh
in interface Refreshable
refresh
in class AbstractJcrContainer
public boolean setParent(Object itemId, Object newParentId) throws UnsupportedOperationException
setParent
in interface com.vaadin.data.Container.Hierarchical
UnsupportedOperationException
public boolean areChildrenAllowed(Object itemId)
areChildrenAllowed
in interface com.vaadin.data.Container.Hierarchical
public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) throws UnsupportedOperationException
setChildrenAllowed
in interface com.vaadin.data.Container.Hierarchical
UnsupportedOperationException
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
protected Collection<JcrItemId> createContainerIds(Collection<javax.jcr.Item> children)
public List<String> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
getSortableContainerPropertyIds
in class AbstractJcrContainer
public Collection<javax.jcr.Item> getChildren(javax.jcr.Item item)
protected boolean isNodeVisible(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Collection<javax.jcr.Item> getRootItemIds() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean isRoot(javax.jcr.Item item) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Node getRootNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.