|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserRoles
Class to set the contract between Users and Roles.
Method Summary | |
---|---|
boolean |
canSubmitTimesheet(CalendarDocumentContract doc)
|
boolean |
canSubmitTimesheet(String docId)
|
Set<String> |
getActiveAssignmentIds()
Provides a Set of Assignment ids that this user is active under. |
Set<Long> |
getApproverWorkAreas()
Provides a set of WorkArea names that this user is an approver for. |
Set<String> |
getDepartmentViewOnlyDepartments()
Provides a Set |
Set<String> |
getOrgAdminCharts()
Provides a Set |
Set<String> |
getOrgAdminDepartments()
Provides a Set |
String |
getPrincipalId()
|
Set<Long> |
getReviewerWorkAreas()
Provides a Set of WorkArea names that this user is a reviewer for. |
boolean |
isActiveEmployee()
Does the current user have any active assignments? |
boolean |
isAnyApproverActive()
Does the current user have any active approver roles? Approver roles attach at the WorkArea level. |
boolean |
isApproverForPerson(String principalId)
|
boolean |
isApproverForTimesheet(CalendarDocumentContract doc)
Indicates whether or not the current can approve the provided timesheet. |
boolean |
isApproverForTimesheet(String docId)
|
boolean |
isDepartmentAdmin()
|
boolean |
isDepartmentAdminForPerson(String principalId)
|
boolean |
isDeptViewOnly()
|
boolean |
isDeptViewOnlyForPerson(String principalId)
|
boolean |
isDocumentReadable(CalendarDocumentContract document)
|
boolean |
isDocumentReadable(String documentId)
|
boolean |
isDocumentWritable(CalendarDocumentContract document)
|
boolean |
isDocumentWritable(String documentId)
|
boolean |
isGlobalViewOnly()
Does the current user have the Global View Only role? |
boolean |
isLocationAdmin()
|
boolean |
isLocationAdminForPerson(String principalId)
|
boolean |
isSynchronous()
Does the current user have an assignment that is marked synchronous? |
boolean |
isSystemAdmin()
Is the current user a system administrator? |
boolean |
isTimesheetApprover()
Does the current user have any role that grants permission to approve timesheets? |
boolean |
isTimesheetReviewer()
|
boolean |
isTimesheetReviewerForPerson(String principalId)
|
Method Detail |
---|
boolean isLocationAdmin()
boolean isDepartmentAdmin()
String getPrincipalId()
boolean isTimesheetReviewer()
boolean isSystemAdmin()
boolean isActiveEmployee()
boolean isAnyApproverActive()
boolean isTimesheetApprover()
boolean isGlobalViewOnly()
boolean isSynchronous()
Set<Long> getApproverWorkAreas()
Set<Long> getReviewerWorkAreas()
Set<String> getActiveAssignmentIds()
Set<String> getDepartmentViewOnlyDepartments()
Set<String> getOrgAdminDepartments()
Set<String> getOrgAdminCharts()
boolean isDeptViewOnly()
boolean isApproverForTimesheet(CalendarDocumentContract doc)
doc
- The TimesheetDocument in question.
boolean isApproverForTimesheet(String docId)
boolean canSubmitTimesheet(CalendarDocumentContract doc)
boolean canSubmitTimesheet(String docId)
boolean isDocumentReadable(CalendarDocumentContract document)
boolean isDocumentReadable(String documentId)
boolean isDocumentWritable(CalendarDocumentContract document)
boolean isDocumentWritable(String documentId)
boolean isApproverForPerson(String principalId)
boolean isDepartmentAdminForPerson(String principalId)
boolean isDeptViewOnlyForPerson(String principalId)
boolean isLocationAdminForPerson(String principalId)
boolean isTimesheetReviewerForPerson(String principalId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |