001: /*
002: * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
003: *
004: * This file is part of TransferCM.
005: *
006: * TransferCM is free software; you can redistribute it and/or modify it under the
007: * terms of the GNU General Public License as published by the Free Software
008: * Foundation; either version 2 of the License, or (at your option) any later
009: * version.
010: *
011: * TransferCM is distributed in the hope that it will be useful, but WITHOUT ANY
012: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
013: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
014: * details.
015: *
016: * You should have received a copy of the GNU General Public License along with
017: * TransferCM; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
018: * Fifth Floor, Boston, MA 02110-1301 USA
019: */
020:
021: package com.methodhead.shim;
022:
023: public class ShimGlobals {
024:
025: // constructors /////////////////////////////////////////////////////////////
026:
027: // constants ////////////////////////////////////////////////////////////////
028:
029: /**
030: * Key used to store the panel map in the request.
031: */
032: public static final String PANELMAP_KEY = "com.methodhead.shim.PANELMAP_KEY";
033:
034: /**
035: * Key used to store the system mode in the session.
036: */
037: public static final String MODE_KEY = "com.methodhead.shim.MODE_KEY";
038:
039: /**
040: * Key used to store page in the request.
041: */
042: public static final String PAGE_KEY = "com.methodhead.shim.PAGE_KEY";
043:
044: /**
045: * Key used to store the menu in the request
046: */
047: public static final String MENU_KEY = "com.methodhead.shim.MENU_KEY";
048:
049: /**
050: * Key used to store page id in the request.
051: */
052: public static final String PAGEID_KEY = "com.methodhead.shim.PAGEID_KEY";
053:
054: /**
055: * Key used to store page alias in the request.
056: */
057: public static final String PAGEALIAS_KEY = "com.methodhead.shim.PAGEALIAS_KEY";
058:
059: /**
060: * Request parameter indicating a page should be previewed.
061: */
062: public static final String PREVIEW_KEY = "preview";
063:
064: /**
065: * The default module to create when none is specified in a panel tag.
066: */
067: public static final String DEFAULT_MODULE = "com.methodhead.shim.TextModule";
068:
069: /**
070: * Edit mode.
071: */
072: public static final String MODE_EDIT = "EDIT";
073:
074: /**
075: * Rich edit mode.
076: */
077: public static final String MODE_RICHEDIT = "RICHEDIT";
078:
079: /**
080: * Request attribute storing the panel being edited.
081: */
082: public static final String EDITPANEL_KEY = "com.methodhead.shim.EDITPANEL_KEY";
083:
084: /**
085: * Application attribute storing the map of site maps.
086: */
087: public static final String SITEMAPMAP_KEY = "com.methodhead.shim.SITEMAPMAP_KEY";
088:
089: /**
090: * Session attribute storing the folding tree for the site map.
091: */
092: public static final String SITEMAPTREE_KEY = "com.methodhead.shim.SITEMAPTREE_KEY";
093:
094: /**
095: * Request attribute storing the current link.
096: */
097: public static final String CURRENTLINK_KEY = "com.methodhead.shim.CURRENTLINK_KEY";
098:
099: /**
100: * The alias of the page displayed when a page cannot be found.
101: */
102: public static final String PAGENOTFOUNDALIAS = "pagenotfound";
103:
104: /**
105: * A property defining styles that may be inserted in the editor. Property
106: * should be a comma-separated list of style-name:css-class-name pairs (e.g.,
107: * Quotation:quote).
108: */
109: public static final String PROPERTY_STYLES = "com.methodhead.shim.Styles";
110:
111: // classes //////////////////////////////////////////////////////////////////
112:
113: // methods //////////////////////////////////////////////////////////////////
114:
115: // properties ///////////////////////////////////////////////////////////////
116:
117: // attributes ///////////////////////////////////////////////////////////////
118: }
|