Class FormsMultiviewAuthorizationService

    • Constructor Detail

      • 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 Detail

      • isUserAuthorizedOnFormResponse

        public boolean isUserAuthorizedOnFormResponse​(javax.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​(javax.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