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.apache.commons.lang.StringUtils;
22  import org.kuali.hr.time.base.web.TkForm;
23  import org.kuali.hr.time.util.TkConstants;
24  
25  public class BatchJobActionForm extends TkForm {
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(TkConstants.BATCH_JOB_NAMES.INITIATE);
38      	BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.END_PAY_PERIOD);
39      	BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.END_REPORTING_PERIOD);
40      	BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.EMPLOYEE_APPROVAL);
41      	BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.SUPERVISOR_APPROVAL);
42      	BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.MISSED_PUNCH_APPROVAL);
43      }
44  
45      public List<String> getBatchJobNames() {
46          return BATCH_JOB_NAMES;
47      }
48      
49      public String getSelectedBatchJob() {
50          return selectedBatchJob;
51      }
52  
53      public void setSelectedBatchJob(String selectedBatchJob) {
54          this.selectedBatchJob = selectedBatchJob;
55      }
56  
57      public String getHrPyCalendarEntryId() {
58          return hrPyCalendarEntryId;
59      }
60  
61      public void setHrPyCalendarEntryId(String hrPyCalendarEntryId) {
62          this.hrPyCalendarEntryId = hrPyCalendarEntryId;
63      }
64  
65  	public String getLeavePlan() {
66  		return leavePlan;
67  	}
68  
69  	public void setLeavePlan(String leavePlan) {
70  		this.leavePlan = leavePlan;
71  	}
72      
73  }