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