public final class FormService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkMyLuteceAuthentification(Form form,
javax.servlet.http.HttpServletRequest request)
check if authentification
|
ICompositeDisplay |
formDisplayToComposite(FormDisplay formDisplay)
Get the right composite from the given formDisplay
|
List<ICompositeDisplay> |
getStepCompositeList(int nIdStep)
Get the full children composite list of the given step
|
boolean |
isFileAccessAuthorized(javax.servlet.http.HttpServletRequest request,
int nIdResponse,
int nIdFile)
Check if a user is authorized to access a File from its given identifier
|
void |
removeForm(int nIdForm,
fr.paris.lutece.portal.business.user.AdminUser adminUser)
Remove a given Form, all its steps and composites, workflow resources.
|
void |
saveForm(FormResponseManager formResponseManager,
boolean isBackUp)
Save the FormResponse instance
|
public static final String BEAN_NAME
public void saveForm(FormResponseManager formResponseManager, boolean isBackUp)
formResponseManager - The formResponseManager to saveisBackUp - The boolean which indicate if the saving is a backuppublic List<ICompositeDisplay> getStepCompositeList(int nIdStep)
nIdStep - The step primary keypublic ICompositeDisplay formDisplayToComposite(FormDisplay formDisplay)
formDisplay - The formDisplaypublic void removeForm(int nIdForm,
fr.paris.lutece.portal.business.user.AdminUser adminUser)
nIdForm - The identifier of the form to be deletedadminUser - the userpublic boolean isFileAccessAuthorized(javax.servlet.http.HttpServletRequest request,
int nIdResponse,
int nIdFile)
request - The request to use to retrieve information of the current usernIdResponse - The identifier of the Response which have the filenIdFile - The identifier of the file to accesspublic void checkMyLuteceAuthentification(Form form, javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.security.UserNotSignedException
form - Formrequest - HttpServletRequestfr.paris.lutece.portal.service.security.UserNotSignedException - exception if the form requires an authentification and the user is not loggedCopyright © 2018 City of Paris. All rights reserved.