View Javadoc

1   /**
2    * Copyright 2004-2012 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.LinkedList;
20  import java.util.List;
21  
22  import org.kuali.hr.time.base.web.TkForm;
23  import org.kuali.hr.time.batch.BatchJobEntry;
24  import org.kuali.hr.time.util.TkConstants;
25  
26  public class BatchJobActionForm extends TkForm {
27  
28      private static final long serialVersionUID = 385904747462568474L;
29      
30      private List<String> batchJobNames = new ArrayList<String>();
31      private List<String> batchJobStatuses = new ArrayList<String>();
32      private List<BatchJobEntry> batchJobEntries = new LinkedList<BatchJobEntry>();
33      private String batchJobId;
34      private String documentId;
35      private String principalId;
36      private String hrPyCalendarEntryId;
37      private String ipAddress;
38      private String batchJobName;
39      private String batchJobEntryStatus;
40      private String tkBatchJobEntryId;
41      private String ipToChange;
42      private String selectedBatchJob;
43  
44      public List<String> getBatchJobNames() {
45          batchJobNames.add(TkConstants.BATCH_JOB_NAMES.INITIATE);
46          batchJobNames.add(TkConstants.BATCH_JOB_NAMES.APPROVE);
47          batchJobNames.add(TkConstants.BATCH_JOB_NAMES.PAY_PERIOD_END);
48          batchJobNames.add(TkConstants.BATCH_JOB_NAMES.SUPERVISOR_APPROVAL);
49          batchJobNames.add(TkConstants.BATCH_JOB_NAMES.BATCH_APPROVE_MISSED_PUNCH);
50  
51          return batchJobNames;
52      }
53  
54      public void setBatchJobNames(List<String> batchJobs) {
55          this.batchJobNames = batchJobs;
56      }
57  
58      public List<String> getBatchJobStatuses() {
59          batchJobStatuses.add(TkConstants.BATCH_JOB_ENTRY_STATUS.RUNNING);
60          batchJobStatuses.add(TkConstants.BATCH_JOB_ENTRY_STATUS.SCHEDULED);
61          batchJobStatuses.add(TkConstants.BATCH_JOB_ENTRY_STATUS.FINISHED);
62  
63          return batchJobStatuses;
64      }
65  
66      public void setBatchJobStatuses(List<String> batchJobStatuses) {
67          this.batchJobStatuses = batchJobStatuses;
68      }
69  
70      public String getBatchJobId() {
71          return batchJobId;
72      }
73  
74      public void setBatchJobId(String batchJobId) {
75          this.batchJobId = batchJobId;
76      }
77  
78      public String getDocumentId() {
79          return documentId;
80      }
81  
82      public void setDocumentId(String documentId) {
83          this.documentId = documentId;
84      }
85  
86      public String getPrincipalId() {
87          return principalId;
88      }
89  
90      public void setPrincipalId(String principalId) {
91          this.principalId = principalId;
92      }
93  
94      public String getHrPyCalendarEntryId() {
95          return hrPyCalendarEntryId;
96      }
97  
98      public void setHrPyCalendarEntryId(String hrPyCalendarEntryId) {
99          this.hrPyCalendarEntryId = hrPyCalendarEntryId;
100     }
101 
102     public String getIpAddress() {
103         return ipAddress;
104     }
105 
106     public void setIpAddress(String ipAddress) {
107         this.ipAddress = ipAddress;
108     }
109 
110     public String getBatchJobName() {
111         return batchJobName;
112     }
113 
114     public void setBatchJobName(String batchJobName) {
115         this.batchJobName = batchJobName;
116     }
117 
118     public String getBatchJobEntryStatus() {
119         return batchJobEntryStatus;
120     }
121 
122     public void setBatchJobEntryStatus(String batchJobEntryStatus) {
123         this.batchJobEntryStatus = batchJobEntryStatus;
124     }
125 
126     public List<BatchJobEntry> getBatchJobEntries() {
127         return batchJobEntries;
128     }
129 
130     public void setBatchJobEntries(List<BatchJobEntry> batchJobEntries) {
131         this.batchJobEntries = batchJobEntries;
132     }
133 
134     public String getTkBatchJobEntryId() {
135         return tkBatchJobEntryId;
136     }
137 
138     public void setTkBatchJobEntryId(String tkBatchJobEntryId) {
139         this.tkBatchJobEntryId = tkBatchJobEntryId;
140     }
141 
142     public String getIpToChange() {
143         return ipToChange;
144     }
145 
146     public void setIpToChange(String ipToChange) {
147         this.ipToChange = ipToChange;
148     }
149 
150     public String getSelectedBatchJob() {
151         return selectedBatchJob;
152     }
153 
154     public void setSelectedBatchJob(String selectedBatchJob) {
155         this.selectedBatchJob = selectedBatchJob;
156     }
157 }