001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036: /*
037: * JBIConstants.java
038: */
039: package com.sun.jbi.jsf.util;
040:
041: //import com.sun.jbi.jsf.util.JBIConstants;
042:
043: /**
044: * Contstants related to the admin-gui implementation
045: *
046: * @author Sun Microsystems Inc.
047: */
048:
049: public final class SharedConstants {
050:
051: /**
052: * deployment, component, library, or target name
053: */
054: public static final String KEY_NAME = "name";
055: // not I18n
056: /**
057: * Description of the Field
058: */
059: public static final String KEY_TYPE = "type";
060: // not I18n
061: // public static final String STATE_SHUT_DOWN = "Shutdown"; // not I18n
062: //public static final String STATE_STARTED = "Started"; // not I18n
063: //public static final String STATE_STOPPED = "Stopped"; // not I18n
064:
065: /**
066: * Binding Engine type filtering on the list components page
067: */
068: public static final String DROP_DOWN_TYPE_SHOW_ALL = "Show All";
069: // not I18n
070: /**
071: * Description of the Field
072: */
073: public static final String DROP_DOWN_TYPE_BINDING = "Binding";
074: // not I18n
075: /**
076: * Description of the Field
077: */
078: public static final String DROP_DOWN_TYPE_ENGINE = "Engine";
079: // not I18n
080:
081: /**
082: * Table Type names. Values assigned to the session variable
083: * sharedTableType
084: */
085: public static final String COMPONENT_TABLE_TYPE = "bindingsEngines";
086: /**
087: * Description of the Field
088: */
089: public static final String DEPLOYMENT_TABLE_TYPE = "deployment";
090: /**
091: * Description of the Field
092: */
093: public static final String LIBRARY_TABLE_TYPE = "libraries";
094:
095: /**
096: * Property alert result keys
097: */
098: public static final String SUCCESS_RESULT = "success-result";
099: // not I18n
100: /**
101: * Description of the Field
102: */
103: public static final String FAILURE_RESULT = "failure-result";
104: // not I18n
105: /**
106: * Description of the Field
107: */
108: public static final String WARNING_RESULT = "warning-result";
109: // not I18n
110: /**
111: * Description of the Field
112: */
113: public static final String WARNING_SUMMARY = "warning-summary";
114: // not I18n
115: /**
116: * Description of the Field
117: */
118: public static final String INTERNAL_ERROR = "internal-error";
119: // not I18n
120:
121: /**
122: * Null value constants used when calling JBICommonClient api's
123: */
124: public static final String NO_STATE_CHECK = null;
125: // not I18n
126: /**
127: * Description of the Field
128: */
129: public static final String NO_LIBRARY_CHECK = null;
130: // not I18n
131: /**
132: * Description of the Field
133: */
134: public static final String NO_COMPONENT_CHECK = null;
135: // not I18n
136: /**
137: * Description of the Field
138: */
139: public static final String NO_DEPLOYMENT_CHECK = null;
140: // not I18n
141:
142: /**
143: * Used when uninstalling components or undeploying service assemblies
144: */
145: public static final boolean NO_FORCE_DELETE = false;
146: /**
147: * Description of the Field
148: */
149: public static final boolean FORCE_DELETE = true;
150:
151: /**
152: * Used when editing/creating application variables
153: */
154: public static final String APP_VAR_TYPE_BOOLEAN = "[BOOLEAN]";
155: /**
156: * Description of the Field
157: */
158: public static final String APP_VAR_TYPE_NUMBER = "[NUMBER]";
159: /**
160: * Description of the Field
161: */
162: public static final String APP_VAR_TYPE_PASSWORD = "[PASSWORD]";
163: /**
164: * Description of the Field
165: */
166: public static final String APP_VAR_TYPE_STRING = "[STRING]";
167:
168: /**
169: * prevents instantiation
170: */
171: private SharedConstants() {
172: }
173: }
|