001    /**
002     * Copyright 2004-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.time.permissions;
017    
018    import org.kuali.hr.time.authorization.DepartmentalRule;
019    import org.kuali.hr.time.timeblock.TimeBlock;
020    import org.kuali.hr.time.timesheet.TimesheetDocument;
021    
022    
023    
024    public interface TkPermissionsService {
025    
026            public boolean canAddTimeBlock();
027               public boolean canEditTimeBlockAllFields(TimeBlock tb);
028               public boolean canEditTimeBlock(TimeBlock tb);
029               public boolean canDeleteTimeBlock(TimeBlock tb);
030               public boolean canViewAdminTab();
031               public boolean canViewClockTab();
032               public boolean canViewApproverTab();
033               public boolean canViewTimeDetailTab();
034               public boolean canViewBatchJobsTab();
035               public boolean canViewPersonInfoTab();
036               public boolean canViewLeaveAccrualTab();
037               public boolean canViewTimesheet(TimesheetDocument doc);
038               public boolean canViewTimesheet(String documentId);
039               public boolean canEditTimesheet(TimesheetDocument doc);
040               public boolean canEditTimesheet(String documentId);
041               public boolean canSubmitTimesheet(TimesheetDocument doc);
042               public boolean canSubmitTimesheet(String docId);
043               public boolean canApproveTimesheet(TimesheetDocument doc);
044               public boolean canViewLinkOnMaintPages();
045               public boolean canViewDeptMaintPages();
046               public boolean canViewDeptMaintPages(DepartmentalRule dr);
047               public boolean canEditDeptMaintPages();
048               public boolean canEditDeptMaintPages(DepartmentalRule dr);
049               public boolean canWildcardWorkAreaInDeptRule(DepartmentalRule dr);
050               public boolean canWildcardDeptInDeptRule(DepartmentalRule dr);
051               public boolean canEditOvertimeEarnCode(TimeBlock tb);
052               public boolean canEditRegEarnCode(TimeBlock tb);
053               public boolean canDeleteDeptLunchDeduction();
054               public boolean canAddSystemLevelRole();
055               public boolean canAddLocationLevelRoles();
056               public boolean canAddDepartmentLevelRoles();
057               public boolean canAddWorkareaLevelRoles();      
058               public boolean canViewTimeTabs();
059    }