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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormsMultiviewAuthorizationService(IFormPanelConfiguration formPanelConfiguration, FormListFacade formListFacade, FormColumnFactory formColumnFactory) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanisUserAuthorizedOnFormResponse(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 notbooleanisUserAuthorizedOnFormResponseWithinWorkgroup(jakarta.servlet.http.HttpServletRequest request, Form form) Check if the user is authorized to access the form response within workgroup constraints
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Constructor Details
-
FormsMultiviewAuthorizationService
public FormsMultiviewAuthorizationService() -
FormsMultiviewAuthorizationService
public FormsMultiviewAuthorizationService(IFormPanelConfiguration formPanelConfiguration, FormListFacade formListFacade, FormColumnFactory formColumnFactory) Constructor- Parameters:
formPanelConfiguration- The FormPanelConfiguration to set to the FormPanelformListFacade- The FormListFacade to use by the serviceformColumnFactory- 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:
isUserAuthorizedOnFormResponsein interfaceIFormsMultiviewAuthorizationService- Parameters:
request- The request to use to determine if the user can access the details of the given form responsenIdFormResponse- 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:
isUserAuthorizedOnFormResponseWithinWorkgroupin interfaceIFormsMultiviewAuthorizationService- Parameters:
request- The request to use to determine if the user can access the details of the given form responseform- The Form- Returns:
- true if the user is authorized to access the form response, false otherwise
-