View Javadoc

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