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