T - the type of tree entry bean produced by this classpublic abstract class A_CmsTreeTabDataPreloader<T extends I_CmsGalleryTreeEntry<T>> extends java.lang.Object
| Constructor and Description |
|---|
A_CmsTreeTabDataPreloader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createEntry(CmsObject cms,
CmsResource resource)
Creates a tree entry bean from a resource.
|
protected void |
findRoot(java.util.Collection<CmsResource> resources)
Finds the common root folder for a collection of resources.
|
protected java.util.List<CmsResource> |
getChildren(CmsResource resource)
Gets the children of a resource.
|
protected java.lang.String |
getCommonSite(java.util.Collection<CmsResource> resourceSet)
Gets the common site root of a set of resources.
|
T |
preloadData(CmsObject cms,
java.util.Set<CmsResource> openResources,
java.util.Set<CmsResource> selectedResources)
Creates the preload data for a collection of resources which correspond to "opened" tree items.
|
public A_CmsTreeTabDataPreloader()
public T preloadData(CmsObject cms, java.util.Set<CmsResource> openResources, java.util.Set<CmsResource> selectedResources) throws CmsException
cms - the CMS context to useopenResources - the resources which correspond to opened tree itemsselectedResources - resources which should be part of the tree, but not openedCmsException - if something goes wrongprotected abstract T createEntry(CmsObject cms, CmsResource resource) throws CmsException
cms - the current CMS contextresource - the resource for which to create the tree entry beanCmsException - if something goes wrongprotected void findRoot(java.util.Collection<CmsResource> resources) throws CmsException
resources - the collection of resourcesCmsException - if something goes wrongprotected java.util.List<CmsResource> getChildren(CmsResource resource) throws CmsException
resource - the resource for which the children should be readCmsException - if something goes wrongprotected java.lang.String getCommonSite(java.util.Collection<CmsResource> resourceSet)
resourceSet - the resources