|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
boolean isAuthorized(String principalId, String permissionName, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
.
principalId
- The person to check the permission forpermissionName
- The name of the permissionasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
, false otherwise.boolean isAuthorized(String principalId, String permissionName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given role qualifications.
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 permission
principalId
is authorized to perform permissionName
, false otherwise.boolean isAuthorizedInWorkArea(String principalId, String permissionName, Long workArea, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given work area.
principalId
- The person to check the permission forpermissionName
- The name of the permissionworkArea
- The work area qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given work area, false otherwise.boolean isAuthorizedInDepartment(String principalId, String permissionName, String department, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given department.
principalId
- The person to check the permission forpermissionName
- The name of the permissiondepartment
- The department qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given department, false otherwise.boolean isAuthorizedInLocation(String principalId, String permissionName, String location, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given location.
principalId
- The person to check the permission forpermissionName
- The name of the permissionlocation
- The location qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given location, false otherwise.boolean canViewLeaveRequest(String principalId, String documentId)
principalId
can view the LeaveRequest specified by documentId
.
principalId
- The person to checkdocumentId
- The id of the document
principalId
can view the LeaveRequest specified by documentId
, false otherwise.boolean canEditLeaveRequest(String principalId, String documentId)
principalId
can edit the LeaveRequest specified by documentId
.
principalId
- The person to checkdocumentId
- The id of the document
principalId
can edit the LeaveRequest specified by documentId
, false otherwise.boolean canSubmitLeaveRequest(String principalId, String documentId)
principalId
can submit the LeaveRequest specified by documentId
.
principalId
- The person to checkdocumentId
- The id of the document
principalId
can submit the LeaveRequest specified by documentId
, false otherwise.boolean canApproveLeaveRequest(String principalId, String documentId)
principalId
can approve the LeaveRequest specified by documentId
.
principalId
- The person to checkdocumentId
- The id of the document
principalId
can approve the LeaveRequest specified by documentId
, false otherwise.boolean canSuperUserAdministerLeaveRequest(String principalId, String documentId)
principalId
can super user administer the LeaveRequest specified by documentId
.
principalId
- The person to checkdocumentId
- The id of the document
principalId
can super user administer the LeaveRequest specified by documentId
, false otherwise.boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given permission details.
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 permission
principalId
is authorized to perform any permission templated by permissionTemplateName
, false otherwise.boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given permission details and role qualifications.
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 permission
principalId
is authorized to perform any permission templated by permissionTemplateName
, false otherwise.boolean isAuthorizedByTemplateInWorkArea(String principalId, String namespaceCode, String permissionTemplateName, Long workArea, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given work area.
principalId
- The person to check the permission forpermissionName
- The name of the permissionworkArea
- The work area qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given work area, false otherwise.boolean isAuthorizedByTemplateInDepartment(String principalId, String namespaceCode, String permissionTemplateName, String department, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given department.
principalId
- The person to check the permission forpermissionName
- The name of the permissiondepartment
- The department qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given department, false otherwise.boolean isAuthorizedByTemplateInLocation(String principalId, String namespaceCode, String permissionTemplateName, String location, org.joda.time.DateTime asOfDate)
principalId
is authorized to perform permissionName
for the given location.
principalId
- The person to check the permission forpermissionName
- The name of the permissionlocation
- The location qualifierasOfDate
- The effective date of the permission
principalId
is authorized to perform permissionName
for the given location, false otherwise.boolean canEditLeaveBlock(String principalId, LeaveBlock leaveBlock)
boolean canDeleteLeaveBlock(String principalId, LeaveBlock leaveBlock)
boolean canBankOrTransferSSTOUsage(LeaveBlock leaveBlock)
leaveBlock
-
boolean canTransferSSTOUsage(LeaveBlock leaveBlock)
lb
-
boolean canBankSSTOUsage(LeaveBlock leaveBlock)
leaveBlock
-
boolean userHasRolesToEditLeaveBlock(String principalId, LeaveBlock aLeaveBlock)
principalId
is authorized to edit given aLeaveBlock
principalId
- aLeaveBlock
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |