' in unix. You "become" that person, assume all of their
roles, etc.
One for the user the ACTUAL person is targeting: Targeting a user is being
granted read/write access to the users data.
See Javadocs for:
getCurrentTargetPerson(), getCurrentPerson(), getActualPerson(),
getBackdoorPerson(), getTargetPerson().
the getCurrent*() methods are most likely what you should be using in any
end user display logic. The methods get[ABT]*() can return null.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TKUser
public TKUser()
setTargetPerson
public static void setTargetPerson(String principalId)
isTargetInUse
public static boolean isTargetInUse()
clearTargetUser
public static void clearTargetUser()
getCurrentTargetPersonId
public static String getCurrentTargetPersonId()
- Returns a principal id for the target person if present, otherwise
the backdoor, and finally the actual.
- Returns:
- A principalId: target > backdoor > actual.
getCurrentTargetPerson
public static org.kuali.rice.kim.api.identity.Person getCurrentTargetPerson()
- Returns a Person object for the target person if present, otherwise
the backdoor, and finally the actual.
- Returns:
- A Person object: target > backdoor > actual.
getCurrentTargetRoles
public static UserRoles getCurrentTargetRoles()
- Returns a UserRoles object for the target person if present, otherwise
the backdoor, and finally the actual.
- Returns:
- A UserRoles object: target > backdoor > actual.
isSystemAdmin
public static boolean isSystemAdmin()
isLocationAdmin
public static boolean isLocationAdmin()
isDepartmentAdmin
public static boolean isDepartmentAdmin()
isGlobalViewOnly
public static boolean isGlobalViewOnly()
isDeptViewOnly
public static boolean isDeptViewOnly()
isActiveEmployee
public static boolean isActiveEmployee()
isSynchronous
public static boolean isSynchronous()
isReviewer
public static boolean isReviewer()
isApprover
public static boolean isApprover()
isTimesheetReviewer
public static boolean isTimesheetReviewer()
isTimesheetApprover
public static boolean isTimesheetApprover()
isAnyApproverActive
public static boolean isAnyApproverActive()
isApproverForTimesheet
public static boolean isApproverForTimesheet(String docId)
isDocumentReadable
public static boolean isDocumentReadable(String documentId)
isDocumentWritable
public static boolean isDocumentWritable(String documentId)
getReportingApprovalDepartments
public static com.google.common.collect.Multimap<String,Long> getReportingApprovalDepartments()
getReportingWorkAreas
public static Set<Long> getReportingWorkAreas()
getApproverWorkAreas
public static Set<Long> getApproverWorkAreas()
getReviewerWorkAreas
public static Set<Long> getReviewerWorkAreas()
getLocationAdminAreas
public static Set<String> getLocationAdminAreas()
getLocationAdminAreas
public static Set<String> getLocationAdminAreas(UserRoles userRoles)
getDepartmentAdminAreas
public static Set<String> getDepartmentAdminAreas()
getDepartmentAdminAreas
public static Set<String> getDepartmentAdminAreas(UserRoles userRoles)
getWorkAreasFromUserRoles
public static SortedSet<Long> getWorkAreasFromUserRoles()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.