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.workflow.dao;
17  
18  import org.kuali.hr.time.workflow.TimesheetDocumentHeader;
19  
20  import java.util.Date;
21  import java.util.List;
22  
23  public interface TimesheetDocumentHeaderDao {
24  
25  	public void saveOrUpdate(TimesheetDocumentHeader documentHeader);
26  
27  	public TimesheetDocumentHeader getTimesheetDocumentHeader(String documentId);
28  
29  	public TimesheetDocumentHeader getTimesheetDocumentHeader(String principalId, Date PayBeginDate, Date payEndDate);
30  
31  	public TimesheetDocumentHeader getPreviousDocumentHeader(String principalId, Date payBegindate);
32  
33      public TimesheetDocumentHeader getNextDocumentHeader(String principalId, Date payEndDate);
34  
35      public List<TimesheetDocumentHeader> getDocumentHeaders(Date payBeginDate);
36      
37      public void deleteTimesheetHeader(String documentId);
38      
39      public List<TimesheetDocumentHeader> getDocumentHeadersForPrincipalId(String principalId);
40      
41      public List<TimesheetDocumentHeader> getDocumentHeadersForYear(String principalId, String year);
42      
43      public TimesheetDocumentHeader getDocumentHeaderForDate(String principalId, Date asOfDate);
44  }