org.kuali.kpme.tklm.leave.service.permission
Interface LMPermissionService

All Known Implementing Classes:
LMPermissionServiceImpl

public interface LMPermissionService


Method Summary
 boolean canApproveLeaveRequest(String principalId, String documentId)
          Checks whether the given principalId can approve the LeaveRequest specified by documentId.
 boolean canBankOrTransferSSTOUsage(LeaveBlock leaveBlock)
          Determine if given leave block is a accrual generated System Scheduled Timeoff usage that can be banked/transferred and if the leave block is on the current leave calendar entry of the current targeted user
 boolean canBankSSTOUsage(LeaveBlock leaveBlock)
          Determine if given leave block is a accrual generated System Scheduled Timeoff usage that can be banked and if the leave block is on the current leave calendar entry of the current targeted user
 boolean canDeleteLeaveBlock(String principalId, LeaveBlock leaveBlock)
           
 boolean canEditLeaveBlock(String principalId, LeaveBlock leaveBlock)
           
 boolean canEditLeaveRequest(String principalId, String documentId)
          Checks whether the given principalId can edit the LeaveRequest specified by documentId.
 boolean canSubmitLeaveRequest(String principalId, String documentId)
          Checks whether the given principalId can submit the LeaveRequest specified by documentId.
 boolean canSuperUserAdministerLeaveRequest(String principalId, String documentId)
          Checks whether the given principalId can super user administer the LeaveRequest specified by documentId.
 boolean canTransferSSTOUsage(LeaveBlock leaveBlock)
          Determine if given leave block is a accrual generated System Scheduled Timeoff usage that can be transferred and if the leave block is on the current leave calendar entry of the current targeted user
 boolean canViewLeaveRequest(String principalId, String documentId)
          Checks whether the given principalId can view the LeaveRequest specified by documentId.
 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 userHasRolesToEditLeaveBlock(String principalId, LeaveBlock aLeaveBlock)
          Determine if the given principalId is authorized to edit given aLeaveBlock
 

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.

canViewLeaveRequest

boolean canViewLeaveRequest(String principalId,
                            String documentId)
Checks whether the given principalId can view the LeaveRequest specified by documentId.

Parameters:
principalId - The person to check
documentId - The id of the document
Returns:
true if principalId can view the LeaveRequest specified by documentId, false otherwise.

canEditLeaveRequest

boolean canEditLeaveRequest(String principalId,
                            String documentId)
Checks whether the given principalId can edit the LeaveRequest specified by documentId.

Parameters:
principalId - The person to check
documentId - The id of the document
Returns:
true if principalId can edit the LeaveRequest specified by documentId, false otherwise.

canSubmitLeaveRequest

boolean canSubmitLeaveRequest(String principalId,
                              String documentId)
Checks whether the given principalId can submit the LeaveRequest specified by documentId.

Parameters:
principalId - The person to check
documentId - The id of the document
Returns:
true if principalId can submit the LeaveRequest specified by documentId, false otherwise.

canApproveLeaveRequest

boolean canApproveLeaveRequest(String principalId,
                               String documentId)
Checks whether the given principalId can approve the LeaveRequest specified by documentId.

Parameters:
principalId - The person to check
documentId - The id of the document
Returns:
true if principalId can approve the LeaveRequest specified by documentId, false otherwise.

canSuperUserAdministerLeaveRequest

boolean canSuperUserAdministerLeaveRequest(String principalId,
                                           String documentId)
Checks whether the given principalId can super user administer the LeaveRequest specified by documentId.

Parameters:
principalId - The person to check
documentId - The id of the document
Returns:
true if principalId can super user administer the LeaveRequest specified by documentId, 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.

canEditLeaveBlock

boolean canEditLeaveBlock(String principalId,
                          LeaveBlock leaveBlock)

canDeleteLeaveBlock

boolean canDeleteLeaveBlock(String principalId,
                            LeaveBlock leaveBlock)

canBankOrTransferSSTOUsage

boolean canBankOrTransferSSTOUsage(LeaveBlock leaveBlock)
Determine if given leave block is a accrual generated System Scheduled Timeoff usage that can be banked/transferred and if the leave block is on the current leave calendar entry of the current targeted user

Parameters:
leaveBlock -
Returns:

canTransferSSTOUsage

boolean canTransferSSTOUsage(LeaveBlock leaveBlock)
Determine if given leave block is a accrual generated System Scheduled Timeoff usage that can be transferred and if the leave block is on the current leave calendar entry of the current targeted user

Parameters:
lb -
Returns:

canBankSSTOUsage

boolean canBankSSTOUsage(LeaveBlock leaveBlock)
Determine if given leave block is a accrual generated System Scheduled Timeoff usage that can be banked and if the leave block is on the current leave calendar entry of the current targeted user

Parameters:
leaveBlock -
Returns:

userHasRolesToEditLeaveBlock

boolean userHasRolesToEditLeaveBlock(String principalId,
                                     LeaveBlock aLeaveBlock)
Determine if the given principalId is authorized to edit given aLeaveBlock

Parameters:
principalId -
aLeaveBlock -
Returns:


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