public class LMPermissionServiceImpl extends HrPermissionServiceBase implements LMPermissionService
| Constructor and Description |
|---|
LMPermissionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canApproveLeaveRequest(String principalId,
String documentId)
Checks whether the given
principalId can approve the LeaveRequest specified by documentId. |
boolean |
canBankOrTransferSSTOUsage(LeaveBlockContract lb)
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(LeaveBlockContract lb)
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,
LeaveBlockContract leaveBlock) |
boolean |
canEditLeaveBlock(String principalId,
LeaveBlockContract 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(LeaveBlockContract lb)
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. |
LeaveCalendarService |
getLeaveCalendarService() |
LeaveRequestDocumentService |
getLeaveRequestDocumentService() |
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. |
void |
setLeaveCalendarService(LeaveCalendarService leaveCalendarService) |
void |
setLeaveRequestDocumentService(LeaveRequestDocumentService leaveRequestDocumentService) |
boolean |
userHasRolesToEditLeaveBlock(String principalId,
LeaveBlockContract aLeaveBlock)
Determine if the given
principalId is authorized to edit given aLeaveBlock |
getDepartmentService, getKimTypeInfoService, getMatchingPermissions, getPermissionService, getPermissionTypeService, getPermissionTypeServicesByTemplateId, getRoleService, getWorkAreaService, groupPermissionsByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInWorkArea, isAuthorizedByTemplateInWorkArea, isAuthorizedInDepartment, isAuthorizedInLocation, isAuthorizedInWorkArea, setDepartmentService, setKimTypeInfoService, setPermissionService, setRoleService, setWorkAreaServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInWorkArea, isAuthorizedInDepartment, isAuthorizedInLocation, isAuthorizedInWorkAreapublic LMPermissionServiceImpl()
public boolean isAuthorized(String principalId, String permissionName, org.joda.time.DateTime asOfDate)
LMPermissionServiceprincipalId is authorized to perform permissionName.isAuthorized in interface LMPermissionServiceprincipalId - The person to check the permission forpermissionName - The name of the permissionasOfDate - The effective date of the permissionprincipalId is authorized to perform permissionName, false otherwise.public boolean isAuthorized(String principalId, String permissionName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
HrPermissionServiceBaseprincipalId is authorized to perform permissionName for the given role qualifications.isAuthorized in interface LMPermissionServiceisAuthorized in class HrPermissionServiceBaseprincipalId - The person to check the permission forpermissionName - The name of the permissionqualification - The map of role qualifiers for the personasOfDate - The effective date of the permissionprincipalId is authorized to perform permissionName, false otherwise.public boolean canViewLeaveRequest(String principalId, String documentId)
LMPermissionServiceprincipalId can view the LeaveRequest specified by documentId.canViewLeaveRequest in interface LMPermissionServiceprincipalId - The person to checkdocumentId - The id of the documentprincipalId can view the LeaveRequest specified by documentId, false otherwise.public boolean canEditLeaveRequest(String principalId, String documentId)
LMPermissionServiceprincipalId can edit the LeaveRequest specified by documentId.canEditLeaveRequest in interface LMPermissionServiceprincipalId - The person to checkdocumentId - The id of the documentprincipalId can edit the LeaveRequest specified by documentId, false otherwise.public boolean canSubmitLeaveRequest(String principalId, String documentId)
LMPermissionServiceprincipalId can submit the LeaveRequest specified by documentId.canSubmitLeaveRequest in interface LMPermissionServiceprincipalId - The person to checkdocumentId - The id of the documentprincipalId can submit the LeaveRequest specified by documentId, false otherwise.public boolean canApproveLeaveRequest(String principalId, String documentId)
LMPermissionServiceprincipalId can approve the LeaveRequest specified by documentId.canApproveLeaveRequest in interface LMPermissionServiceprincipalId - The person to checkdocumentId - The id of the documentprincipalId can approve the LeaveRequest specified by documentId, false otherwise.public boolean canSuperUserAdministerLeaveRequest(String principalId, String documentId)
LMPermissionServiceprincipalId can super user administer the LeaveRequest specified by documentId.canSuperUserAdministerLeaveRequest in interface LMPermissionServiceprincipalId - The person to checkdocumentId - The id of the documentprincipalId can super user administer the LeaveRequest specified by documentId, false otherwise.public boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, org.joda.time.DateTime asOfDate)
LMPermissionServiceprincipalId is authorized to perform any permission templated by permissionTemplateName for the given permission details.isAuthorizedByTemplate in interface LMPermissionServiceprincipalId - The person to check the permission fornamespaceCode - The namespace for the permission templatepermissionTemplateName - The name of the permission templatepermissionDetails - The map of permission details for the permissionasOfDate - The effective date of the permissionprincipalId is authorized to perform any permission templated by permissionTemplateName, false otherwise.public boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
HrPermissionServiceBaseprincipalId is authorized to perform any permission templated by permissionTemplateName for the given permission details and role qualifications.isAuthorizedByTemplate in interface LMPermissionServiceisAuthorizedByTemplate in class HrPermissionServiceBaseprincipalId - The person to check the permission fornamespaceCode - The namespace for the permission templatepermissionTemplateName - The name of the permission templatepermissionDetails - The map of permission details for the permissionqualification - The map of role qualifiers for the personasOfDate - The effective date of the permissionprincipalId is authorized to perform any permission templated by permissionTemplateName, false otherwise.public boolean canEditLeaveBlock(String principalId, LeaveBlockContract leaveBlock)
canEditLeaveBlock in interface LMPermissionServicepublic boolean userHasRolesToEditLeaveBlock(String principalId, LeaveBlockContract aLeaveBlock)
LMPermissionServiceprincipalId is authorized to edit given aLeaveBlockuserHasRolesToEditLeaveBlock in interface LMPermissionServicepublic boolean canDeleteLeaveBlock(String principalId, LeaveBlockContract leaveBlock)
canDeleteLeaveBlock in interface LMPermissionServicepublic boolean canBankOrTransferSSTOUsage(LeaveBlockContract lb)
LMPermissionServicecanBankOrTransferSSTOUsage in interface LMPermissionServicepublic boolean canBankSSTOUsage(LeaveBlockContract lb)
LMPermissionServicecanBankSSTOUsage in interface LMPermissionServicepublic boolean canTransferSSTOUsage(LeaveBlockContract lb)
LMPermissionServicecanTransferSSTOUsage in interface LMPermissionServicepublic LeaveCalendarService getLeaveCalendarService()
public void setLeaveCalendarService(LeaveCalendarService leaveCalendarService)
public LeaveRequestDocumentService getLeaveRequestDocumentService()
public void setLeaveRequestDocumentService(LeaveRequestDocumentService leaveRequestDocumentService)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.