org.kuali.kpme.tklm.time.service.permission
Interface TKPermissionService

All Known Implementing Classes:
TKPermissionServiceImpl

public interface TKPermissionService


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)
           
 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 isAuthorizedByTemplateInDepartment(String principalId, String namespaceCode, String permissionTemplateName, String department, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given department.
 boolean isAuthorizedByTemplateInLocation(String principalId, String namespaceCode, String permissionTemplateName, String location, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given location.
 boolean isAuthorizedByTemplateInWorkArea(String principalId, String namespaceCode, String permissionTemplateName, Long workArea, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given work area.
 boolean isAuthorizedInDepartment(String principalId, String permissionName, String department, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given department.
 boolean isAuthorizedInLocation(String principalId, String permissionName, String location, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given location.
 boolean isAuthorizedInWorkArea(String principalId, String permissionName, Long workArea, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId is authorized to perform permissionName for the given work area.
 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
 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
 

Method Detail

isAuthorized

boolean isAuthorized(String principalId,
                     String permissionName,
                     org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName.

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

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.

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.

isAuthorizedInWorkArea

boolean isAuthorizedInWorkArea(String principalId,
                               String permissionName,
                               Long workArea,
                               org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given work area.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
workArea - The work area qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given work area, false otherwise.

isAuthorizedInDepartment

boolean isAuthorizedInDepartment(String principalId,
                                 String permissionName,
                                 String department,
                                 org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given department.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
department - The department qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given department, false otherwise.

isAuthorizedInLocation

boolean isAuthorizedInLocation(String principalId,
                               String permissionName,
                               String location,
                               org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given location.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
location - The location qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given location, false otherwise.

isAuthorizedByTemplate

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.

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

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.

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.

isAuthorizedByTemplateInWorkArea

boolean isAuthorizedByTemplateInWorkArea(String principalId,
                                         String namespaceCode,
                                         String permissionTemplateName,
                                         Long workArea,
                                         org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given work area.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
workArea - The work area qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given work area, false otherwise.

isAuthorizedByTemplateInDepartment

boolean isAuthorizedByTemplateInDepartment(String principalId,
                                           String namespaceCode,
                                           String permissionTemplateName,
                                           String department,
                                           org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given department.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
department - The department qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given department, false otherwise.

isAuthorizedByTemplateInLocation

boolean isAuthorizedByTemplateInLocation(String principalId,
                                         String namespaceCode,
                                         String permissionTemplateName,
                                         String location,
                                         org.joda.time.DateTime asOfDate)
Checks whether the given principalId is authorized to perform permissionName for the given location.

Parameters:
principalId - The person to check the permission for
permissionName - The name of the permission
location - The location qualifier
asOfDate - The effective date of the permission
Returns:
true if principalId is authorized to perform permissionName for the given location, false otherwise.

canEditTimeBlock

boolean canEditTimeBlock(String principalId,
                         TimeBlock timeBlock)

canEditTimeBlockAllFields

boolean canEditTimeBlockAllFields(String principalId,
                                  TimeBlock timeBlock)

canDeleteTimeBlock

boolean canDeleteTimeBlock(String principalId,
                           TimeBlock timeBlock)

canEditOvertimeEarnCode

boolean canEditOvertimeEarnCode(String principalId,
                                TimeBlock timeBlock)

userHasTimeSysLocationAdminRoles

boolean userHasTimeSysLocationAdminRoles(String principalId,
                                         TimeBlock aTimeBlock)
Checks whether the given principalId has systemAdmin/TimeSystemAdmin/TimeLocationAdmin roles on given aTimeBlock

Parameters:
principalId -
aTimeBlock -
Returns:

userHasRolesToEditTimeBlock

boolean userHasRolesToEditTimeBlock(String principalId,
                                    TimeBlock aTimeBlock)
Checks whether the given principalId has edit permission roles on given aTimeBlock

Parameters:
principalId -
aTimeBlock -
Returns:

isPayrollProcessorForDepartment

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

Parameters:
principalId -
dept -
asOfDate -
Returns:

isApproverForWorkArea

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

Parameters:
principalId -
workArea -
asOfDate -
Returns:


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