001    /**
002     * Copyright 2004-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.time.test;
017    
018    
019    public final class TkTestConstants {
020            public static String BASE_URL = HtmlUnitUtil.getBaseURL();
021            public static String DOC_NEW_ELEMENT_ID_PREFIX = "document.newMaintainableObject.";
022            public static String EFFECTIVE_DATE_ERROR = "'Effective Date' must be a future date that is NOT more than a year away from current date.";
023    
024            public static class Urls {
025                    public static final String DEPT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.department.Department&returnLocation="+
026                                                                                                                                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
027                    public static final String ASSIGNMENT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.assignment.Assignment&returnLocation="+
028                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
029    
030                    public static final String ASSIGNMENT_ACCOUNT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.assignment.AssignmentAccount&returnLocation="+
031                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
032    
033                    public static final String TIME_COLLECTION_RULE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.collection.rule.TimeCollectionRule&returnLocation="+
034                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
035    
036                    public static final String WORK_SCHEDULE_ENTRY_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.workschedule.WorkScheduleEntry&returnLocation="+
037                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
038    
039                    public static final String WORK_SCHEDULE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.workschedule.WorkSchedule&returnLocation="+
040                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
041    
042                    public static final String SHIFT_DIFFERENTIAL_RULE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.shiftdiff.rule.ShiftDifferentialRule&returnLocation="+
043                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
044    
045                    public static final String WEEKLY_OVERTIME_RULE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.overtime.weekly.rule.WeeklyOvertimeRule&returnLocation="+
046                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
047    
048                    public static final String EARN_CODE_SECURITY_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.earncodesec.EarnCodeSecurity&returnLocation="+
049                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
050    
051                    public static final String DAILY_OVERTIME_RULE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.overtime.daily.rule.DailyOvertimeRule&returnLocation="+
052                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
053    
054                    public static final String CLOCK_LOG_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.clocklog.ClockLog&returnLocation="+
055                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
056    
057                    public static final String DEPT_LUNCH_RULE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.dept.lunch.DeptLunchRule&returnLocation="+
058                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
059    
060                    public static final String ACCRUAL_CATEGORY_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.accrual.AccrualCategory&returnLocation="+
061                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
062    
063                    public static final String SAL_GROUP_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.salgroup.SalGroup&returnLocation="+
064                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
065    
066                    public static final String PRIN_HR_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.principal.PrincipalHRAttributes&returnLocation="+
067                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
068    
069                    public static final String DOC_HEADER_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.workflow.TimesheetDocumentHeader&returnLocation="+
070                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
071    
072                    public static final String EARN_CODE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.earncode.EarnCode&returnLocation="+
073                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
074    
075                    public static final String EARN_GROUP_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.earngroup.EarnGroup&returnLocation="+
076                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
077    
078                    public static final String JOB_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.job.Job&returnLocation="+
079                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
080    
081                    public static final String PAYTYPE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.paytype.PayType&returnLocation="+
082                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
083    
084                    public static final String HOLIDAY_CALENDAR_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.holidaycalendar.HolidayCalendar&returnLocation="+
085                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
086    
087                    public static final String TIME_OFF_ACCRUAL_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.accrual.TimeOffAccrual&returnLocation="+
088                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
089    
090                    public static final String WORK_AREA_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.workarea.WorkArea&returnLocation="+
091                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
092    
093                    public static final String TASK_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.task.Task&returnLocation="+
094                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
095                    
096                    public static final String EMPLOYEE_OVERRIDE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.lm.employeeoverride.EmployeeOverride&returnLocation="+
097                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
098                    
099                    public static final String LEAVE_ADJUSTMENT_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.lm.leaveadjustment.LeaveAdjustment&returnLocation="+
100                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
101                    
102                    public static final String TIME_OFF_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.lm.timeoff.SystemScheduledTimeOff&returnLocation="+
103                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
104                    
105                    public static final String LEAVE_CODE_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.lm.leavecode.LeaveCode&returnLocation="+
106                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
107                    
108                    public static final String LEAVE_DONATION_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.lm.leavedonation.LeaveDonation&returnLocation="+
109                    BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
110    
111                    public static final String PAY_CALENDAR_ENTRIES_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.calendar.CalendarEntries&methodToCall=start";
112    
113                    public static final String ASSIGNMENT_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.assignment.Assignment&methodToCall=start";
114    
115                    public static final String HOLIDAY_CALENDAR_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.holidaycalendar.HolidayCalendar&methodToCall=start";
116    
117                    public static final String WORK_AREA_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.workarea.WorkArea&methodToCall=start";
118    
119                    public static final String WEEKLY_OVERTIME_RULE_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.overtime.weekly.rule.WeeklyOvertimeRuleGroup&tkWeeklyOvertimeRuleGroupId=1&returnLocation=" + BASE_URL + "/portal.do&methodToCall=edit";
120                    
121                    public static final String SHIFT_DIFFERENTIAL_RULE_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.shiftdiff.rule.ShiftDifferentialRule&methodToCall=start#topOfForm";
122                    
123                    public static final String POSITION_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.position.Position&methodToCall=start";
124                    
125                    public static final String POSITION_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.position.Position&returnLocation="+BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
126                    
127                    public static final String PAY_GRADE_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.paygrade.PayGrade&methodToCall=start";
128                    
129                    public static final String CALENDAR_MAINT_NEW_URL = BASE_URL + "/kr/maintenance.do?businessObjectClassName=org.kuali.hr.time.calendar.Calendar&methodToCall=start";
130                    
131                    public static final String CALENDAR_MAINT_URL = BASE_URL + "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.hr.time.calendar.Calendar&returnLocation="+BASE_URL + "/portal.do&hideReturnLink=true&docFormKey=88888888";
132                    
133            public static final String PORTAL_URL = BASE_URL + "/portal.do";
134            
135            public static final String DELETE_TIMESHEET_URL = BASE_URL + "/deleteTimesheet.do";
136                    
137                    public static final String CLOCK_URL = BASE_URL + "/Clock.do";
138    
139                    public static final String TIME_DETAIL_URL = BASE_URL + "/TimeDetail.do";
140    
141                    public static final String PERSON_INFO_URL = BASE_URL + "/PersonInfo.do";
142            
143            }
144    
145            public static class FormElementTypes {
146                    public static final String DROPDOWN = "dropDown";
147                    public static final String CHECKBOX = "checkBox";
148                    public static final String TEXTAREA = "textArea";
149            }
150    
151    }