|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.kpme.core.service.permission.HrPermissionServiceBase org.kuali.kpme.tklm.time.service.permission.TKPermissionServiceImpl
public class TKPermissionServiceImpl
Constructor Summary | |
---|---|
TKPermissionServiceImpl()
|
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)
|
org.kuali.rice.kim.api.permission.PermissionService |
getPermissionService()
|
TimesheetService |
getTimesheetService()
|
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 |
isPayrollProcessorForDepartment(String principalId,
String dept,
org.joda.time.DateTime asOfDate)
Checks whether the given principalId has PayrollProcessor/PayrollProcessorDelegate roles on given dept and asOfDate |
void |
setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)
|
void |
setTimesheetService(TimesheetService timesheetService)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.kpme.tklm.time.service.permission.TKPermissionService |
---|
isAuthorizedByTemplateInDepartment, isAuthorizedByTemplateInLocation, isAuthorizedByTemplateInWorkArea, isAuthorizedInDepartment, isAuthorizedInLocation, isAuthorizedInWorkArea |
Constructor Detail |
---|
public TKPermissionServiceImpl()
Method Detail |
---|
public boolean isAuthorized(String principalId, String permissionName, org.joda.time.DateTime asOfDate)
TKPermissionService
principalId
is authorized to perform permissionName
.
isAuthorized
in interface TKPermissionService
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.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 TKPermissionService
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 permission
principalId
is authorized to perform permissionName
, false otherwise.public boolean isAuthorizedByTemplate(String principalId, String namespaceCode, String permissionTemplateName, Map<String,String> permissionDetails, org.joda.time.DateTime asOfDate)
TKPermissionService
principalId
is authorized to perform any permission templated by permissionTemplateName
for the given permission details.
isAuthorizedByTemplate
in interface TKPermissionService
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.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 TKPermissionService
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 permission
principalId
is authorized to perform any permission templated by permissionTemplateName
, false otherwise.public boolean canEditTimeBlock(String principalId, TimeBlock timeBlock)
canEditTimeBlock
in interface TKPermissionService
public boolean userHasRolesToEditTimeBlock(String principalId, TimeBlock aTimeBlock)
TKPermissionService
principalId
has edit permission roles on given aTimeBlock
userHasRolesToEditTimeBlock
in interface TKPermissionService
public boolean userHasTimeSysLocationAdminRoles(String principalId, TimeBlock aTimeBlock)
TKPermissionService
principalId
has systemAdmin/TimeSystemAdmin/TimeLocationAdmin roles on given aTimeBlock
userHasTimeSysLocationAdminRoles
in interface TKPermissionService
public boolean canEditTimeBlockAllFields(String principalId, TimeBlock timeBlock)
canEditTimeBlockAllFields
in interface TKPermissionService
public boolean canDeleteTimeBlock(String principalId, TimeBlock timeBlock)
canDeleteTimeBlock
in interface TKPermissionService
public boolean canEditOvertimeEarnCode(String principalId, TimeBlock timeBlock)
canEditOvertimeEarnCode
in interface TKPermissionService
public boolean isPayrollProcessorForDepartment(String principalId, String dept, org.joda.time.DateTime asOfDate)
TKPermissionService
principalId
has PayrollProcessor/PayrollProcessorDelegate roles on given dept
and asOfDate
isPayrollProcessorForDepartment
in interface TKPermissionService
public boolean isApproverForWorkArea(String principalId, Long workArea, org.joda.time.DateTime asOfDate)
TKPermissionService
principalId
has Approver/ApproverDelegate roles on given workArea
and asOfDate
isApproverForWorkArea
in interface TKPermissionService
public org.kuali.rice.kim.api.permission.PermissionService getPermissionService()
public void setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)
public TimesheetService getTimesheetService()
public void setTimesheetService(TimesheetService timesheetService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |