|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.template.A_CmsTemplate
|
+--com.opencms.template.CmsXmlTemplate
|
+--com.opencms.workplace.CmsWorkplaceDefault
|
+--com.opencms.workplace.A_CmsGalleryBrowser
An abstract gallery browser.
Each {download|picture|HTML} gallery workplace class has to extend this browser class.
| Field Summary |
| Fields inherited from class com.opencms.template.CmsXmlTemplate |
C_BODY_ELEMENT, C_DEBUG, C_FRAME_SELECTOR, m_cache |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
A_CmsGalleryBrowser()
|
|
| Method Summary | |
protected boolean |
checkAccess(CmsObject cms,
CmsResource res)
Checks if a resource should be displayed in the gallery selection. |
Integer |
getGalleryNames(CmsObject cms,
String galleryPath,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
Reads the names of all galleries for a specified gallery path. |
protected List |
getGallerySubFolders(CmsObject cms,
List folders,
String foldername)
Reads all subfolders of a gallery recursively. |
protected boolean |
inFilter(String filename,
String filter)
Checks, if the given filename matches the filter string. |
| Methods inherited from class com.opencms.workplace.CmsWorkplaceDefault |
bubblesort, checkJavaProperty, checkPort, doNotShow, getCacheDirectives, getConfigFile, getConstantSelectEntries, getFonts, getKey, getLastUrl, getOwnTemplateFile, isAdmin, isAdminFalse, isCacheable, isNotOnlineProject, isOnlineProject, isProjectManager, isStreamable, isTheAdminUser, picsUrl, resourcesUri, scriptsUri, startProcessing, userName |
| Methods inherited from class com.opencms.template.A_CmsTemplate |
debugPrint, isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opencms.template.I_CmsTemplate |
isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Constructor Detail |
public A_CmsGalleryBrowser()
| Method Detail |
public Integer getGalleryNames(CmsObject cms,
String galleryPath,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
throws CmsException
The vectors names and values will be
filled with the information to be used for building a select box. The
values will are the paths of the galleries.
cms - the current user's CmsObject instancegalleryPath - the VFS paath of the gallery, e.g. /system/galleries/pics/lang - XML language file for internationalization, (not used here)names - filled with the URIs of the galleriesvalues - filled with the names of the galleriesparameters - contains user parameters, (not used here)
CmsException - if something goes wrong
protected List getGallerySubFolders(CmsObject cms,
List folders,
String foldername)
throws CmsException
cms - the current user's CmsObject instancefolders - filled with the appropriate values in this method.foldername - String the folder to start from.
CmsException
protected boolean checkAccess(CmsObject cms,
CmsResource res)
throws CmsException
cms - the current user's CmsObject instanceres - the resource
CmsException - if something goes wrong.
protected boolean inFilter(String filename,
String filter)
filename - filename to be checkedfilter - filter to be checked
true if the filename matches the filter, false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||