Interface UiDecisions
-
Method Summary
Modifier and TypeMethodDescriptionavailableAttributes(AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return a subset of attributes that a user is able to edit.booleancanEditUser(AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Returns true if the currently logged in user can be editedbooleancanPreApprove(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return true if the current user is able to make attempt pre-approvalsbooleancanRequestForOthers(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return true if the current user is able to make requests for other usersvoidInitializes the decision class
-
Method Details
-
init
-
canEditUser
Returns true if the currently logged in user can be edited- Returns:
-
availableAttributes
-
canRequestForOthers
boolean canRequestForOthers(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return true if the current user is able to make requests for other users- Parameters:
workflowName- Name of the workflow to be testeduser- Currently logged in userrequest- Current request- Returns:
-
canPreApprove
boolean canPreApprove(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return true if the current user is able to make attempt pre-approvals- Parameters:
workflowName- Name of the workflow to be testeduser- Currently logged in userrequest- Current request- Returns:
-