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.boolean
canEditUser
(AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Returns true if the currently logged in user can be editedboolean
canPreApprove
(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return true if the current user is able to make attempt pre-approvalsboolean
canRequestForOthers
(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request) Return true if the current user is able to make requests for other usersvoid
Initializes 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:
-