|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
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 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 canEditTimeBlock(String principalId, TimeBlock timeBlock)
boolean canEditTimeBlockAllFields(String principalId, TimeBlock timeBlock)
boolean canDeleteTimeBlock(String principalId, TimeBlock timeBlock)
boolean canEditOvertimeEarnCode(String principalId, TimeBlock timeBlock)
boolean userHasTimeSysLocationAdminRoles(String principalId, TimeBlock aTimeBlock)
principalId
has systemAdmin/TimeSystemAdmin/TimeLocationAdmin roles on given aTimeBlock
principalId
- aTimeBlock
-
boolean userHasRolesToEditTimeBlock(String principalId, TimeBlock aTimeBlock)
principalId
has edit permission roles on given aTimeBlock
principalId
- aTimeBlock
-
boolean isPayrollProcessorForDepartment(String principalId, String dept, org.joda.time.DateTime asOfDate)
principalId
has PayrollProcessor/PayrollProcessorDelegate roles on given dept
and asOfDate
principalId
- dept
- asOfDate
-
boolean isApproverForWorkArea(String principalId, Long workArea, org.joda.time.DateTime asOfDate)
principalId
has Approver/ApproverDelegate roles on given workArea
and asOfDate
principalId
- workArea
- asOfDate
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |