001: /******************************************************************************
002: * JBoss, a division of Red Hat *
003: * Copyright 2006, Red Hat Middleware, LLC, and individual *
004: * contributors as indicated by the @authors tag. See the *
005: * copyright.txt in the distribution for a full listing of *
006: * individual contributors. *
007: * *
008: * This is free software; you can redistribute it and/or modify it *
009: * under the terms of the GNU Lesser General Public License as *
010: * published by the Free Software Foundation; either version 2.1 of *
011: * the License, or (at your option) any later version. *
012: * *
013: * This software is distributed in the hope that it will be useful, *
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
016: * Lesser General Public License for more details. *
017: * *
018: * You should have received a copy of the GNU Lesser General Public *
019: * License along with this software; if not, write to the Free *
020: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
021: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
022: ******************************************************************************/package org.jboss.portal.core.model.portal.control;
023:
024: /**
025: * Defines the constant for the control framework.
026: *
027: * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
028: * @version $Revision: 8786 $
029: */
030: public class ControlConstants {
031:
032: private ControlConstants() {
033: }
034:
035: /** . */
036: public static final String PAGE_ACCESS_DENIED_CONTROL_KEY = "control.page.access_denied";
037:
038: /** . */
039: public static final String PAGE_UNAVAILABLE_CONTROL_KEY = "control.page.unavailable";
040:
041: /** . */
042: public static final String PAGE_ERROR_CONTROL_KEY = "control.page.error";
043:
044: /** . */
045: public static final String PAGE_INTERNAL_ERROR_CONTROL_KEY = "control.page.internal_error";
046:
047: /** . */
048: public static final String PAGE_NOT_FOUND_CONTROL_KEY = "control.page.not_found";
049:
050: /** . */
051: public static final String PAGE_RESOURCE_URI_CONTROL_KEY = "control.page.resource_uri";
052:
053: /** . */
054: public static final String PORTAL_ACCESS_DENIED_CONTROL_KEY = "control.portal.access_denied";
055:
056: /** . */
057: public static final String PORTAL_UNAVAILABLE_CONTROL_KEY = "control.portal.unavailable";
058:
059: /** . */
060: public static final String PORTAL_ERROR_CONTROL_KEY = "control.portal.error";
061:
062: /** . */
063: public static final String PORTAL_INTERNAL_ERROR_CONTROL_KEY = "control.portal.internal_error";
064:
065: /** . */
066: public static final String PORTAL_NOT_FOUND_CONTROL_KEY = "control.portal.not_found";
067:
068: /** . */
069: public static final String PORTAL_RESOURCE_URI_CONTROL_KEY = "control.portal.resource_uri";
070:
071: /** . */
072: public static final String HIDE_CONTROL_VALUE = "hide";
073:
074: /** . */
075: public static final String IGNORE_CONTROL_VALUE = "ignore";
076:
077: /** . */
078: public static final String JSP_CONTROL_VALUE = "jsp";
079:
080: /** . */
081: public static final String ERROR_TYPE_ATTRIBUTE = "org.jboss.portal.control.ERROR_TYPE";
082:
083: /** . */
084: public static final String CAUSE_ATTRIBUTE = "org.jboss.portal.control.CAUSE";
085:
086: /** . */
087: public static final String MESSAGE_ATTRIBUTE = "org.jboss.portal.control.MESSAGE";
088:
089: /** . */
090: public static final String ACCESS_DENIED_ERROR_TYPE = "ACCESS_DENIED";
091:
092: /** . */
093: public static final String UNAVAILABLE_ERROR_TYPE = "UNAVAILABLE";
094:
095: /** . */
096: public static final String ERROR_ERROR_TYPE = "ERROR";
097:
098: /** . */
099: public static final String INTERNAL_ERROR_ERROR_TYPE = "INTERNAL_ERROR";
100:
101: /** . */
102: public static final String NOT_FOUND_ERROR_TYPE = "NOT_FOUND";
103:
104: }
|