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.batch.web;
017
018 import java.util.ArrayList;
019 import java.util.List;
020
021 import org.apache.commons.lang.StringUtils;
022 import org.kuali.hr.time.base.web.TkForm;
023 import org.kuali.hr.time.util.TkConstants;
024
025 public class BatchJobActionForm extends TkForm {
026
027 private static final long serialVersionUID = -8603015460600023900L;
028
029 private static final List<String> BATCH_JOB_NAMES = new ArrayList<String>();
030
031 private String selectedBatchJob;
032 private String hrPyCalendarEntryId;
033 private String leavePlan;
034
035 static {
036 BATCH_JOB_NAMES.add(StringUtils.EMPTY);
037 BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.INITIATE);
038 BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.END_PAY_PERIOD);
039 BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.END_REPORTING_PERIOD);
040 BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.EMPLOYEE_APPROVAL);
041 BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.SUPERVISOR_APPROVAL);
042 BATCH_JOB_NAMES.add(TkConstants.BATCH_JOB_NAMES.MISSED_PUNCH_APPROVAL);
043 }
044
045 public List<String> getBatchJobNames() {
046 return BATCH_JOB_NAMES;
047 }
048
049 public String getSelectedBatchJob() {
050 return selectedBatchJob;
051 }
052
053 public void setSelectedBatchJob(String selectedBatchJob) {
054 this.selectedBatchJob = selectedBatchJob;
055 }
056
057 public String getHrPyCalendarEntryId() {
058 return hrPyCalendarEntryId;
059 }
060
061 public void setHrPyCalendarEntryId(String hrPyCalendarEntryId) {
062 this.hrPyCalendarEntryId = hrPyCalendarEntryId;
063 }
064
065 public String getLeavePlan() {
066 return leavePlan;
067 }
068
069 public void setLeavePlan(String leavePlan) {
070 this.leavePlan = leavePlan;
071 }
072
073 }