1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.permissions;
17
18 import org.kuali.hr.lm.leaveblock.LeaveBlock;
19 import org.kuali.hr.time.authorization.DepartmentalRule;
20 import org.kuali.hr.time.timeblock.TimeBlock;
21 import org.kuali.hr.time.timesheet.TimesheetDocument;
22
23
24
25 public interface TkPermissionsService {
26
27 public boolean canAddTimeBlock();
28 public boolean canEditTimeBlockAllFields(TimeBlock tb);
29 public boolean canEditTimeBlock(TimeBlock tb);
30 public boolean canDeleteTimeBlock(TimeBlock tb);
31 public boolean canEditLeaveBlock(LeaveBlock lb);
32 public boolean canDeleteLeaveBlock(LeaveBlock lb);
33 public boolean canViewAdminTab();
34 public boolean canViewClockTab();
35 public boolean canViewApproverTab();
36 public boolean canViewTimeDetailTab();
37 public boolean canViewBatchJobsTab();
38 public boolean canViewPersonInfoTab();
39 public boolean canViewLeaveAccrualTab();
40 public boolean canViewTimesheet(TimesheetDocument doc);
41 public boolean canViewTimesheet(String documentId);
42 public boolean canEditTimesheet(TimesheetDocument doc);
43 public boolean canEditTimesheet(String documentId);
44 public boolean canSubmitTimesheet(TimesheetDocument doc);
45 public boolean canSubmitTimesheet(String docId);
46 public boolean canApproveTimesheet(TimesheetDocument doc);
47 public boolean canViewLinkOnMaintPages();
48 public boolean canViewDeptMaintPages();
49 public boolean canViewDeptMaintPages(DepartmentalRule dr);
50 public boolean canEditDeptMaintPages();
51 public boolean canEditDeptMaintPages(DepartmentalRule dr);
52 public boolean canWildcardWorkAreaInDeptRule(DepartmentalRule dr);
53 public boolean canWildcardDeptInDeptRule(DepartmentalRule dr);
54 public boolean canEditOvertimeEarnCode(TimeBlock tb);
55 public boolean canEditRegEarnCode(TimeBlock tb);
56 public boolean canDeleteDeptLunchDeduction();
57 public boolean canAddSystemLevelRole();
58 public boolean canAddLocationLevelRoles();
59 public boolean canAddDepartmentLevelRoles();
60 public boolean canAddWorkareaLevelRoles();
61 public boolean canViewTimeTabs();
62 public boolean canViewLeaveTabsWithEStatus();
63 public boolean canViewLeaveTabsWithNEStatus();
64
65
66
67
68
69
70 public boolean canBankOrTransferSSTOUsage(LeaveBlock lb);
71
72
73
74
75
76
77 public boolean canTransferSSTOUsage(LeaveBlock lb);
78
79
80
81
82
83
84 public boolean canBankSSTOUsage(LeaveBlock lb);
85 }