org.kuali.kpme.tklm.time.service.permission
Class TKPermissionServiceImpl

java.lang.Object
  extended by org.kuali.kpme.core.service.permission.HrPermissionServiceBase
      extended by org.kuali.kpme.tklm.time.service.permission.TKPermissionServiceImpl
All Implemented Interfaces:
TKPermissionService

public class TKPermissionServiceImpl
extends HrPermissionServiceBase
implements TKPermissionService


Constructor Summary
TKPermissionServiceImpl()
           
 
Method Summary
 boolean canDeleteTimeBlock(String principalId, TimeBlock timeBlock)
           
 boolean canEditOvertimeEarnCode(String principalId, TimeBlock timeBlock)
           
 boolean canEditTimeBlock(String principalId, TimeBlock timeBlock)
           
 boolean canEditTimeBlockAllFields(String principalId, TimeBlock timeBlock)
           
 org.kuali.rice.kim.api.permission.PermissionService getPermissionService()
           
 TimesheetService getTimesheetService()
           
 boolean isApproverForWorkArea(String principalId, Long workArea, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has Approver/ApproverDelegate roles on given workArea and asOfDate
 boolean isAuthorized(String principalId, String permissionName, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName.
 boolean isAuthorized(String principalId, String permissionName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given role qualifications.
 boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details.
 boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details and role qualifications.
 boolean isPayrollProcessorForDepartment(String principalId, String dept, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has PayrollProcessor/PayrollProcessorDelegate roles on given dept and asOfDate
 void setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)
           
 void setTimesheetService(TimesheetService timesheetService)
           
 boolean userHasRolesToEditTimeBlock(String principalId, TimeBlock aTimeBlock)
          Checks whether the given principalId has edit permission roles on given aTimeBlock
 boolean userHasTimeSysLocationAdminRoles(String principalId, TimeBlock aTimeBlock)
          Checks whether the given principalId has systemAdmin/TimeSystemAdmin/TimeLocationAdmin roles on given aTimeBlock
 
Methods inherited from class org.kuali.kpme.core.service.permission.HrPermissionServiceBase
getDepartmentService, getWorkAreaService, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInPosition, isAuthorizedByTemplateInWorkArea, isAuthorizedByTemplateInWorkArea, isAuthorizedInDepartment, isAuthorizedInLocation, isAuthorizedInWorkArea, setDepartmentService, setWorkAreaService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kpme.tklm.time.service.permission.TKPermissionService
isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInWorkArea, isAuthorizedInDepartment, isAuthorizedInLocation, isAuthorizedInWorkArea
 

Constructor Detail

TKPermissionServiceImpl

public TKPermissionServiceImpl()
Method Detail

isAuthorized

public boolean isAuthorized(String principalId,
                            String permissionName,
                            org.joda.time.DateTime asOfDate)
Description copied from interface: TKPermissionService
Checks whether the given principalId is authorized to perform permissionName.

Specified by:
isAuthorized in interface TKPermissionService
Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName, false otherwise.

isAuthorized

public boolean isAuthorized(String principalId,
                            String permissionName,
                            Map<String,String> qualification,
                            org.joda.time.DateTime asOfDate)
Description copied from class: HrPermissionServiceBase
Checks whether the given principalId is authorized to perform permissionName for the given role qualifications.

Specified by:
isAuthorized in interface TKPermissionService
Specified by:
isAuthorized in class HrPermissionServiceBase
Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
qualification - The map of role qualifiers for the person
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName, false otherwise.

isAuthorizedByTemplate

public boolean isAuthorizedByTemplate(String principalId,
                                      String namespaceCode,
                                      String permissionTemplateName,
                                      Map<String,String> permissionDetails,
                                      org.joda.time.DateTime asOfDate)
Description copied from interface: TKPermissionService
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details.

Specified by:
isAuthorizedByTemplate in interface TKPermissionService
Parameters:
principalId - The person to check the permission for
namespaceCode - The namespace for the permission template
permissionTemplateName - The name of the permission template
permissionDetails - The map of permission details for the permission
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform any permission templated by permissionTemplateName, false otherwise.

isAuthorizedByTemplate

public boolean isAuthorizedByTemplate(String principalId,
                                      String namespaceCode,
                                      String permissionTemplateName,
                                      Map<String,String> permissionDetails,
                                      Map<String,String> qualification,
                                      org.joda.time.DateTime asOfDate)
Description copied from class: HrPermissionServiceBase
Checks whether the given principalId is authorized to perform any permission templated by permissionTemplateName for the given permission details and role qualifications.

Specified by:
isAuthorizedByTemplate in interface TKPermissionService
Specified by:
isAuthorizedByTemplate in class HrPermissionServiceBase
Parameters:
principalId - The person to check the permission for
namespaceCode - The namespace for the permission template
permissionTemplateName - The name of the permission template
permissionDetails - The map of permission details for the permission
qualification - The map of role qualifiers for the person
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform any permission templated by permissionTemplateName, false otherwise.

canEditTimeBlock

public boolean canEditTimeBlock(String principalId,
                                TimeBlock timeBlock)
Specified by:
canEditTimeBlock in interface TKPermissionService

userHasRolesToEditTimeBlock

public boolean userHasRolesToEditTimeBlock(String principalId,
                                           TimeBlock aTimeBlock)
Description copied from interface: TKPermissionService
Checks whether the given principalId has edit permission roles on given aTimeBlock

Specified by:
userHasRolesToEditTimeBlock in interface TKPermissionService
Returns:

userHasTimeSysLocationAdminRoles

public boolean userHasTimeSysLocationAdminRoles(String principalId,
                                                TimeBlock aTimeBlock)
Description copied from interface: TKPermissionService
Checks whether the given principalId has systemAdmin/TimeSystemAdmin/TimeLocationAdmin roles on given aTimeBlock

Specified by:
userHasTimeSysLocationAdminRoles in interface TKPermissionService
Returns:

canEditTimeBlockAllFields

public boolean canEditTimeBlockAllFields(String principalId,
                                         TimeBlock timeBlock)
Specified by:
canEditTimeBlockAllFields in interface TKPermissionService

canDeleteTimeBlock

public boolean canDeleteTimeBlock(String principalId,
                                  TimeBlock timeBlock)
Specified by:
canDeleteTimeBlock in interface TKPermissionService

canEditOvertimeEarnCode

public boolean canEditOvertimeEarnCode(String principalId,
                                       TimeBlock timeBlock)
Specified by:
canEditOvertimeEarnCode in interface TKPermissionService

isPayrollProcessorForDepartment

public boolean isPayrollProcessorForDepartment(String principalId,
                                               String dept,
                                               org.joda.time.DateTime asOfDate)
Description copied from interface: TKPermissionService
Checks whether the given principalId has PayrollProcessor/PayrollProcessorDelegate roles on given dept and asOfDate

Specified by:
isPayrollProcessorForDepartment in interface TKPermissionService
Returns:

isApproverForWorkArea

public boolean isApproverForWorkArea(String principalId,
                                     Long workArea,
                                     org.joda.time.DateTime asOfDate)
Description copied from interface: TKPermissionService
Checks whether the given principalId has Approver/ApproverDelegate roles on given workArea and asOfDate

Specified by:
isApproverForWorkArea in interface TKPermissionService
Returns:

getPermissionService

public org.kuali.rice.kim.api.permission.PermissionService getPermissionService()

setPermissionService

public void setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)

getTimesheetService

public TimesheetService getTimesheetService()

setTimesheetService

public void setTimesheetService(TimesheetService timesheetService)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.