001: /**
002: * $Id: SAPPortletConstants.java,v 1.9 2005/10/19 10:25:58 ks161616 Exp $
003: * Copyright 2005 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: */package com.sun.portal.sapportlet;
014:
015: /**
016: * This interface declares all constants used by the SAP portlets
017: *
018: * @author nk137934
019: */
020:
021: public interface SAPPortletConstants {
022:
023: public static final String LOGGER_NAMESPACE = "com.sun.portal.sapportlet";
024: /* Config related constants */
025:
026: public static final String SAP_CONFIG_FILE_NAME = "sapconfig";
027: public static final String CONFIG_ENDPOINT_HOST = "sap.endpointHost";
028: public static final String CONFIG_ENDPOINT_PORT = "sap.endpointPort";
029: public static final String CONFIG_USERNAME = "sap.userName";
030: public static final String CONFIG_PASSWORD = "sap.userPass";
031: public static final String CONFIG_CLIENTID = "sap.clientID";
032:
033: /* Constants used by the SAPCustSearchPortlet */
034: // This is the default search string used to search customers
035: public static final String DEFAULT_SEARCH_STRING = "Sun*";
036: // Constant to identify the "Customer Name" field
037: public static final String QUERY_ON_NAME = "NAME";
038: // Constant to identify the "Customer ID" field
039: public static final String QUERY_ON_ID = "ID";
040:
041: /* Constants used by the SAPSalesOrderPortlet */
042:
043: // Constant to identify the "Purchase Number" field
044: public static final String QUERY_ON_PURCHASE = "PURNO";
045: // Constant to identify the "Item Number" field
046: public static final String QUERY_ON_ITEM = "ITEMNO";
047:
048: /* Constants used by the SAPUserConfig screen */
049:
050: /* Constants to define JSP page names */
051: public static final String SEARCH_RESULTS_PAGE = "/jsps/SAPSearchResult.jsp";
052: public static final String SALES_ORDER_PAGE = "/jsps/SAPSalesOrderResult.jsp";
053: public static final String EMP_DETAILS_PAGE = "/jsps/SAPEmpDetails.jsp";
054: public static final String EMP_EDIT_PAGE = "/jsps/SAPEmpEdit.jsp";
055: public static final String EMP_TIME_PAGE = "/jsps/SAPTime.jsp";
056: public static final String USER_CONFIG_PAGE = "/jsps/SAPUserConfig.jsp";
057: public static final String DIRECT_REPORTS_PAGE = "/jsps/SAPDirectReports.jsp";
058: public static final String USER_CONFIG_VIEW_PAGE = "/jsps/SAPUserConfigView.jsp";
059: public static final String USER_NO_CONFIG_PAGE = "/jsps/SAPUserNoConfig.jsp";
060: public static final String SAP_CONFIG_ERROR_PAGE = "/jsps/SAPConfigError.jsp";
061: public static final String NAME_FINDER_PAGE = "/jsps/SAPNamefinder.jsp";
062: public static final String USER_CONFIG_REDIRECT = "/jsps/SAPUserConfigRedirect.jsp";
063:
064: // Help pages
065: public static final String CUST_SEARCH_HELP_PAGE = "/jsps/help/SAPCustomerSearchHelp.jsp";
066: public static final String SALES_ORDER_HELP_PAGE = "/jsps/help/SAPSalesOrderHelp.jsp";
067: public static final String EMPLOYEE_DETAILS_HELP_PAGE = "/jsps/help/SAPEmployeeDetailsHelp.jsp";
068: public static final String ABSENCE_HELP_PAGE = "/jsps/help/SAPTimeHelp.jsp";
069: public static final String MANAGER_VIEW_HELP_PAGE = "/jsps/help/SAPManagerViewHelp.jsp";
070: public static final String NAMEFINDER_HELP_PAGE = "/jsps/help/SAPNamefinderHelp.jsp";
071: public static final String USERCONFIG_HELP_PAGE = "/jsps/help/SAPUserConfigHelp.jsp";
072:
073: /* Variable stored in Session */
074: public static final String SESSION_CUSTOMERS = "customers";
075: public static final String SESSION_QUERY_STRING = "queryString";
076: public static final String SESSION_QUERY_FIELD = "queryField";
077: public static final String SESSION_SELECTED_CUST = "selected_cust";
078: public static final String SESSION_EMPLOYEE = "employee";
079: public static final String SESSION_SO_SEARCH_STRING = "so_search_string";
080: public static final String SESSION_USERCONFIG = "userconfig";
081: public static final String SESSION_EMPMANAGER = "empmanager";
082: public static final String SESSION_CUSTMANAGER = "custmanager";
083: public static final String SESSION_SOMANAGER = "somanager";
084: public static final String SESSION_TIMEMANAGER = "timemanager";
085: public static final String SESSION_DRMANAGER = "userconfig";
086: public static final String SESSION_ABSENCE_RECORDS = "absrecords";
087: public static final String SESSION_NAMEMANAGER = "namemanager";
088: public static final String SESSION_NAMEFINDER_QUERY = "namequery";
089: public static final String SESSION_NAMEFINDER_RECORDS = "namerecords";
090: public static final String SESSION_STATE = "processed";
091: public static final String SESSION_STATE_NO_RECORDS = "norecords";
092:
093: /* Constants for render parameters*/
094: public static final String RENDER_SALESORDER_SEARCH = "sosearch";
095:
096: /*Field names in HTML*/
097: public static final String HTML_FIELD_SEARCH_TERM = "SearchTerm";
098: public static final String HTML_FIELD_QUERY_FIELD = "Field";
099: public static final String HTML_FIELD_OPERATION = "operation";
100: public static final String HTML_FIELD_SEL_CUST = "sel_cust";
101: public static final String HTML_FIELD_SO_SEARCH = "SOSearch";
102: public static final String HTML_FIELD_USER_NAME = "username";
103: public static final String HTML_FIELD_USER_PASS = "password";
104: public static final String HTML_FIELD_EMP_NO = "empno";
105: public static final String HTML_FIELD_PAGENUMBER = "pageno";
106: public static final String HTML_FIELD_DIRECTION = "direction";
107:
108: public static final String HTML_FIELD_SORT_FIELD = "sort_field";
109: public static final String HTML_FIELD_SORT_ORDER = "sort_order";
110:
111: //html fields for namefinder portlet
112: public static final String HTML_FIELD_FIRST_NAME = "namefinder_FirstName";
113: public static final String HTML_FIELD_LAST_NAME = "namefinder_LastName";
114: public static final String HTML_FIELD_EMP_NUM = "namefinder_EmpNum";
115: public static final String HTML_FIELD_ROOM_NUM = "namefinder_RoomNum";
116: public static final String HTML_FIELD_BUILD_NUM = "namefinder_BuildingNum";
117: public static final String HTML_FIELD_EXTN = "namefinder_Extension";
118:
119: /* Possible iteration value */
120: public static final int DIRECTION_FIRST = -100;
121: public static final int DIRECTION_PREV = -1;
122: public static final int DIRECTION_NEXT = 1;
123: public static final int DIRECTION_LAST = 100;
124:
125: /* Possible sorting actions */
126: public static final String SORT_ORDER_ASC = "ASC";
127: public static final String SORT_ORDER_DSC = "DSC";
128:
129: /* Possible sort fields */
130: public static final String CUST_NUMBER = "CUST_NUM";
131: public static final String CUST_NAME = "CUST_NAME";
132: public static final String CUST_CITY = "CUST_CITY";
133:
134: public static final String EMP_NUM = "EMP_NUM";
135: public static final String FIRST_NAME = "FIRST_NAME";
136: public static final String LAST_NAME = "LAST_NAME";
137: public static final String ROOM_NUMBER = "ROOM_NUMBER";
138: public static final String BUILDING_NUMBER = "BUILDING_NUMBER";
139: public static final String EXTENSION = "EXTENSION";
140: public static final String EMAIL = "EMAIL";
141: public static final String ROLE = "ROLE";
142: public static final String ORG_UNIT = "ORG_UNIT";
143:
144: public static final String ABS_TYPE = "ABS_TYPE";
145: public static final String ABS_BEGIN = "ABS_BEGIN";
146: public static final String ABS_END = "ABS_END";
147: public static final String ABS_DAYS = "ABS_DAYS";
148: public static final String ABS_HOURS = "ABS_HOURS";
149:
150: public static final String DR_EMPNO = "DR_EMPNO";
151: public static final String DR_FULLNAME = "DR_FULLNAME";
152: public static final String DR_SHORTNAME = "DR_SHORTNAME";
153: public static final String DR_BEGINDATE = "DR_BEGINDATE";
154:
155: public static final String SO_PUR_NUM = "SO_PUR_NUM";
156: public static final String SO_STATUS = "SO_STATUS";
157:
158: /*Possible action values*/
159: public static final String OPERATION_SEARCH = "SEARCH";
160: public static final String OPERATION_SELECT = "SELECT";
161: public static final String OPERATION_ITERATE = "ITER";
162: public static final String OPERATION_SORT = "SORT";
163: public static final String OPERATION_CONFIGURE = "CONFIGURE";
164: public static final String OPERATION_RESET = "RESET";
165: public static final String OPERATION_CANCEL = "CANCEL";
166:
167: /* Constants used by the SAPSalesOrderPortlet */
168: public static final String SESSION_SALESORDERS = "salesorder";
169: public static final String SESSION_DIRECT_REPORTS = "directreports";
170: public static final String REQUEST_SALESORDERS = "req.salesorder";
171:
172: public static final String TIME_INTERVAL_HIGH = "9999-12-31";
173: public static final String TIME_INTERVAL_LOW = "1800-01-01";
174:
175: public static final String PREFS_USERNAME = "username";
176: public static final String PREFS_EMPNUMBR = "empnumber";
177:
178: /* portlet parameters */
179: public static final String PARAM_CHANGE = "CHANGE";
180: public static final String PARAM_AUTH = "AUTH";
181: public static final String PARAM_AUTH_FAILED = "FAILED";
182:
183: /* SSO Adpater Parameters */
184: public static final String HTTPREQ_ATTR_NAME = "javax.portlet.portletc.httpServletRequest";
185: public static final String SAP_SSOA_CONFIG_NAME = "sap.ssoa.configname";
186: public static final String SAP_SSOA_CHANNEL_NAME = "sap.ssoa.channelname";
187: }
|