Interface UiDecisions

All Known Implementing Classes:
FilterHelper

public interface UiDecisions
  • Method Summary

    Modifier and Type
    Method
    Description
    availableAttributes(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 edited
    boolean
    canPreApprove(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
    Return true if the current user is able to make attempt pre-approvals
    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
    void
    Initializes the decision class
  • Method Details

    • init

      void init(HashMap<String,Attribute> config)
      Initializes the decision class
      Parameters:
      config -
    • canEditUser

      boolean canEditUser(AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
      Returns true if the currently logged in user can be edited
      Returns:
    • availableAttributes

      Set<String> availableAttributes(AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
      Return a subset of attributes that a user is able to edit. Return null if all attributes are available
      Parameters:
      user -
      request -
      Returns:
    • 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 tested
      user - Currently logged in user
      request - 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 tested
      user - Currently logged in user
      request - Current request
      Returns: