com.opencms.workplace
Class CmsWorkplaceDefault

java.lang.Object
  |
  +--com.opencms.template.A_CmsTemplate
        |
        +--com.opencms.template.CmsXmlTemplate
              |
              +--com.opencms.workplace.CmsWorkplaceDefault
All Implemented Interfaces:
I_CmsConstants, I_CmsLogChannels, I_CmsTemplate, I_CmsWpConstants, I_CmsXmlTemplate
Direct Known Subclasses:
A_CmsBackoffice, CmsAdminCronManagement, CmsAdminDatabase, CmsAdminDatatypes, CmsAdminElementCache, CmsAdminGallery, CmsAdminGroups, CmsAdminHistoryProperties, CmsAdministration, CmsAdminLinkCheckViewer, CmsAdminLinkmanagement, CmsAdminLogFileViewer, CmsAdminLoggedInUsers, CmsAdminModule, CmsAdminModuleAdmin, CmsAdminModuleAdminEdit, CmsAdminModuleAdminProperties, CmsAdminModuleCreate, CmsAdminModuleDelete, CmsAdminModuleDeleteWarning, CmsAdminModuleExport, CmsAdminModuleNew, CmsAdminModuleNewFiles, CmsAdminModuleProperties, CmsAdminProjectDelete, CmsAdminProjectHistory, CmsAdminProjectLockchange, CmsAdminProjectNew, CmsAdminProjectPublish, CmsAdminProjectResent, CmsAdminProjectResentFiles, CmsAdminProperties, CmsAdminStaticExport, CmsAdminSyncProperties, CmsAdminUsers, CmsAdminVfsLinkManagement, CmsBackofficeHead, CmsChannelTree, CmsCheckMem, CmsChgrp, CmsChmod, CmsChnav, CmsChown, CmsChpwd, CmsChtype, CmsCopy, CmsCopyToProject, CmsDelete, CmsDownloadBrowser, CmsEditor, CmsExplorerHead, CmsExplorerResources, CmsExplorerShowResource, CmsExplorerTree, CmsFolderTree, CmsHistory, CmsHtmlBrowser, CmsLinkBrowser, CmsLock, CmsLockChange, CmsModuleDemos, CmsMove, CmsNewResourceFolder, CmsNewResourceLink, CmsNewResourceOthertype, CmsNewResourcePage, CmsNewResourcePdfpage, CmsNewResourceUpload, CmsPictureBrowser, CmsPreferences, CmsPreferencesPanels, CmsProperty, CmsPublishResource, CmsRename, CmsReplace, CmsRestoreResource, CmsSearchForm, CmsSyncFolder, CmsTaskContent, CmsTaskContentDetail, CmsTaskContentDialogMsg, CmsTaskContentDialogPriority, CmsTaskHead, CmsTaskNew, CmsTouch, CmsUndelete, CmsUndochanges, CmsUnlock, CmsWorkplaceDefaultNoCache, CmsWpMain, CmsXmlTemplateEditor

public class CmsWorkplaceDefault
extends CmsXmlTemplate
implements I_CmsWpConstants

Common template class for displaying OpenCms workplace screens.

Reads template files of the content type CmsXmlWpTemplateFile.

Most special workplace classes may extend this class.

Version:
$Revision: 1.56 $ $Date: 2003/03/02 18:43:54 $
Author:
Alexander Lucas
See Also:
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.workplace.I_CmsWpConstants
C_ADMIN_BACK_BUTTON, C_BOXTEMPLATE, C_BUTTON_ACTION, C_BUTTON_ALT, C_BUTTON_HREF, C_BUTTON_METHOD, C_BUTTON_NAME, C_BUTTON_STYLE, C_BUTTON_VALUE, C_BUTTON_WIDTH, C_BUTTONTEMPLATE, C_CONTEXTMENUE_TEMPLATEFILE, C_DEFAULT_LANGUAGE, C_DOWNBROWSER_MAXENTRIES, C_EDIT_ACTION_EXIT, C_EDIT_ACTION_SAVE, C_EDIT_ACTION_SAVEEXIT, C_ERROR_LINK, C_ERROR_MESSAGE, C_ERROR_MSG_BUTTON, C_ERROR_MSG_DETAILS, C_ERROR_MSG_REASON, C_ERROR_REASON, C_ERROR_SUGGESTION, C_ERROR_TITLE, C_ERRORTEMPLATE, C_FILELIST_ACCESS, C_FILELIST_ACCESS_VALUE, C_FILELIST_CHANGED, C_FILELIST_CHANGED_VALUE, C_FILELIST_CLASS_VALUE, C_FILELIST_COLUMN_ACCESS, C_FILELIST_COLUMN_CHANGED, C_FILELIST_COLUMN_CUSTOMIZED, C_FILELIST_COLUMN_CUSTOMIZED_VALUE, C_FILELIST_COLUMN_GROUP, C_FILELIST_COLUMN_LOCKED, C_FILELIST_COLUMN_NAME, C_FILELIST_COLUMN_OWNER, C_FILELIST_COLUMN_SIZE, C_FILELIST_COLUMN_STATE, C_FILELIST_COLUMN_TITLE, C_FILELIST_COLUMN_TYPE, C_FILELIST_CUSTOMTEMPLATE, C_FILELIST_DISPLAYMETHOD, C_FILELIST_GROUP, C_FILELIST_GROUP_VALUE, C_FILELIST_ICON_VALUE, C_FILELIST_LINK_VALUE, C_FILELIST_LOCK_VALUE, C_FILELIST_LOCKED, C_FILELIST_LOCKED_VALUE, C_FILELIST_METHOD, C_FILELIST_NAME, C_FILELIST_NAME_VALUE, C_FILELIST_OWNER, C_FILELIST_OWNER_VALUE, C_FILELIST_SIZE, C_FILELIST_SIZE_VALUE, C_FILELIST_STATE, C_FILELIST_STATE_VALUE, C_FILELIST_SUFFIX_VALUE, C_FILELIST_TEMPLATE, C_FILELIST_TITLE, C_FILELIST_TITLE_VALUE, C_FILELIST_TYPE, C_FILELIST_TYPE_VALUE, C_FILETYPELIST_TEMPLATEFILE, C_GROUPS_NAME, C_ICON_ACTION, C_ICON_ACTIVE_METHOD, C_ICON_DEFAULT, C_ICON_EXTENSION, C_ICON_HREF, C_ICON_LABEL, C_ICON_NAME, C_ICON_PREFIX, C_ICON_TARGET, C_ICON_TEMPLATEFILE, C_ICON_VISIBLE_METHOD, C_INPUT_ACTION, C_INPUT_CLASS, C_INPUT_LENGTH, C_INPUT_METHOD, C_INPUT_NAME, C_INPUT_SIZE, C_INPUT_VALUE, C_INPUTTEMPLATE, C_LABEL_VALUE, C_LABELTEMPLATE, C_LANG_BUTTON, C_LANG_ICON, C_LANG_LABEL, C_LANG_TITLE, C_MACRO_OPENCMS_CONTEXT, C_MESSAGE_BUTTON1, C_MESSAGE_BUTTON2, C_MESSAGE_FILENAME, C_MESSAGE_LINK1, C_MESSAGE_LINK2, C_MESSAGE_MESSAGE1, C_MESSAGE_MESSAGE2, C_MESSAGE_TITLE, C_MODULE_PACKETNAME, C_MODULELIST_AUTHOR, C_MODULELIST_DATECREATED, C_MODULELIST_DATEUPLOADED, C_MODULELIST_IDX, C_MODULELIST_METHOD, C_MODULELIST_NAME, C_MODULELIST_NICE_NAME, C_MODULELIST_TEMPLATEFILE, C_MODULELIST_VERSION, C_PANEL_EXPLORER, C_PANEL_LINK, C_PANEL_NAME, C_PANEL_START, C_PANEL_TASK, C_PANEL_USER, C_PANELTEMPLATE, C_PARA_ACTION, C_PARA_CANCEL, C_PARA_CONTENT, C_PARA_DEFAULT, C_PARA_DELETE, C_PARA_DESCRIPTION, C_PARA_EXPLORERSETTINGS, C_PARA_FILE, C_PARA_FILECONTENT, C_PARA_FILELIST, C_PARA_FILTER, C_PARA_FLAGS, C_PARA_FOLDER, C_PARA_FOLDERTREE, C_PARA_FORMNAME, C_PARA_INITIAL, C_PARA_JSFILE, C_PARA_KEYWORDS, C_PARA_LAYOUT, C_PARA_LINK, C_PARA_LOCK, C_PARA_MAXPAGE, C_PARA_NAME, C_PARA_NAVPOS, C_PARA_NAVTEXT, C_PARA_NEWACCESS, C_PARA_NEWFILE, C_PARA_NEWFOLDER, C_PARA_NEWGROUP, C_PARA_NEWOWNER, C_PARA_NEWPWD, C_PARA_NEWPWDREPEAT, C_PARA_NEWTYPE, C_PARA_OK, C_PARA_OLDPANEL, C_PARA_OLDPWD, C_PARA_PAGE, C_PARA_PANEL, C_PARA_PREVIOUSLIST, C_PARA_PROJECT, C_PARA_PROPERTYDEF, C_PARA_STARTPROJECTID, C_PARA_STARTSETTINGS, C_PARA_STARTTASKID, C_PARA_SUBMIT, C_PARA_TASKSETTINGS, C_PARA_TEMPLATE, C_PARA_TITLE, C_PARA_UNLOCK, C_PARA_URL, C_PARA_USERSETTINGS, C_PARA_VARIABLE, C_PARA_VIEW, C_PARA_VIEWFILE, C_PICBROWSER_MAXIMAGES, C_PREFERENCES_UPDATE, C_PREFSSCROLLER_TEMPLATEFILE, C_PROJECTLIST_DATECREATED, C_PROJECTLIST_DESCRIPTION, C_PROJECTLIST_IDX, C_PROJECTLIST_LOCKSTATE, C_PROJECTLIST_MENU, C_PROJECTLIST_METHOD, C_PROJECTLIST_NAME, C_PROJECTLIST_NAME_ESCAPED, C_PROJECTLIST_OWNER, C_PROJECTLIST_PROJECTID, C_PROJECTLIST_PROJECTMANAGER, C_PROJECTLIST_PROJECTWORKER, C_PROJECTLIST_STATE, C_PROJECTLIST_STATE_LOCKED, C_PROJECTLIST_STATE_UNLOCKED, C_PROJECTLIST_TEMPLATEFILE, C_PROJECTNEW_DESCRIPTION, C_PROJECTNEW_DONE, C_PROJECTNEW_ERROR, C_PROJECTNEW_FOLDER, C_PROJECTNEW_GROUP, C_PROJECTNEW_MANAGERGROUP, C_PROJECTNEW_NAME, C_PROJECTNEW_TYPE, C_RADIO_IMAGEENTRY, C_RADIO_IMAGENAME, C_RADIO_IMAGEOPTION, C_RADIO_LINK, C_RADIO_METHOD, C_RADIO_NAME, C_RADIO_ORDER, C_RADIO_RADIONAME, C_RADIO_SELECTEDENTRY, C_RADIO_SELECTEDOPTION, C_RADIOTEMPLATE, C_SELECTBOX_CLASS, C_SELECTBOX_CLASSNAME, C_SELECTBOX_DIV, C_SELECTBOX_EDITORVIEWS, C_SELECTBOX_EDITORVIEWS_ALLOWED, C_SELECTBOX_EDITORVIEWS_CLASSES, C_SELECTBOX_EDITORVIEWS_DEFAULT, C_SELECTBOX_EDITORVIEWS_TEMPLATES, C_SELECTBOX_FONTS, C_SELECTBOX_METHOD, C_SELECTBOX_NAME, C_SELECTBOX_ONCHANGE, C_SELECTBOX_OPTIONNAME, C_SELECTBOX_OPTIONVALUE, C_SELECTBOX_SIZE, C_SELECTBOX_WIDTH, C_SESSION_MODULE_ADMIN_DATA, C_SESSION_MODULE_ADMIN_PROP_DESCR, C_SESSION_MODULE_ADMIN_PROP_NAMES, C_SESSION_MODULE_ADMIN_PROP_TYP, C_SESSION_MODULE_ADMIN_PROP_VAL, C_SESSION_MODULE_CHECKSUM, C_SESSION_MODULE_DELETE_STEP, C_SESSION_MODULE_EXCLUSION, C_SESSION_MODULE_INUSE, C_SESSION_MODULE_MISSFILES, C_SESSION_MODULE_PROJECTFILES, C_SESSION_MODULE_PROPFILES, C_SESSION_TASK_ALLPROJECTS, C_SESSION_TASK_FILTER, C_SYSTEM_PICS_EXPORT_PATH, C_TAG_ERRORBOX, C_TAG_ERRORPAGE, C_TAG_INPUTFIELD, C_TAG_LABEL, C_TAG_MESSAGEBOX, C_TAG_MODULELIST_DEFAULT, C_TAG_PANEL_BGACTIVE, C_TAG_PANEL_BGINACTIVE, C_TAG_PANEL_ENDSEQ, C_TAG_PANEL_SEPBGTEXT, C_TAG_PANEL_STARTSEQ, C_TAG_PANEL_TEXTACTIVE, C_TAG_PANEL_TEXTINACTIVE, C_TAG_PASSWORD, C_TAG_PROJECTLIST_DEFAULT, C_TAG_PROJECTLIST_SNAPLOCK, C_TAG_SELECTBOX_CLASS, C_TAG_SELECTBOX_END, C_TAG_SELECTBOX_OPTION, C_TAG_SELECTBOX_SELOPTION, C_TAG_SELECTBOX_START, C_TAG_SELECTBOX_START_DIV, C_TAG_STARTUP, C_TAG_SUBMITBUTTON, C_TASKDOCU_TEMPLATEFILE, C_TASKLIST_TEMPLATEFILE, C_TASKLOGTYPE_ACCEPTED, C_TASKLOGTYPE_CALL, C_TASKLOGTYPE_COMMENT, C_TASKLOGTYPE_CREATED, C_TASKLOGTYPE_DUECHANGED, C_TASKLOGTYPE_FORWARDED, C_TASKLOGTYPE_OK, C_TASKLOGTYPE_PRIORITYCHANGED, C_TASKLOGTYPE_REACTIVATED, C_TASKLOGTYPE_TAKE, C_TASKPARA_ACCEPTATION, C_TASKPARA_ALL, C_TASKPARA_COMPLETION, C_TASKPARA_DELIVERY, C_USERPREF_FILELIST, C_USERS_NAME, C_VFS_DIR_DEFAULTBODIES, C_VFS_DIR_INTERNAL, C_VFS_DIR_LOCALES, C_VFS_DIR_TEMPLATES, C_VFS_GALLERY_DOWNLOAD, C_VFS_GALLERY_EXTERNALLINKS, C_VFS_GALLERY_HTML, C_VFS_GALLERY_PICS, C_VFS_NEW_STRUCTURE, C_VFS_PATH_BODIES, C_VFS_PATH_DEFAULT_BODIES, C_VFS_PATH_DEFAULT_INTERNAL, C_VFS_PATH_DEFAULT_TEMPLATES, C_VFS_PATH_DEFAULTMODULE, C_VFS_PATH_GALLERIES, C_VFS_PATH_HELP, C_VFS_PATH_LOCALES, C_VFS_PATH_MODULEDEMOS, C_VFS_PATH_MODULES, C_VFS_PATH_SCRIPTS, C_VFS_PATH_SYSTEM, C_VFS_PATH_SYSTEMPICS, C_VFS_PATH_WORKPLACE, C_WP_CHANNEL_TREE, C_WP_EXPLORER_FILELIST, C_WP_EXPLORER_PREFERENCES, C_WP_EXPLORER_TREE, C_WP_FOLDER_TREE, C_WP_RELOAD
 
Fields inherited from interface com.opencms.core.I_CmsConstants
C_ACCESS_DEFAULT_FLAGS, C_ACCESS_GROUP, C_ACCESS_GROUP_READ, C_ACCESS_GROUP_VISIBLE, C_ACCESS_GROUP_WRITE, C_ACCESS_INTERNAL_READ, C_ACCESS_OWNER, C_ACCESS_OWNER_READ, C_ACCESS_OWNER_VISIBLE, C_ACCESS_OWNER_WRITE, C_ACCESS_PUBLIC, C_ACCESS_PUBLIC_READ, C_ACCESS_PUBLIC_VISIBLE, C_ACCESS_PUBLIC_WRITE, C_ACCESS_READ, C_ACCESS_VISIBLE, C_ACCESS_WRITE, C_ADDITIONAL_INFO_EXPLORERSETTINGS, C_ADDITIONAL_INFO_PREFERENCES, C_ADDITIONAL_INFO_STARTSETTINGS, C_ADDITIONAL_INFO_TASKSETTINGS, C_ADDITIONAL_INFO_TOWN, C_ADDITIONAL_INFO_ZIPCODE, C_AT_LEAST_ONCE, C_CLUSTERURL, C_CONFIGURATION_CACHE, C_CONFIGURATION_CLASS, C_CONFIGURATION_REGISTRY, C_CONFIGURATION_RESOURCEBROKER, C_COPYRIGHT, C_DEFAULT_SITE, C_DELETE_HISTORY, C_ENABLE_HISTORY, C_ERRPREFIX, C_ERRSPERATOR, C_EXPORT_TAG_ACCESS, C_EXPORT_TAG_ADDRESS, C_EXPORT_TAG_CREATOR, C_EXPORT_TAG_DATE, C_EXPORT_TAG_DEFAULTGROUP, C_EXPORT_TAG_DESCRIPTION, C_EXPORT_TAG_DESTINATION, C_EXPORT_TAG_EMAIL, C_EXPORT_TAG_EXPORT, C_EXPORT_TAG_FILE, C_EXPORT_TAG_FIRSTNAME, C_EXPORT_TAG_FLAGS, C_EXPORT_TAG_GROUP, C_EXPORT_TAG_GROUPDATA, C_EXPORT_TAG_GROUPNAME, C_EXPORT_TAG_INFO, C_EXPORT_TAG_LASTMODIFIED, C_EXPORT_TAG_LASTNAME, C_EXPORT_TAG_LAUNCHER_START_CLASS, C_EXPORT_TAG_MODULEXPORT, C_EXPORT_TAG_NAME, C_EXPORT_TAG_OC_VERSION, C_EXPORT_TAG_PARENTGROUP, C_EXPORT_TAG_PASSWORD, C_EXPORT_TAG_PROJECT, C_EXPORT_TAG_PROPERTIES, C_EXPORT_TAG_PROPERTY, C_EXPORT_TAG_RECOVERYPASSWORD, C_EXPORT_TAG_SECTION, C_EXPORT_TAG_SOURCE, C_EXPORT_TAG_TYPE, C_EXPORT_TAG_USER, C_EXPORT_TAG_USERDATA, C_EXPORT_TAG_USERGROUPDATA, C_EXPORT_TAG_USERGROUPS, C_EXPORT_TAG_USERINFO, C_EXPORT_TAG_VALUE, C_EXPORT_TAG_VERSION, C_EXPORT_VERSION, C_EXPORT_XMLFILENAME, C_EXPORTONLYFILES, C_EXPORTONLYUSERS, C_EXPORTPOINT, C_EXPORTPOINT_PATH, C_EXPORTUSERSFILES, C_FCONTENT, C_FELEMENT, C_FILE, C_FILECONTENT, C_FILES_IMPORTED, C_FLAG_DISABLED, C_FLAG_ENABLED, C_FLAG_GROUP_PROJECTCOWORKER, C_FLAG_GROUP_PROJECTMANAGER, C_FLAG_GROUP_ROLE, C_FOLDER, C_FOLDER_SEPARATOR, C_GROUP, C_GROUP_ADMIN, C_GROUP_GUEST, C_GROUP_PROJECTLEADER, C_GROUP_USERS, C_LINKCHECKTABLE_DATE, C_MAX_LENGTH_RESOURCE_NAME, C_MODULE_PROPERTY_ADDITIONAL_RESOURCES, C_MODULE_PROPERTY_ADDITIONAL_RESOURCES_SEPARATOR, C_MODUS_AUTO, C_MODUS_EXPORT, C_MODUS_EXTERN, C_MODUS_OFFLINE, C_MODUS_ONLINE, C_MOUNTPOINT_FILESYSTEM, C_MOUNTPOINT_MYSQL, C_NEVER, C_NO_FILES_IMPORTED, C_ORDER_AGENTUSER, C_ORDER_ENDTIME, C_ORDER_ID, C_ORDER_INITIATORUSER, C_ORDER_NAME, C_ORDER_ORIGINALUSER, C_ORDER_PERCENTAGE, C_ORDER_PRIORITY, C_ORDER_ROLE, C_ORDER_STARTTIME, C_ORDER_STATE, C_ORDER_TASKTYPE, C_ORDER_TIMEOUT, C_ORDER_WAKEUPTIME, C_PASSWORD_MINIMUMSIZE, C_PROJECT_ONLINE, C_PROJECT_ONLINE_ID, C_PROJECT_STATE_ARCHIVE, C_PROJECT_STATE_INVISIBLE, C_PROJECT_STATE_LOCKED, C_PROJECT_STATE_UNLOCKED, C_PROJECT_TYPE_INVISIBLE, C_PROJECT_TYPE_NORMAL, C_PROJECT_TYPE_TEMPORARY, C_PROPERTY_ACTIV, C_PROPERTY_CHANNELID, C_PROPERTY_CONTENT_ENCODING, C_PROPERTY_DEFAULT_FILE, C_PROPERTY_DESCRIPTION, C_PROPERTY_EXPORT, C_PROPERTY_EXPORTNAME, C_PROPERTY_KEYWORDS, C_PROPERTY_NAVPOS, C_PROPERTY_NAVTEXT, C_PROPERTY_RELATIVEROOT, C_PROPERTY_TEMPLATETYPE, C_PROPERTY_TITLE, C_PROPERTY_VISIBLE, C_PUBLISH_METHOD_LINK, C_REGISTRY_DESTINATION, C_REGISTRY_HISTORY, C_REGISTRY_KNOWNLAUNCHERS, C_REGISTRY_LAUNCHER, C_REGISTRY_SOURCE, C_REQUEST_CONSOLE, C_REQUEST_HTTP, C_RESPONSE_CONSOLE, C_RESPONSE_HTTP, C_ROOT, C_ROOT_TEMPLATE_NAME, C_ROOTNAME_COS, C_ROOTNAME_VFS, C_SESSION_ADMIN_POS, C_SESSION_BROADCASTMESSAGE, C_SESSION_CONTENT_ENCODING, C_SESSION_CURRENTGROUP, C_SESSION_DATA, C_SESSION_IS_DIRTY, C_SESSION_MESSAGEPENDING, C_SESSION_MODULE_VECTOR, C_SESSION_PROJECT, C_SESSION_THREAD_ERROR, C_SESSION_USERNAME, C_SORT_ASC, C_SORT_DESC, C_START_ACCESSFLAGS, C_START_DEFAULTGROUP, C_START_LANGUAGE, C_START_LOCKDIALOG, C_START_PROJECT, C_START_VIEW, C_STATE_CHANGED, C_STATE_DELETED, C_STATE_NEW, C_STATE_UNCHANGED, C_STATICEXPORT_PATH, C_STATICEXPORT_START, C_SYNCHRONISATION_PATH, C_SYNCHRONISATION_PROJECT, C_SYNCHRONISATION_RESOURCE, C_SYNCHRONISATION_RESOURCETAG, C_SYSTEMPROPERTY_CRONTABLE, C_SYSTEMPROPERTY_EXPORTPATH, C_SYSTEMPROPERTY_EXTENSIONS, C_SYSTEMPROPERTY_LINKCHECKTABLE, C_SYSTEMPROPERTY_MIMETYPES, C_SYSTEMPROPERTY_MOUNTPOINT, C_SYSTEMPROPERTY_RESOURCE_TYPE, C_TABLE_CHANNELID, C_TASK_FILTER, C_TASK_MESSAGES, C_TASK_MESSAGES_ACCEPTED, C_TASK_MESSAGES_COMPLETED, C_TASK_MESSAGES_FORWARDED, C_TASK_MESSAGES_MEMBERS, C_TASK_ORDER_BY_DATE, C_TASK_ORDER_BY_NAME, C_TASK_PRIORITY_HIGH, C_TASK_PRIORITY_LOW, C_TASK_PRIORITY_NORMAL, C_TASK_STATE_ENDED, C_TASK_STATE_HALTED, C_TASK_STATE_NOTENDED, C_TASK_STATE_PREPARE, C_TASK_STATE_START, C_TASK_STATE_STARTED, C_TASK_VIEW_ALL, C_TASKLOG_SYSTEM, C_TASKLOG_USER, C_TASKORDER_NONE, C_TASKORDER_STARTDATE, C_TASKORDER_TIMEOUT, C_TASKS_ACTIVE, C_TASKS_ALL, C_TASKS_DONE, C_TASKS_NEW, C_TASKS_OPEN, C_TASKSORDER_TASKNAME, C_TEMP_PREFIX, C_TFACCESS, C_TFGROUP, C_TFILEOBJ, C_TFILES, C_TFNAME, C_TFPROPERTYINFO, C_TFPROPERTYNAME, C_TFPROPERTYTYPE, C_TFPROPERTYVALUE, C_TFTYPE, C_TFTYPENAME, C_TFUSER, C_TGDESC, C_TGFLAG, C_TGNAME, C_TGPARENTGROUP, C_TGROUPOBJ, C_TGROUPS, C_TGROUPUSERS, C_TGUSER, C_TUADDINFO, C_TUDESC, C_TUDGROUP, C_TUDISABLED, C_TUEMAIL, C_TUFIRSTNAME, C_TUFLAG, C_TUGROUP, C_TUINFOKEY, C_TUINFOVALUE, C_TULOGIN, C_TUNAME, C_TUPASSWD, C_TUSERGROUPS, C_TUSEROBJ, C_TUSERS, C_TYPE_BODY_NAME, C_TYPE_COMPATIBLEPLAIN_NAME, C_TYPE_FOLDER, C_TYPE_FOLDER_NAME, C_TYPE_IMAGE_NAME, C_TYPE_LAST_INDEX, C_TYPE_PAGE_NAME, C_TYPE_PLAIN_NAME, C_UNKNOWN_ID, C_UNKNOWN_INT, C_UNKNOWN_LAUNCHER, C_UNKNOWN_LAUNCHER_ID, C_UNKNOWN_LONG, C_URL_PREFIX_EXPORT, C_URL_PREFIX_HTTP, C_URL_PREFIX_HTTPS, C_URL_PREFIX_SERVERNAME, C_USER, C_USER_ADMIN, C_USER_GUEST, C_USER_TYPE_SYSTEMANDWEBUSER, C_USER_TYPE_SYSTEMUSER, C_USER_TYPE_WEBUSER, C_WEB_APP_REPLACE_KEY, C_WEEKS_HISTORY, C_WHATEVER, C_XML_BODY_ELEMENT
 
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
CmsWorkplaceDefault()
           
 
Method Summary
 void bubblesort(Vector names, Vector data)
          Sorts two vectors using bubblesort.
protected  boolean checkJavaProperty(String propertyName, String value)
          Checks a Java System property for containing the given value
protected  boolean checkPort(CmsObject cms)
          Checks, if the request is running on the correct port.
 Boolean doNotShow(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Used by workplace icons to decide whether the icon should be activated or not.
 CmsCacheDirectives getCacheDirectives(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector)
          gets the caching information from the current template class.
 CmsXmlWpConfigFile getConfigFile(CmsObject cms)
          Gets a reference to the default config file.
protected  void getConstantSelectEntries(Vector names, Vector values, String[] contents, CmsXmlLanguageFile lang)
          Help method used to fill the vectors returned to CmsSelectBox with constant values.
 Integer getFonts(CmsObject cms, CmsXmlLanguageFile lang, Vector names, Vector values, Hashtable parameters)
          Gets all fonts available in the WYSIWYG editor.
 Object getKey(CmsObject cms, String templateFile, Hashtable parameters, String templateSelector)
          Gets the key that should be used to cache the results of this template class.
protected  String getLastUrl(CmsObject cms, Hashtable parameters)
          Get the currently valid lasturl parameter that can be used for redirecting to the previous workplace screen.
 CmsXmlTemplateFile getOwnTemplateFile(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector)
          Reads in the template file and starts the XML parser for the expected content type CmsXmlWpTemplateFile
 Boolean isAdmin(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Checks if the current user is administrator.
 Boolean isAdminFalse(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Same as above, only that this returns always 'false'.
 boolean isCacheable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector)
          Indicates if the results of this class are cacheable.
 Boolean isNotOnlineProject(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Checks if the current project is not the "Online" project.
 Boolean isOnlineProject(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Checks if the current project is the "Online" project.
 Boolean isProjectManager(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Checks if the current user is Project manager.
 boolean isStreamable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector)
          Indicates if the current template class is able to stream it's results directly to the response oputput stream.
 Boolean isTheAdminUser(CmsObject cms, CmsXmlLanguageFile lang, Hashtable parameters)
          Checks if the current user is the administrator Admin.
 Object picsUrl(CmsObject cms, String tagcontent, A_CmsXmlContent doc, Object userObj)
          Deprecated. use resourcesUri(CmsObject, String, A_CmsXmlContent, Object) instead
 Object resourcesUri(CmsObject cms, String tagcontent, A_CmsXmlContent doc, Object userObj)
          User method to generate an URI for the system resources folder.
 Object scriptsUri(CmsObject cms, String tagcontent, A_CmsXmlContent doc, Object userObj)
          User method to generate an URI for the system scripts folder.
protected  byte[] startProcessing(CmsObject cms, CmsXmlTemplateFile xmlTemplateDocument, String elementName, Hashtable parameters, String templateSelector)
          Starts the processing of the given template file by calling the getProcessedTemplateContent() method of the content defintition of the corresponding content type.
 Object userName(CmsObject cms, String tagcontent, A_CmsXmlContent doc, Object userObj)
          User method to get the name of the user.
 
Methods inherited from class com.opencms.template.CmsXmlTemplate
collectCacheDirectives, counter, createElement, getClassName, getContent, getContent, getDescription, getEncoding, getFileUri, getFrameQueryString, getFrameTarget, getKeywords, getMethodCacheDirectives, getPathUri, getProperty, getQueryString, getRequestIp, getServletPath, getSessionId, getStylesheet, getTemplateClassName, getTemplateFileName, getTemplateSelector, getTitle, getTitleEscaped, getUri, getUriWithParameter, isTemplateCacheSet, mergeAbsolutePath, mergeAbsoluteUrl, parameters, registerVariantDeps, setEncoding, setTemplateCache, shouldReload, templateElement, throwException, throwException, throwException
 
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

CmsWorkplaceDefault

public CmsWorkplaceDefault()
Method Detail

bubblesort

public void bubblesort(Vector names,
                       Vector data)
Sorts two vectors using bubblesort. This is a quick hack to display templates sorted by title instead of by name in the template dropdown, because it is the title that is shown in the dropdown. Creation date: (10/24/00 13:55:12)

Parameters:
names - The vector to sort
data - Vector with data that accompanies names.

checkJavaProperty

protected boolean checkJavaProperty(String propertyName,
                                    String value)
Checks a Java System property for containing the given value

Parameters:
propertyName - Name of the property
value - Value that should be checked
Returns:
true if the property contains the value, false otherwise

doNotShow

public Boolean doNotShow(CmsObject cms,
                         CmsXmlLanguageFile lang,
                         Hashtable parameters)
Used by workplace icons to decide whether the icon should be activated or not. Icons will use this method if the attribute method="doNotShow" is defined in the <ICON> tag.

This method always returns false thus icons controlled by this method will never be activated.

Parameters:
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).
Returns:
false.

getConfigFile

public CmsXmlWpConfigFile getConfigFile(CmsObject cms)
                                 throws CmsException
Gets a reference to the default config file. The path to this file ist stored in C_WORKPLACE_INI

Parameters:
cms - CmsObject Object for accessing system resources.
Returns:
Reference to the config file.
Throws:
CmsException

getConstantSelectEntries

protected void getConstantSelectEntries(Vector names,
                                        Vector values,
                                        String[] contents,
                                        CmsXmlLanguageFile lang)
                                 throws CmsException
Help method used to fill the vectors returned to CmsSelectBox with constant values.

Parameters:
names - Vector to be filled with the appropriate values in this method.
values - Vector to be filled with the appropriate values in this method.
lang - reference to the currently valid language file
CmsException

getFonts

public Integer getFonts(CmsObject cms,
                        CmsXmlLanguageFile lang,
                        Vector names,
                        Vector values,
                        Hashtable parameters)
                 throws CmsException
Gets all fonts available in the WYSIWYG editor. The given vectors names and values will be filled with the appropriate information to be used for building a select box.

Parameters:
cms - CmsObject Object for accessing system resources.
lang - reference to the currently valid language file
names - Vector to be filled with the appropriate values in this method.
values - Vector to be filled with the appropriate values in this method.
parameters - Hashtable containing all user parameters (not used here).
Returns:
Index representing the user's current workplace view in the vectors.
Throws:
CmsException

getKey

public Object getKey(CmsObject cms,
                     String templateFile,
                     Hashtable parameters,
                     String templateSelector)
Gets the key that should be used to cache the results of this template class.

Specified by:
getKey in interface I_CmsTemplate
Overrides:
getKey in class CmsXmlTemplate
Parameters:
cms - CmsObject Object for accessing system resources
templateFile - Filename of the template file
parameters - Hashtable with all template class parameters.
templateSelector - template section that should be processed.
Returns:
key that can be used for caching

getLastUrl

protected String getLastUrl(CmsObject cms,
                            Hashtable parameters)
Get the currently valid lasturl parameter that can be used for redirecting to the previous workplace screen.

Parameters:
cms - Cms object for accessing system resources.
parameters - User parameters.
Returns:
lasturl parameter.

getOwnTemplateFile

public CmsXmlTemplateFile getOwnTemplateFile(CmsObject cms,
                                             String templateFile,
                                             String elementName,
                                             Hashtable parameters,
                                             String templateSelector)
                                      throws CmsException
Reads in the template file and starts the XML parser for the expected content type CmsXmlWpTemplateFile

Specified by:
getOwnTemplateFile in interface I_CmsXmlTemplate
Overrides:
getOwnTemplateFile in class CmsXmlTemplate
Parameters:
cms - 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.
CmsException

isAdmin

public Boolean isAdmin(CmsObject cms,
                       CmsXmlLanguageFile lang,
                       Hashtable parameters)
                throws CmsException
Checks if the current user is administrator.

This method is used by workplace icons to decide whether the icon should be activated or not. Icons will use this method if the attribute method="isAdministrator" is defined in the <ICON> tag.

Parameters:
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).
Returns:
true if the current user is in the Administrators Group, false otherwise.
Throws:
CmsException - if there were errors while accessing project data.

isAdminFalse

public Boolean isAdminFalse(CmsObject cms,
                            CmsXmlLanguageFile lang,
                            Hashtable parameters)
                     throws CmsException
Same as above, only that this returns always 'false'. Can be used to quickly deactivate unwanted icons on the workplace even for then admin by just adding "False" to isAdmin call in file property.

CmsException

isTheAdminUser

public Boolean isTheAdminUser(CmsObject cms,
                              CmsXmlLanguageFile lang,
                              Hashtable parameters)
                       throws CmsException
Checks if the current user is the administrator Admin.

This method is used by workplace icons to decide whether the icon should be activated or not.

Parameters:
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).
Returns:
true if the current user is the user Admin, false otherwise.
Throws:
CmsException - if there were errors while accessing project data.

isCacheable

public boolean isCacheable(CmsObject cms,
                           String templateFile,
                           String elementName,
                           Hashtable parameters,
                           String templateSelector)
Indicates if the results of this class are cacheable.

Specified by:
isCacheable in interface I_CmsTemplate
Overrides:
isCacheable in class A_CmsTemplate
Parameters:
cms - 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.
Returns:
true if cacheable, false otherwise.

getCacheDirectives

public CmsCacheDirectives getCacheDirectives(CmsObject cms,
                                             String templateFile,
                                             String elementName,
                                             Hashtable parameters,
                                             String templateSelector)
gets the caching information from the current template class.

Overrides:
getCacheDirectives in class CmsXmlTemplate
Parameters:
cms - 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.
Returns:
true if this class may stream it's results, false otherwise.

isStreamable

public boolean isStreamable(CmsObject cms,
                            String templateFile,
                            String elementName,
                            Hashtable parameters,
                            String templateSelector)
Indicates if the current template class is able to stream it's results directly to the response oputput stream.

Classes must not set this feature, if they might throw special exception that cause HTTP errors (e.g. 404/Not Found), or if they might send HTTP redirects.

If a class sets this feature, it has to check the isStreaming() property of the RequestContext. If this is set to true the results must be streamed directly to the output stream. If it is false the results must not be streamed.

Complex classes that are able top include other subtemplates have to check the streaming ability of their subclasses here!

Specified by:
isStreamable in interface I_CmsTemplate
Overrides:
isStreamable in class CmsXmlTemplate
Parameters:
cms - 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.
Returns:
true if this class may stream it's results, false otherwise.

isNotOnlineProject

public Boolean isNotOnlineProject(CmsObject cms,
                                  CmsXmlLanguageFile lang,
                                  Hashtable parameters)
                           throws CmsException
Checks if the current project is not the "Online" project.

This method is used by workplace icons to decide whether the icon should be activated or not. Icons will use this method if the attribute method="isNotOnlineProject" is defined in the <ICON> tag.

Parameters:
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).
Returns:
true if the current project is the online project, false otherwise.
Throws:
CmsException - if there were errors while accessing project data.

isOnlineProject

public Boolean isOnlineProject(CmsObject cms,
                               CmsXmlLanguageFile lang,
                               Hashtable parameters)
                        throws CmsException
Checks if the current project is the "Online" project.

This method is used by workplace icons to decide whether the icon should be activated or not. Icons will use this method if the attribute method="isOnlineProject" is defined in the <ICON> tag.

Parameters:
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).
Returns:
true if the current project is the online project, false otherwise.
Throws:
CmsException - if there were errors while accessing project data.

isProjectManager

public Boolean isProjectManager(CmsObject cms,
                                CmsXmlLanguageFile lang,
                                Hashtable parameters)
                         throws CmsException
Checks if the current user is Project manager.

This method is used by workplace icons to decide whether the icon should be activated or not. Icons will use this method if the attribute method="isProjectManager" is defined in the <ICON> tag.

Parameters:
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).
Returns:
true if the current project is the online project, false otherwise.
Throws:
CmsException - if there were errors while accessing project data.

resourcesUri

public Object resourcesUri(CmsObject cms,
                           String tagcontent,
                           A_CmsXmlContent doc,
                           Object userObj)
                    throws CmsException
User method to generate an URI for the system resources folder.

All pictures and style sheets should reside in the docroot of the webserver for performance reasons. This folder can be mounted into the OpenCms system to make it accessible for the OpenCms explorer.

The path to the docroot can be set in the workplace ini.

In any workplace template file, this method can be invoked by <METHOD name="resourcesUri">PictureName</METHOD>.

Warning: Using this method, only workplace resources, usually residing in the /system/workplace/resources folder, can be accessed.

Parameters:
cms - CmsObject Object for accessing system resources.
tagcontent - Unused in this special case of a user method. Can be ignored.
doc - Reference to the A_CmsXmlContent object of the initiating XML document (not used here).
userObj - Hashtable with parameters (not used here).
Returns:
String with the resources URI
Throws:
CmsException

scriptsUri

public Object scriptsUri(CmsObject cms,
                         String tagcontent,
                         A_CmsXmlContent doc,
                         Object userObj)
                  throws CmsException
User method to generate an URI for the system scripts folder.

Parameters:
cms - CmsObject Object for accessing system resources.
tagcontent - Unused in this special case of a user method. Can be ignored.
doc - Reference to the A_CmsXmlContent object of the initiating XML document (not used here).
userObj - Hashtable with parameters (not used here).
Returns:
String with the scripts URI
Throws:
CmsException

picsUrl

public Object picsUrl(CmsObject cms,
                      String tagcontent,
                      A_CmsXmlContent doc,
                      Object userObj)
               throws CmsException
Deprecated. use resourcesUri(CmsObject, String, A_CmsXmlContent, Object) instead

CmsException

startProcessing

protected byte[] startProcessing(CmsObject cms,
                                 CmsXmlTemplateFile xmlTemplateDocument,
                                 String elementName,
                                 Hashtable parameters,
                                 String templateSelector)
                          throws CmsException
Starts the processing of the given template file by calling the getProcessedTemplateContent() method of the content defintition of the corresponding content type.

Any exceptions thrown while processing the template will be caught, printed and and thrown again.

Overrides:
startProcessing in class CmsXmlTemplate
Parameters:
cms - CmsObject Object for accessing system resources.
xmlTemplateDocument - XML parsed document of the content type "XML template file" or any derived content type.
elementName - Element name of this template in our parent template.
parameters - Hashtable with all template class parameters.
templateSelector - template section that should be processed.
Returns:
Content of the template and all subtemplates.
Throws:
CmsException

checkPort

protected boolean checkPort(CmsObject cms)
Checks, if the request is running on the correct port. With the opencms.properties the access to the workplace can be limitted to a user defined port. With this feature a firewall can block all outside requests to this port with the result the workplace is only available in the local net segment.

Parameters:
cms - the CmsObject to check the port with.

userName

public Object userName(CmsObject cms,
                       String tagcontent,
                       A_CmsXmlContent doc,
                       Object userObj)
                throws CmsException
User method to get the name of the user.

Parameters:
cms - CmsObject Object for accessing system resources.
tagcontent - Unused in this special case of a user method. Can be ignored.
doc - Reference to the A_CmsXmlContent object of the initiating XLM document (not used here).
userObj - Hashtable with parameters (not used here).
Returns:
String with the pics URL.
Throws:
CmsException