01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: *
04: * Redistribution and use in source and binary forms, with or without
05: * modification, are permitted provided that the following conditions
06: * are met:
07: *
08: * - Redistributions of source code must retain the above copyright
09: * notice, this list of conditions and the following disclaimer.
10: *
11: * - Redistribution in binary form must reproduce the above copyright
12: * notice, this list of conditions and the following disclaimer in
13: * the documentation and/or other materials provided with the
14: * distribution.
15: *
16: * Neither the name of Sun Microsystems, Inc. or the names of
17: * contributors may be used to endorse or promote products derived
18: * from this software without specific prior written permission.
19: *
20: * This software is provided "AS IS," without a warranty of any
21: * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
22: * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
23: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
24: * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
25: * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
26: * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
27: * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
28: * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
29: * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
30: * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
31: * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32: *
33: * You acknowledge that Software is not designed, licensed or intended
34: * for use in the design, construction, operation or maintenance of
35: * any nuclear facility.
36: */
37: package com.sun.portal.siebelportlet.util;
38:
39: public interface SiebelConstants {
40:
41: /* Config Properties */
42: public static final String IWAY_PROPERTY_BUNDLE = "iwayconfig";
43:
44: /* Session Attribute Names */
45: public static final String SESSION_USERCONFIG = "SiebelUserCredentials";
46: public static final String ACCOUNT_SUMMARY_RECORDS = "SiebelAccountSummaryRecords";
47:
48: /* JSP Page Names */
49: public static final String USER_CONFIG_PAGE = "/jsps/SiebelUserConfig.jsp";
50: public static final String USER_CONFIG_VIEW_PAGE = "/jsps/SiebelUserConfigView.jsp";
51: public static final String USER_NO_CONFIG_PAGE = "/jsps/SiebelUserNoConfig.jsp";
52: public static final String Siebel_CONFIG_ERROR_PAGE = "/jsps/SiebelConfigError.jsp";
53: public static final String USER_NO_SSOA_PAGE = "/jsps/SiebelConfigNoSSOA.jsp";
54: /* Defaults */
55: public static final String DEFAULT_SUMMARY_QUERY = "<Name>*</Name>";
56:
57: /*Field names in HTML*/
58: public static final String HTML_FIELD_OPERATION = "operation";
59: public static final String HTML_FIELD_USER_NAME = "username";
60: public static final String HTML_FIELD_USER_PASS = "password";
61:
62: /*Possible action values*/
63: public static final String OPERATION_LOGIN = "LOGIN";
64:
65: /* portlet parameters */
66: public static final String PARAM_CHANGE = "CHANGE";
67:
68: /* SSO Adapter iWay Config Properties */
69: public static final String SSO_SIEBEL_USER = "SiebelUserName";
70: public static final String SSO_SIEBEL_PASSWORD = "SiebelUserPassword";
71: public static final String SSO_SIEBEL_CONFIG_FILE_NAME = "siebelconfig";
72: public static final String SSO_SIEBEL_CONFIG_PREF_NAME = "siebel.ssoa.configname";
73: public static final String SSO_SIEBEL_CHANNEL_PREF_NAME = "siebel.ssoa.channelname";
74: public static final String HTTPREQ_ATTR_NAME = "javax.portlet.portletc.httpServletRequest";
75:
76: /* iWay Config Properties */
77: public static final String IWAY_HOME = "iway.homeDir";
78: public static final String IWAY_CONFIG = "iway.configDir";
79: public static final String IWAY_LOGLEVEL = "iway.logLevel";
80: public static final String IWAY_ADAPTER = "iway.adapterName";
81: public static final String IWAY_TARGET = "iway.targetName";
82: public static final String IWAY_URL = "iway.repositoryURL";
83: public static final String IWAY_USER = "iway.userName";
84: public static final String IWAY_PASSWORD = "iway.userPassword";
85:
86: /* SSO Adapter Status Properties */
87: public static final String SSOA_STATUS = "ssoAdapterStaus";
88: public static final String NO_SSOA_STATUS = "ssoAdapterNotFound";
89: public static final String NO_SSOA_CONFIG_STATUS = "ssoAdapterConfigNotFound";
90: public static final String VALID_SSOA_CONFIG_STATUS = "ssoAdapterConfigIsValid";
91:
92: }
|