|
|||||||||||
| 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
|
+--com.opencms.workplace.CmsDownloadBrowser
Template class for displaying OpenCms download browser.
CmsXmlWpTemplateFile| 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 | |
CmsDownloadBrowser()
|
|
| Method Summary | |
byte[] |
getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a defined section in a given template file and its subtemplates with the given parameters. |
void |
getCustomizedColumnValues(CmsObject cms,
CmsXmlWpTemplateFile filelistTemplate,
CmsResource res,
CmsXmlLanguageFile lang)
From interface I_CmsFileListUsers.
|
Integer |
getDownGalleryNames(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
|
Vector |
getFiles(CmsObject cms)
From interface I_CmsFileListUsers.
|
boolean |
isCacheable(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Indicates if the results of this class are cacheable. |
int |
modifyDisplayedColumns(CmsObject cms,
int prefs)
From interface I_CmsFileListUsers.
|
Boolean |
showBackButton(CmsObject cms,
CmsXmlLanguageFile lang,
Hashtable parameters)
Used by the workplace "back" button to decide whether the icon should be activated or not. |
Boolean |
showNextButton(CmsObject cms,
CmsXmlLanguageFile lang,
Hashtable parameters)
Used by the workplace "next" button to decide whether the icon should be activated or not. |
| Methods inherited from class com.opencms.workplace.A_CmsGalleryBrowser |
checkAccess, getGalleryNames, getGallerySubFolders, inFilter |
| Methods inherited from class com.opencms.workplace.CmsWorkplaceDefault |
bubblesort, checkJavaProperty, checkPort, doNotShow, getCacheDirectives, getConfigFile, getConstantSelectEntries, getFonts, getKey, getLastUrl, getOwnTemplateFile, isAdmin, isAdminFalse, 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 CmsDownloadBrowser()
| Method Detail |
public byte[] getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
getContent in interface I_CmsTemplategetContent in class CmsXmlTemplatecms - CmsObject Object for accessing system resources.templateFile - Filename of the template file.elementName - Element name of this template in our parent template.parameters - Hashtable with all template class parameters.templateSelector - template section that should be processed.
CmsExceptiongetContent(CmsObject, String, String, Hashtable, String)
public void getCustomizedColumnValues(CmsObject cms,
CmsXmlWpTemplateFile filelistTemplate,
CmsResource res,
CmsXmlLanguageFile lang)
throws CmsException
I_CmsFileListUsers.
Fills all customized columns with the appropriate settings for the given file list entry. Any column filled by this method may be used in the customized template for the file list.
getCustomizedColumnValues in interface I_CmsFileListUserscms - Cms object for accessing system resources.res - CmsResource Object of the current file list entry.lang - Current language file.
CmsException - if access to system resources failed.I_CmsFileListUsers
public Integer getDownGalleryNames(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
throws CmsException
CmsException
public Vector getFiles(CmsObject cms)
throws CmsException
I_CmsFileListUsers.
Collects all files in the chosen download gallery list.
getFiles in interface I_CmsFileListUserscms - The CmsObject.
Throws - CmsException if something goes wrong.
CmsException
public boolean isCacheable(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
isCacheable in interface I_CmsTemplateisCacheable in class CmsWorkplaceDefaultcms - CmsObject Object for accessing system resourcestemplateFile - Filename of the template fileelementName - Element name of this template in our parent template.parameters - Hashtable with all template class parameters.templateSelector - template section that should be processed.
public int modifyDisplayedColumns(CmsObject cms,
int prefs)
I_CmsFileListUsers.
Used to modify the bit pattern for hiding and showing columns in the file list.
modifyDisplayedColumns in interface I_CmsFileListUserscms - Cms object for accessing system resources.prefs - Old bit pattern.
I_CmsFileListUsers
public Boolean showBackButton(CmsObject cms,
CmsXmlLanguageFile lang,
Hashtable parameters)
method="showBackButton"
is defined in the <BUTTON> tag.
This method returns false if the currently displayed page is
the first page.
cms - CmsObject Object for accessing system resources (not used here).lang - reference to the currently valid language file (not used here).parameters - Hashtable containing all user parameters (not used here).
true if the button should be enabled, false otherwise.
public Boolean showNextButton(CmsObject cms,
CmsXmlLanguageFile lang,
Hashtable parameters)
method="showNextButton"
is defined in the <BUTTON> tag.
This method returns false if the currently displayed page is
the last page.
cms - CmsObject Object for accessing system resources (not used here).lang - reference to the currently valid language file (not used here).parameters - Hashtable containing all user parameters (not used here).
true if the button should be enabled, false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||