Class FilterHelper

java.lang.Object
com.tremolosecurity.scalejs.helpers.FilterHelper
All Implemented Interfaces:
UiDecisions

public class FilterHelper extends Object implements UiDecisions
  • Constructor Details

    • FilterHelper

      public FilterHelper()
  • Method Details

    • init

      public void init(HashMap<String,Attribute> config)
      Description copied from interface: UiDecisions
      Initializes the decision class
      Specified by:
      init in interface UiDecisions
      Parameters:
      config -
    • canEditUser

      public boolean canEditUser(AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: UiDecisions
      Returns true if the currently logged in user can be edited
      Specified by:
      canEditUser in interface UiDecisions
      Returns:
    • availableAttributes

      public Set<String> availableAttributes(AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: UiDecisions
      Return a subset of attributes that a user is able to edit. Return null if all attributes are available
      Specified by:
      availableAttributes in interface UiDecisions
      Parameters:
      user -
      request -
      Returns:
    • canRequestForOthers

      public boolean canRequestForOthers(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: UiDecisions
      Return true if the current user is able to make requests for other users
      Specified by:
      canRequestForOthers in interface UiDecisions
      Parameters:
      workflowName - Name of the workflow to be tested
      user - Currently logged in user
      request - Current request
      Returns:
    • canPreApprove

      public boolean canPreApprove(String workflowName, AuthInfo user, jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: UiDecisions
      Return true if the current user is able to make attempt pre-approvals
      Specified by:
      canPreApprove in interface UiDecisions
      Parameters:
      workflowName - Name of the workflow to be tested
      user - Currently logged in user
      request - Current request
      Returns: