info.magnolia.module.googlesitemap.app.subapp.sitemapdetail.util
Class SiteMapEntryContainer

java.lang.Object
  extended by com.vaadin.data.util.AbstractContainer
      extended by com.vaadin.data.util.AbstractInMemoryContainer<IDTYPE,String,com.vaadin.data.util.BeanItem<BEANTYPE>>
          extended by com.vaadin.data.util.AbstractBeanContainer<BEANTYPE,BEANTYPE>
              extended by com.vaadin.data.util.BeanItemContainer<SiteMapEntry>
                  extended by info.magnolia.module.googlesitemap.app.subapp.sitemapdetail.util.SiteMapEntryContainer
All Implemented Interfaces:
com.vaadin.data.Container, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.data.Property.ValueChangeListener, info.magnolia.ui.workbench.container.Refreshable, Serializable

public class SiteMapEntryContainer
extends com.vaadin.data.util.BeanItemContainer<SiteMapEntry>
implements com.vaadin.data.Container.Hierarchical, info.magnolia.ui.workbench.container.Refreshable

Container capable of keeping objects of type SiteMapEntry and resolving their hierarchy.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.data.util.AbstractBeanContainer
com.vaadin.data.util.AbstractBeanContainer.BeanIdResolver<IDTYPE,BEANTYPE>, com.vaadin.data.util.AbstractBeanContainer.PropertyBasedBeanIdResolver
 
Nested classes/interfaces inherited from class com.vaadin.data.util.AbstractContainer
com.vaadin.data.util.AbstractContainer.BaseItemSetChangeEvent, com.vaadin.data.util.AbstractContainer.BasePropertySetChangeEvent
 
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
 
Constructor Summary
SiteMapEntryContainer(String siteMapPath, boolean isVirtualUris, SiteMapService siteMapService)
           
 
Method Summary
 boolean areChildrenAllowed(Object itemId)
           
protected  List<SiteMapEntry> fetchSiteMapEntries()
           
 Collection<?> getChildren(Object itemId)
           
 Object getParent(Object itemId)
           
 boolean hasChildren(Object itemId)
           
 boolean isRoot(Object itemId)
           
 void refresh()
           
 Collection<?> rootItemIds()
           
 boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed)
           
 boolean setParent(Object itemId, Object newParentId)
           
 
Methods inherited from class com.vaadin.data.util.BeanItemContainer
addAll, addBean, addItem, addItemAfter, addItemAt, setBeanIdResolver
 
Methods inherited from class com.vaadin.data.util.AbstractBeanContainer
addBeanAfter, addBeanAt, addContainerFilter, addContainerFilter, addContainerProperty, addContainerProperty, addItem, addItemAfter, addItemAt, addListener, addNestedContainerBean, addNestedContainerProperty, addPropertySetChangeListener, createBeanItem, createBeanPropertyResolver, getBeanIdResolver, getBeanType, getContainerFilters, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getItemSorter, getSortableContainerPropertyIds, getType, getUnfilteredItem, hasContainerFilters, registerNewItem, removeAllContainerFilters, removeAllItems, removeContainerFilter, removeContainerFilters, removeContainerProperty, removeItem, removeListener, removePropertySetChangeListener, resolveBeanId, setItemSorter, sort, valueChange
 
Methods inherited from class com.vaadin.data.util.AbstractInMemoryContainer
addFilter, addItem, addItemAfter, addItemAt, addItemSetChangeListener, addListener, containsId, doFilterContainer, doSort, filterAll, fireItemAdded, fireItemRemoved, firstItemId, getAllItemIds, getFilteredItemIds, getFilters, getIdByIndex, getItemIds, getSortablePropertyIds, getVisibleItemIds, indexOfId, internalAddItemAfter, internalAddItemAt, internalAddItemAtEnd, internalRemoveAllItems, internalRemoveItem, isFiltered, isFirstId, isLastId, isPropertyFiltered, lastItemId, nextItemId, passesFilters, prevItemId, removeAllFilters, removeFilter, removeFilters, removeItemSetChangeListener, removeListener, setAllItemIds, setFilteredItemIds, setFilters, size, sortContainer
 
Methods inherited from class com.vaadin.data.util.AbstractContainer
fireContainerPropertySetChange, fireContainerPropertySetChange, fireItemSetChange, fireItemSetChange, getItemSetChangeListeners, getListeners, getPropertySetChangeListeners, setItemSetChangeListeners, setPropertySetChangeListeners
 
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
 
Methods inherited from interface com.vaadin.data.Container.Ordered
addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
 

Constructor Detail

SiteMapEntryContainer

public SiteMapEntryContainer(String siteMapPath,
                             boolean isVirtualUris,
                             SiteMapService siteMapService)
Method Detail

getChildren

public Collection<?> getChildren(Object itemId)
Specified by:
getChildren in interface com.vaadin.data.Container.Hierarchical

getParent

public Object getParent(Object itemId)
Specified by:
getParent in interface com.vaadin.data.Container.Hierarchical

rootItemIds

public Collection<?> rootItemIds()
Specified by:
rootItemIds in interface com.vaadin.data.Container.Hierarchical

areChildrenAllowed

public boolean areChildrenAllowed(Object itemId)
Specified by:
areChildrenAllowed in interface com.vaadin.data.Container.Hierarchical

isRoot

public boolean isRoot(Object itemId)
Specified by:
isRoot in interface com.vaadin.data.Container.Hierarchical

hasChildren

public boolean hasChildren(Object itemId)
Specified by:
hasChildren in interface com.vaadin.data.Container.Hierarchical

setParent

public boolean setParent(Object itemId,
                         Object newParentId)
                  throws UnsupportedOperationException
Specified by:
setParent in interface com.vaadin.data.Container.Hierarchical
Throws:
UnsupportedOperationException

setChildrenAllowed

public boolean setChildrenAllowed(Object itemId,
                                  boolean areChildrenAllowed)
                           throws UnsupportedOperationException
Specified by:
setChildrenAllowed in interface com.vaadin.data.Container.Hierarchical
Throws:
UnsupportedOperationException

fetchSiteMapEntries

protected List<SiteMapEntry> fetchSiteMapEntries()

refresh

public void refresh()
Specified by:
refresh in interface info.magnolia.ui.workbench.container.Refreshable


Copyright © 2015 Magnolia International Ltd.. All rights reserved.