Class FormsMultiviewAuthorizationService

java.lang.Object
fr.paris.lutece.plugins.forms.service.FormsMultiviewAuthorizationService
All Implemented Interfaces:
IFormsMultiviewAuthorizationService

@ApplicationScoped public class FormsMultiviewAuthorizationService extends Object implements IFormsMultiviewAuthorizationService
Implementation of the IFormsMultiviewAuthorizationService interface
  • Field Details

  • Constructor Details

    • FormsMultiviewAuthorizationService

      public FormsMultiviewAuthorizationService()
    • FormsMultiviewAuthorizationService

      public FormsMultiviewAuthorizationService(IFormPanelConfiguration formPanelConfiguration, FormListFacade formListFacade, FormColumnFactory formColumnFactory)
      Constructor
      Parameters:
      formPanelConfiguration - The FormPanelConfiguration to set to the FormPanel
      formListFacade - The FormListFacade to use by the service
      formColumnFactory - The FormColumnFactory to use by the service
  • Method Details

    • isUserAuthorizedOnFormResponse

      public boolean isUserAuthorizedOnFormResponse(jakarta.servlet.http.HttpServletRequest request, int nIdFormResponse)
      Return the boolean which tell if the connected user is authorized to access the form response details or not
      Specified by:
      isUserAuthorizedOnFormResponse in interface IFormsMultiviewAuthorizationService
      Parameters:
      request - The request to use to determine if the user can access the details of the given form response
      nIdFormResponse - The identifier of the form response to access
      Returns:
      the boolean which tell if the connected user is authorized to access the form response or not
    • isUserAuthorizedOnFormResponseWithinWorkgroup

      public boolean isUserAuthorizedOnFormResponseWithinWorkgroup(jakarta.servlet.http.HttpServletRequest request, Form form)
      Check if the user is authorized to access the form response within workgroup constraints
      Specified by:
      isUserAuthorizedOnFormResponseWithinWorkgroup in interface IFormsMultiviewAuthorizationService
      Parameters:
      request - The request to use to determine if the user can access the details of the given form response
      form - The Form
      Returns:
      true if the user is authorized to access the form response, false otherwise