T - the type of tree entry bean produced by this classpublic abstract class A_CmsTreeTabDataPreloader<T extends I_CmsGalleryTreeEntry<T>>
extends java.lang.Object
| 构造器和说明 |
|---|
A_CmsTreeTabDataPreloader() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract T |
createEntry(CmsObject cms,
CmsResource resource)
Creates a tree entry bean from a resource.
|
protected void |
findRoot(java.util.Collection<CmsResource> openResources)
Finds the common root folder for a collection of resources.
|
protected java.util.List<CmsResource> |
getChildren(CmsResource resource)
Gets the children of a resource.
|
T |
preloadData(CmsObject cms,
java.util.Collection<CmsResource> openResources)
Creates the preload data for a collection of resources which correspond to "opened" tree items.
|
public T preloadData(CmsObject cms, java.util.Collection<CmsResource> openResources) throws CmsException
cms - the CMS context to useopenResources - the resources which correspond to opened tree itemsCmsException - 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> openResources) throws CmsException
openResources - the collection of open 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 wrong