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, setWorkAreaService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInWorkArea, isAuthorizedInDepartment, isAuthorizedInLocation, isAuthorizedInWorkArea
public LMPermissionServiceImpl()
public boolean isAuthorized(String principalId, String permissionName, org.joda.time.DateTime asOfDate)
LMPermissionService
principalId
is authorized to perform permissionName
.isAuthorized
in interface LMPermissionService
principalId
- 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)
HrPermissionServiceBase
principalId
is authorized to perform permissionName
for the given role qualifications.isAuthorized
in interface LMPermissionService
isAuthorized
in class HrPermissionServiceBase
principalId
- 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)
LMPermissionService
principalId
can view the LeaveRequest specified by documentId
.canViewLeaveRequest
in interface LMPermissionService
principalId
- 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)
LMPermissionService
principalId
can edit the LeaveRequest specified by documentId
.canEditLeaveRequest
in interface LMPermissionService
principalId
- 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)
LMPermissionService
principalId
can submit the LeaveRequest specified by documentId
.canSubmitLeaveRequest
in interface LMPermissionService
principalId
- 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)
LMPermissionService
principalId
can approve the LeaveRequest specified by documentId
.canApproveLeaveRequest
in interface LMPermissionService
principalId
- 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)
LMPermissionService
principalId
can super user administer the LeaveRequest specified by documentId
.canSuperUserAdministerLeaveRequest
in interface LMPermissionService
principalId
- 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)
LMPermissionService
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given permission details.isAuthorizedByTemplate
in interface LMPermissionService
principalId
- 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)
HrPermissionServiceBase
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given permission details and role qualifications.isAuthorizedByTemplate
in interface LMPermissionService
isAuthorizedByTemplate
in class HrPermissionServiceBase
principalId
- 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 LMPermissionService
public boolean userHasRolesToEditLeaveBlock(String principalId, LeaveBlockContract aLeaveBlock)
LMPermissionService
principalId
is authorized to edit given aLeaveBlock
userHasRolesToEditLeaveBlock
in interface LMPermissionService
public boolean canDeleteLeaveBlock(String principalId, LeaveBlockContract leaveBlock)
canDeleteLeaveBlock
in interface LMPermissionService
public boolean canBankOrTransferSSTOUsage(LeaveBlockContract lb)
LMPermissionService
canBankOrTransferSSTOUsage
in interface LMPermissionService
public boolean canBankSSTOUsage(LeaveBlockContract lb)
LMPermissionService
canBankSSTOUsage
in interface LMPermissionService
public boolean canTransferSSTOUsage(LeaveBlockContract lb)
LMPermissionService
canTransferSSTOUsage
in interface LMPermissionService
public LeaveCalendarService getLeaveCalendarService()
public void setLeaveCalendarService(LeaveCalendarService leaveCalendarService)
public LeaveRequestDocumentService getLeaveRequestDocumentService()
public void setLeaveRequestDocumentService(LeaveRequestDocumentService leaveRequestDocumentService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.