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.tklm.time.missedpunch;
17  
18  import org.kuali.kpme.core.assignment.Assignment;
19  import org.kuali.kpme.core.assignment.AssignmentDescriptionKey;
20  import org.kuali.kpme.core.department.Department;
21  import org.kuali.kpme.core.job.Job;
22  import org.kuali.kpme.core.service.HrServiceLocator;
23  import org.kuali.kpme.core.task.Task;
24  import org.kuali.kpme.core.workarea.WorkArea;
25  import org.kuali.kpme.tklm.api.time.missedpunch.MissedPunchDocumentContract;
26  import org.kuali.rice.krad.document.TransactionalDocumentBase;
27  
28  import java.sql.Timestamp;
29  import java.util.Date;
30  
31  public class MissedPunchDocument extends TransactionalDocumentBase implements MissedPunchDocumentContract {
32  
33  	private static final long serialVersionUID = -8759488155644037099L;
34  	
35  	private String tkMissedPunchId;
36  	
37  	private MissedPunch missedPunch = new MissedPunch();
38  
39      private transient Job jobObj;
40      private transient WorkArea workAreaObj;
41      private transient Department departmentObj;
42      private transient Task taskObj;
43  	public String getTkMissedPunchId() {
44  		return tkMissedPunchId;
45  	}
46  
47  	public void setTkMissedPunchId(String tkMissedPunchId) {
48  		this.tkMissedPunchId = tkMissedPunchId;
49  	}
50  
51  	public MissedPunch getMissedPunch() {
52  		return missedPunch;
53  	}
54  
55  	public void setMissedPunch(MissedPunch missedPunch) {
56  		this.missedPunch = missedPunch;
57  	}
58  
59  
60      //helper methods!!!!
61      public String getPrincipalId() {
62          return missedPunch.getPrincipalId();
63      }
64  
65      public String getTimesheetDocumentId() {
66          return missedPunch.getTimesheetDocumentId();
67      }
68  
69      public Long getJobNumber() {
70          return missedPunch.getJobNumber();
71      }
72  
73      public Long getWorkArea() {
74          return missedPunch.getWorkArea();
75      }
76  
77      public Long getTask() {
78          return missedPunch.getTask();
79      }
80  
81      public Date getActionDateTime() {
82          return null;
83      }
84  
85      public String getClockAction() {
86          return missedPunch.getClockAction();
87      }
88  
89      public String getTkClockLogId() {
90          return missedPunch.getTkClockLogId();
91      }
92  
93      public Timestamp getTimestamp() {
94          return missedPunch.getTimestamp();
95      }
96  
97      public String getDepartment() {
98          return missedPunch.getDepartment();
99      }
100 
101     /*public Date getRelativeEffectiveDate() {
102         return missedPunch.getRelativeEffectiveDate();
103     }*/
104 
105     public Task getTaskObj() {
106         return taskObj;
107     }
108 
109     public Job getJobObj() {
110         return jobObj;
111     }
112 
113     public WorkArea getWorkAreaObj() {
114         return workAreaObj;
115     }
116 
117     public Department getDepartmentObj() {
118         return departmentObj;
119     }
120 }