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.tklm.common;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  import org.apache.commons.lang.StringUtils;
22  import org.kuali.kpme.core.util.HrConstants;
23  import org.kuali.kpme.core.web.KPMEForm;
24  
25  public class BatchJobActionForm extends KPMEForm {
26  
27  	private static final long serialVersionUID = -8603015460600023900L;
28  
29  	private static final List<String> BATCH_JOB_NAMES = new ArrayList<String>();
30  
31      private String selectedBatchJob;
32      private String hrPyCalendarEntryId;
33      private String leavePlan;
34      
35      static {
36      	BATCH_JOB_NAMES.add(StringUtils.EMPTY);
37      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.INITIATE);
38      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.END_PAY_PERIOD);
39      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.END_REPORTING_PERIOD);
40      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.EMPLOYEE_APPROVAL);
41      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.SUPERVISOR_APPROVAL);
42      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.MISSED_PUNCH_APPROVAL);
43      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.PAYROLL_APPROVAL);
44      	BATCH_JOB_NAMES.add(HrConstants.BATCH_JOB_NAMES.LEAVE_CALENDAR_DELINQUENCY);
45      }
46  
47      public List<String> getBatchJobNames() {
48          return BATCH_JOB_NAMES;
49      }
50      
51      public String getSelectedBatchJob() {
52          return selectedBatchJob;
53      }
54  
55      public void setSelectedBatchJob(String selectedBatchJob) {
56          this.selectedBatchJob = selectedBatchJob;
57      }
58  
59      public String getHrPyCalendarEntryId() {
60          return hrPyCalendarEntryId;
61      }
62  
63      public void setHrPyCalendarEntryId(String hrPyCalendarEntryId) {
64          this.hrPyCalendarEntryId = hrPyCalendarEntryId;
65      }
66  
67  	public String getLeavePlan() {
68  		return leavePlan;
69  	}
70  
71  	public void setLeavePlan(String leavePlan) {
72  		this.leavePlan = leavePlan;
73  	}
74  
75  }