|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.magnolia.ui.vaadin.integration.jcr.container.AbstractContainer
info.magnolia.ui.vaadin.integration.jcr.container.AbstractJcrContainer
info.magnolia.ui.admincentral.tree.container.HierarchicalJcrContainer
public class HierarchicalJcrContainer
Hierarchical implementation of AbstractJcrContainer
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class info.magnolia.ui.vaadin.integration.jcr.container.AbstractContainer |
---|
info.magnolia.ui.vaadin.integration.jcr.container.AbstractContainer.ItemSetChangeEvent, info.magnolia.ui.vaadin.integration.jcr.container.AbstractContainer.PropertySetChangeEvent |
Nested classes/interfaces inherited from interface com.vaadin.data.Container |
---|
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 |
Field Summary |
---|
Fields inherited from class info.magnolia.ui.vaadin.integration.jcr.container.AbstractJcrContainer |
---|
ASCENDING_KEYWORD, DEFAULT_CACHE_RATIO, DEFAULT_MAIN_ITEM_TYPE, DEFAULT_PAGE_LENGTH, DESCENDING_KEYWORD, JCR_NAME_FUNCTION, ORDER_BY, SELECT_TEMPLATE, SELECTOR_NAME, WHERE_TEMPLATE_FOR_PATH |
Constructor Summary | |
---|---|
HierarchicalJcrContainer(info.magnolia.ui.model.workbench.definition.WorkbenchDefinition workbenchDefinition)
|
Method Summary | |
---|---|
boolean |
areChildrenAllowed(Object itemId)
|
protected Collection<String> |
createContainerIds(Collection<javax.jcr.Item> children)
|
Collection<javax.jcr.Item> |
getChildren(javax.jcr.Item item)
|
Collection<String> |
getChildren(Object itemId)
|
javax.jcr.Item |
getItemByPath(String path)
|
String |
getParent(Object itemId)
|
Collection<javax.jcr.Item> |
getRootItemIds()
|
List<String> |
getSortableContainerPropertyIds()
|
boolean |
hasChildren(Object itemId)
|
boolean |
isRoot(javax.jcr.Item item)
Checks if an item is a root. |
boolean |
isRoot(Object itemId)
|
boolean |
moveItem(javax.jcr.Item source,
javax.jcr.Item target)
|
boolean |
moveItemAfter(javax.jcr.Item source,
javax.jcr.Item target)
|
boolean |
moveItemBefore(javax.jcr.Item source,
javax.jcr.Item target)
|
Collection<String> |
rootItemIds()
|
boolean |
setChildrenAllowed(Object itemId,
boolean areChildrenAllowed)
|
boolean |
setParent(Object itemId,
Object newParentId)
|
Methods inherited from class info.magnolia.ui.vaadin.integration.jcr.container.AbstractJcrContainer |
---|
addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, constructJCRQuery, containsId, executeQuery, fireItemSetChange, firePropertySetChange, firstItemId, getCacheRatio, getContainerProperty, getCurrentOffset, getIdByIndex, getItem, getItemIds, getItemIds, getItemIndexes, getMainItemTypeAsString, getPageLength, getQuerySelectStatement, getQueryWhereClause, getQueryWhereClauseWorkspacePath, getWorkbenchDefinition, getWorkspace, indexOfId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, refresh, removeAllItems, removeItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, resetOffset, setCacheRatio, setPageLength, setSize, size, sort, updateSize |
Methods inherited from class info.magnolia.ui.vaadin.integration.jcr.container.AbstractContainer |
---|
addContainerProperty, getContainerPropertyIds, getType, removeContainerProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.data.Container.Hierarchical |
---|
removeItem |
Methods inherited from interface com.vaadin.data.Container |
---|
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, size |
Constructor Detail |
---|
public HierarchicalJcrContainer(info.magnolia.ui.model.workbench.definition.WorkbenchDefinition workbenchDefinition)
Method Detail |
---|
public Collection<String> getChildren(Object itemId)
getChildren
in interface com.vaadin.data.Container.Hierarchical
public String getParent(Object itemId)
getParent
in interface com.vaadin.data.Container.Hierarchical
public Collection<String> rootItemIds()
rootItemIds
in interface com.vaadin.data.Container.Hierarchical
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<String> createContainerIds(Collection<javax.jcr.Item> children) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public List<String> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
getSortableContainerPropertyIds
in class info.magnolia.ui.vaadin.integration.jcr.container.AbstractJcrContainer
public Collection<javax.jcr.Item> getChildren(javax.jcr.Item item) 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
public javax.jcr.Item getItemByPath(String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean moveItem(javax.jcr.Item source, javax.jcr.Item target) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean moveItemBefore(javax.jcr.Item source, javax.jcr.Item target) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean moveItemAfter(javax.jcr.Item source, javax.jcr.Item target) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |