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.permissions;
17  
18  import org.kuali.hr.time.authorization.DepartmentalRule;
19  import org.kuali.hr.time.timeblock.TimeBlock;
20  import org.kuali.hr.time.timesheet.TimesheetDocument;
21  
22  
23  
24  public interface TkPermissionsService {
25  
26  	public boolean canAddTimeBlock();
27  	   public boolean canEditTimeBlockAllFields(TimeBlock tb);
28  	   public boolean canEditTimeBlock(TimeBlock tb);
29  	   public boolean canDeleteTimeBlock(TimeBlock tb);
30  	   public boolean canViewAdminTab();
31  	   public boolean canViewClockTab();
32  	   public boolean canViewApproverTab();
33  	   public boolean canViewTimeDetailTab();
34  	   public boolean canViewBatchJobsTab();
35  	   public boolean canViewPersonInfoTab();
36  	   public boolean canViewLeaveAccrualTab();
37  	   public boolean canViewTimesheet(TimesheetDocument doc);
38  	   public boolean canViewTimesheet(String documentId);
39  	   public boolean canEditTimesheet(TimesheetDocument doc);
40  	   public boolean canEditTimesheet(String documentId);
41  	   public boolean canSubmitTimesheet(TimesheetDocument doc);
42  	   public boolean canSubmitTimesheet(String docId);
43  	   public boolean canApproveTimesheet(TimesheetDocument doc);
44  	   public boolean canViewLinkOnMaintPages();
45  	   public boolean canViewDeptMaintPages();
46  	   public boolean canViewDeptMaintPages(DepartmentalRule dr);
47  	   public boolean canEditDeptMaintPages();
48  	   public boolean canEditDeptMaintPages(DepartmentalRule dr);
49  	   public boolean canWildcardWorkAreaInDeptRule(DepartmentalRule dr);
50  	   public boolean canWildcardDeptInDeptRule(DepartmentalRule dr);
51  	   public boolean canEditOvertimeEarnCode(TimeBlock tb);
52  	   public boolean canEditRegEarnCode(TimeBlock tb);
53  	   public boolean canDeleteDeptLunchDeduction();
54  	   public boolean canAddSystemLevelRole();
55  	   public boolean canAddLocationLevelRoles();
56  	   public boolean canAddDepartmentLevelRoles();
57  	   public boolean canAddWorkareaLevelRoles();	   
58  	   public boolean canViewTimeTabs();
59  }