Class FormsMultiviewAuthorizationService
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.FormsMultiviewAuthorizationService
-
- All Implemented Interfaces:
IFormsMultiviewAuthorizationService
public class FormsMultiviewAuthorizationService extends java.lang.Object implements IFormsMultiviewAuthorizationService
Implementation of the IFormsMultiviewAuthorizationService interface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAME
-
Constructor Summary
Constructors Constructor Description FormsMultiviewAuthorizationService(IFormPanelConfiguration formPanelConfiguration, FormListFacade formListFacade, FormColumnFactory formColumnFactory)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUserAuthorizedOnFormResponse(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 notbooleanisUserAuthorizedOnFormResponseWithinWorkgroup(javax.servlet.http.HttpServletRequest request, Form form)Check if the user is authorized to access the form response within workgroup constraints
-
-
-
Field Detail
-
BEAN_NAME
public static final java.lang.String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 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:
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(javax.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
-
-