View Javadoc

1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.kpme.core.util;
17  
18  import org.kuali.rice.core.api.config.property.ConfigContext;
19  import org.kuali.rice.krad.uif.UifConstants.ConfigProperties;
20  
21  public class HrTestConstants {
22  
23  	public static String BASE_URL = ConfigContext.getCurrentContextConfig().getProperty("application.url");
24  	public static String DOC_NEW_ELEMENT_ID_PREFIX = "document.newMaintainableObject.";
25  	public static String EFFECTIVE_DATE_ERROR = "'Effective Date' must be a future date that is NOT more than a year away from current date.";
26  
27  	public static class Urls {
28  		
29  		
30  	    public static final String PORTAL_URL = BASE_URL + "/portal.do";
31  		
32  		/**
33  		 * 
34  		 * 
35  		 * maintenance document lookup view links
36  		 * 
37  		 * 
38  		 */
39  
40  		public static final String DEPT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.department.Department&returnLocation="+
41  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
42  	
43  		public static final String ASSIGNMENT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.assignment.Assignment&returnLocation="+
44  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
45  		
46  		public static final String ASSIGNMENT_ACCOUNT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.assignment.account.AssignmentAccount&returnLocation="+
47  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
48  	
49  		public static final String EARN_CODE_SECURITY_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.earncode.security.EarnCodeSecurity&returnLocation="+
50  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
51  		
52  		public static final String ACCRUAL_CATEGORY_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.accrualcategory.AccrualCategory&returnLocation="+
53  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
54  	
55  		public static final String SAL_GROUP_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.salarygroup.SalaryGroup&returnLocation="+
56  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
57  	
58  		public static final String PRIN_HR_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.principal.PrincipalHRAttributes&returnLocation="+
59  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
60  	
61  		public static final String EARN_CODE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.earncode.EarnCode&returnLocation="+
62  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
63  	
64  		public static final String EARN_CODE_GROUP_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.earncode.group.EarnCodeGroup&returnLocation="+
65  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
66  	
67  		public static final String JOB_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.job.Job&returnLocation="+
68  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
69  	
70  		public static final String PAYTYPE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.paytype.PayType&returnLocation="+
71  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
72  	
73  		public static final String WORK_AREA_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.workarea.WorkArea&returnLocation="+
74  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
75  	
76  		public static final String TASK_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.task.Task&returnLocation="+
77  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
78  		
79  		public static final String INSTITUTION_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.institution.Institution&returnLocation="+
80  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
81  		
82  		public static final String ACCOUNT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.Account&returnLocation="+
83  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
84  		
85  		public static final String CHART_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.Chart&returnLocation="+
86  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
87  		
88  		public static final String OBJECT_CODE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.ObjectCode&returnLocation="+
89  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
90  
91  		public static final String ORGANIZATION_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.Organization&returnLocation="+
92  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
93  
94  		public static final String PROJECT_CODE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.ProjectCode&returnLocation="+
95  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
96  
97  		public static final String SUB_OBJECT_CODE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.SubObjectCode&returnLocation="+
98  		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
99  
100 		public static final String LEAVE_PLAN_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.leaveplan.LeavePlan&returnLocation="+BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
101 
102 		public static final String POSITION_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.position.Position&returnLocation="+BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
103 		
104 		public static final String CALENDAR_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.calendar.Calendar&returnLocation="+BASE_URL+"/portal.do&hideReturnLink=true&docFormKey=88888888";
105 
106 		public static final String SUB_ACCOUNT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.SubAccount&returnLocation="+
107 				BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
108 
109 		/**
110 		 * 
111 		 * 
112 		 * "create new" urls for maintenance documents
113 		 * 
114 		 * 
115 		 */
116 		
117 		public static final String INSTITUTION_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.institution.Institution&methodToCall=start";
118 
119 		public static final String PAY_STEP_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.paystep.PayStep&methodToCall=start";
120 		
121 		public static final String ASSIGNMENT_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.assignment.Assignment&methodToCall=start";
122 	
123 		public static final String WORK_AREA_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.workarea.WorkArea&methodToCall=start";
124 		
125 		public static final String ACCURAL_CATEGORY_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.accrualcategory.AccrualCategory&methodToCall=start";
126 		
127 		public static final String PRIN_HR_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.principal.PrincipalHRAttributes&methodToCall=start";
128 		
129 		public static final String LEAVE_PLAN_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.leaveplan.LeavePlan&methodToCall=start";
130 		
131 		public static final String POSITION_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.position.Position&methodToCall=start";
132 		
133 		public static final String PAY_GRADE_MAINT_NEW_URL = BASE_URL + "/kr-krad/maintenance.do?dataObjectClassName=org.kuali.kpme.core.paygrade.PayGrade&methodToCall=start";
134 		
135 		public static final String CALENDAR_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.calendar.Calendar&methodToCall=start";
136 		
137 		public static final String PAY_CALENDAR_ENTRY_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.kpme.core.calendar.CalendarEntry&methodToCall=start";
138 		
139 		public static final String ACCOUNT_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.Account&returnLocation="+
140 		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
141 		
142 		public static final String CHART_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.Chart&returnLocation="+
143 		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
144 		
145 		public static final String OBJECT_CODE_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.ObjectCode&returnLocation="+
146 		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
147 
148 		public static final String ORGANIZATION_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.Organization&returnLocation="+
149 		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
150 
151 		public static final String PROJECT_CODE_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.ProjectCode&returnLocation="+
152 		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
153 
154 		public static final String SUB_OBJECT_CODE_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.SubObjectCode&returnLocation="+
155 		BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
156 
157 		public static final String SUB_ACCOUNT_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?methodToCall=start&businessObjectClassName=org.kuali.kpme.core.kfs.coa.businessobject.SubAccount&returnLocation="+
158 				BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
159 
160 		public static final String MISSED_PUNCH_LOOKUP_URL = ConfigContext.getCurrentContextConfig().getProperty("kew.url") + "/DocumentSearch.do?documentTypeName=MissedPunchDocumentType";
161 
162 	}
163 	
164 	public static class FormElementTypes {
165 		public static final String DROPDOWN = "dropDown";
166 		public static final String CHECKBOX = "checkBox";
167 		public static final String TEXTAREA = "textArea";
168 	}
169 	
170 }