⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmsworkplacedefault.java

📁 cms是开源的框架
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
/*
* File   : $Source: /usr/local/cvs/opencms/src-modules/com/opencms/workplace/CmsWorkplaceDefault.java,v $
* Date   : $Date: 2005/06/27 23:22:07 $
* Version: $Revision: 1.5 $
*
* This library is part of OpenCms -
* the Open Source Content Mananagement System
*
* Copyright (C) 2001  The OpenCms Group
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
*
* For further information about OpenCms, please see the
* OpenCms Website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/


package com.opencms.workplace;

import org.opencms.db.CmsUserSettings;
import org.opencms.file.CmsObject;
import org.opencms.file.CmsRequestContext;
import org.opencms.file.CmsUser;
import org.opencms.i18n.CmsEncoder;
import org.opencms.importexport.CmsCompatibleCheck;
import org.opencms.main.CmsException;
import org.opencms.main.OpenCms;
import org.opencms.workplace.CmsWorkplace;
import org.opencms.workplace.editors.CmsDefaultPageEditor;
import org.opencms.workplace.explorer.CmsTree;

import com.opencms.core.I_CmsConstants;
import com.opencms.core.I_CmsSession;
import com.opencms.legacy.CmsLegacyException;
import com.opencms.legacy.CmsXmlTemplateLoader;
import com.opencms.template.A_CmsXmlContent;
import com.opencms.template.CmsCacheDirectives;
import com.opencms.template.CmsXmlTemplate;
import com.opencms.template.CmsXmlTemplateFile;

import java.util.Enumeration;
import java.util.Hashtable;
import java.util.StringTokenizer;
import java.util.Vector;

/**
 * Common template class for displaying OpenCms workplace screens.
 * <P>
 * Reads template files of the content type <code>CmsXmlWpTemplateFile</code>.
 * <P>
 * Most special workplace classes may extend this class.
 *
 * @author Alexander Lucas
 * @version $Revision: 1.5 $ $Date: 2005/06/27 23:22:07 $
 * @see com.opencms.workplace.CmsXmlWpTemplateFile
 * 
 * @deprecated Will not be supported past the OpenCms 6 release.
 */

public class CmsWorkplaceDefault extends CmsXmlTemplate implements I_CmsConstants {

    /** URL of the pics folder in the webserver's docroot */
    private static String m_resourcesUri = null;

    /** URL of the pics folder in the webserver's docroot */
    private static String m_scriptsUri = null;

    /** Reference to the config file */
    private CmsXmlWpConfigFile m_configFile = null;


    /** classes of the different option values for editor view select boxes. */
    protected String[] C_SELECTBOX_EDITORVIEWS_CLASSES =  {
        "com.opencms.workplace.CmsEditor", "com.opencms.workplace.CmsEditor"
    };

    /** The filename to the backbuttontemplate. */
    public static final String C_ADMIN_BACK_BUTTON = "adminbackbuttontemplate";

    /** Name of the template containing messagebox definitions. */
    public static final String C_BOXTEMPLATE = "messageboxTemplate";

    /** Action for the button. */
    public static final String C_BUTTON_ACTION = "action";

    /** Alt text of the button. */
    public static final String C_BUTTON_ALT = "alt";

    /** href text of the button. */
    public static final String C_BUTTON_HREF = "href";

    /** method that should be used for deciding to (de)activate the button. */
    public static final String C_BUTTON_METHOD = "method";

    /** Name of the button. */
    public static final String C_BUTTON_NAME = "name";

    /** Style of the button. */
    public static final String C_BUTTON_STYLE = "class";

    /** Value of the button. */
    public static final String C_BUTTON_VALUE = "value";

    /** width of the button. */
    public static final String C_BUTTON_WIDTH = "width";

    /** Name of the template containing button definitions. */
    public static final String C_BUTTONTEMPLATE = "ButtonTemplate";

    /** The filename to the projectlisttemplate. */
    public static final String C_CONTEXTMENUE_TEMPLATEFILE = "contexttemplate";

    /** Number of images to be shown per page in the download browser. */
    public static final int C_DOWNBROWSER_MAXENTRIES = 30;

    /** Exit action. */
    public static final String C_EDIT_ACTION_EXIT = "exit";

    /** Save action. */
    public static final String C_EDIT_ACTION_SAVE = "save";

    /** Save &amp; Exit action. */
    public static final String C_EDIT_ACTION_SAVEEXIT = "saveexit";

    /** Link of the error box. */
    public static final String C_ERROR_LINK = "ref";

    /** Message of the error box. */
    public static final String C_ERROR_MESSAGE = "message";

    /** Button label of the error box. */
    public static final String C_ERROR_MSG_BUTTON = "msgbutton";

    /** Button label of the error box. */
    public static final String C_ERROR_MSG_DETAILS = "details";

    /** Static text in the error box. */
    public static final String C_ERROR_MSG_REASON = "msgreason";

    /** Reason of the error box. */
    public static final String C_ERROR_REASON = "reason";

    /** Suggestion of the error box. */
    public static final String C_ERROR_SUGGESTION = "suggestion";

    /** Title of the error box. */
    public static final String C_ERROR_TITLE = "title";

    /** Name of the template containing error field definitions. */
    public static final String C_ERRORTEMPLATE = "errorTemplate";

    /** The access value column. */
    public static final String C_FILELIST_ACCESS_VALUE = "ACCESS_VALUE";

    /** The changed value column. */
    public static final String C_FILELIST_CHANGED_VALUE = "CHANGED_VALUE";

    /** The stylesheet class to be used for a file or folder entry. */
    public static final String C_FILELIST_CLASS_VALUE = "OUTPUT_CLASS";

    /** The access column. */
    public static final String C_FILELIST_COLUMN_ACCESS = "COLUMN_ACCESS";

    /** The changed column. */
    public static final String C_FILELIST_COLUMN_CHANGED = "COLUMN_CHANGED";

    /** The customizable column. */
    public static final String C_FILELIST_COLUMN_CUSTOMIZED = "COLUMN_CUSTOMIZED";

    /** The customizable value column. */
    public static final String C_FILELIST_COLUMN_CUSTOMIZED_VALUE = "COLUMN_CUSTOMIZED_VALUE";

    /** The group column. */
    public static final String C_FILELIST_COLUMN_GROUP = "COLUMN_GROUP";

    /** The locked column. */
    public static final String C_FILELIST_COLUMN_LOCKED = "COLUMN_LOCKED";

    /** The name column. */
    public static final String C_FILELIST_COLUMN_NAME = "COLUMN_NAME";

    /** The owner column. */
    public static final String C_FILELIST_COLUMN_OWNER = "COLUMN_OWNER";

    /** The size column. */
    public static final String C_FILELIST_COLUMN_SIZE = "COLUMN_SIZE";

    /** The state column. */
    public static final String C_FILELIST_COLUMN_STATE = "COLUMN_STATE";

    /** The title column. */
    public static final String C_FILELIST_COLUMN_TITLE = "COLUMN_TITLE";

    /** The type column. */
    public static final String C_FILELIST_COLUMN_TYPE = "COLUMN_TYPE";

    /** customized template value for the file list. */
    public static final String C_FILELIST_CUSTOMTEMPLATE = "customtemplate";

    /** Flag for displaying the group column. */
    public static final int C_FILELIST_GROUP = 64;

    /** The group value column. */
    public static final String C_FILELIST_GROUP_VALUE = "GROUP_VALUE";

    /** The icon value column. */
    public static final String C_FILELIST_ICON_VALUE = "ICON_VALUE";

    /** The link for a file or folder entry. */
    public static final String C_FILELIST_LINK_VALUE = "LINK_VALUE";

    /** The lock value column. */
    public static final String C_FILELIST_LOCK_VALUE = "LOCK_VALUE";

    /** The lockedby value column. */
    public static final String C_FILELIST_LOCKED_VALUE = "LOCKED_VALUE";

    /** The name value column. */
    public static final String C_FILELIST_NAME_VALUE = "NAME_VALUE";

    /** The owner value column. */
    public static final String C_FILELIST_OWNER_VALUE = "OWNER_VALUE";

    /** The size value column. */
    public static final String C_FILELIST_SIZE_VALUE = "SIZE_VALUE";

    /** The state value column. */
    public static final String C_FILELIST_STATE_VALUE = "STATE_VALUE";

    /** The suffix for file list values. */
    public static final String C_FILELIST_SUFFIX_VALUE = "_VALUE";

    /** The title value column. */
    public static final String C_FILELIST_TITLE_VALUE = "TITLE_VALUE";

    /** The type value column. */
    public static final String C_FILELIST_TYPE_VALUE = "TYPE_VALUE";

    /** template value for the file list. */
    public static final String C_FILELIST_TEMPLATE = "template";

    /** Action for the icon. */
    public static final String C_ICON_ACTION = "action";

    /** method that should be used for deciding to (de)activate the icon. */
    public static final String C_ICON_ACTIVE_METHOD = "activemethod";

    /** The default icon. */
    public static final String C_ICON_DEFAULT = "ic_file_othertype.gif";

    /** The extension for the icon images. */
    public static final String C_ICON_EXTENSION = ".gif";

    /** href text of the icon. */
    public static final String C_ICON_HREF = "href";

    /** Label of the icon. */
    public static final String C_ICON_LABEL = "label";

    /** Name of the icon. */
    public static final String C_ICON_NAME = "name";

    /** The prefix for the icon images. */
    public static final String C_ICON_PREFIX = "ic_file_";

    /** href target of the icon. */
    public static final String C_ICON_TARGET = "target";

    /** The filename to the icontemplate. */
    public static final String C_ICON_TEMPLATEFILE = "icontemplate";

    /** method that should be used for deciding whether the icon is visible. */
    public static final String C_ICON_VISIBLE_METHOD = "visiblemethod";

    /**  Action of the input field. */
    public static final String C_INPUT_ACTION = "action";

    /** Style class of the input field. */
    public static final String C_INPUT_CLASS = "class";

    /**  Length of the input field. */
    public static final String C_INPUT_LENGTH = "length";

    /**  Method of the input field. */
    public static final String C_INPUT_METHOD = "method";

    /** Name of the input field. */
    public static final String C_INPUT_NAME = "name";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -