View Javadoc
1   /**
2    * Copyright 2004-2014 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.kpme.core.tkmdocument.tkmjob;
17  
18  import org.kuali.kpme.core.assignment.AssignmentBo;
19  import org.kuali.kpme.core.job.JobBo;
20  
21  import java.util.ArrayList;
22  import java.util.Date;
23  import java.util.List;
24  
25  /**
26   * Created by jwillia on 4/11/14.
27   */
28  public class KhrEmployeeJob extends JobBo {
29  	
30  	private static final long serialVersionUID = -2015621064979417200L;
31  	
32  	private Date endDate;
33      private List<AssignmentBo> assignments = new ArrayList<AssignmentBo>();
34  
35      private String jobNumberDisplay;
36  
37  
38      public Date getEndDate() {
39          return endDate;
40      }
41  
42      public void setEndDate(Date endDate) {
43          this.endDate = endDate;
44      }
45  
46      public List<AssignmentBo> getAssignments() {
47          return assignments;
48      }
49  
50      public void setAssignments(List<AssignmentBo> assignments) {
51          this.assignments = assignments;
52      }
53  
54  
55      public String getJobNumberDisplay() {
56          Long currentJobNumber = this.getJobNumber();
57          if ( (currentJobNumber != null) && (currentJobNumber.compareTo(0L) >= 0 ) )
58          {
59              return currentJobNumber.toString();
60          }
61          else
62          {
63              return " ";
64          }
65      }
66  }
67