public final class FormService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
cleanFormResponses(Form form)
Clean answers of a given form
|
List<Integer> |
getAnonymizeEntryList(int nIdForm)
Get the list of entries of a form to anonymize
|
static FormService |
getInstance()
Returns the instance of the singleton
|
Map<String,Object> |
getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
Build the advanced parameters management
|
int |
getMaxNumber(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
Get the max number
|
fr.paris.lutece.portal.business.style.Theme |
getXPageTheme(int nIdForm)
Gets the x page theme.
|
boolean |
hasFormErrors(javax.servlet.http.HttpSession session)
Check if the session has a list of responses without form errors and the
validate requirement is indeed checked
|
boolean |
hasRecap(Form form)
Check if the given form has a recap or not
|
void |
init()
Initialize the Form service
|
boolean |
isSessionValid(Form form,
javax.servlet.http.HttpServletRequest request)
Check if the user is authorized to view the form.
|
void |
updateAnonymizeEntryList(int nIdForm,
List<Integer> listEntryIds)
Update the list of entries of a form to anonymize
|
public void init()
public static FormService getInstance()
public Map<String,Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
user - the current userpublic boolean isSessionValid(Form form, javax.servlet.http.HttpServletRequest request)
form - the formrequest - the HTTP requestpublic boolean hasRecap(Form form)
form - the formpublic boolean hasFormErrors(javax.servlet.http.HttpSession session)
session - the HTTP sessionpublic int getMaxNumber(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
entry - the id of the entry type numberingpublic fr.paris.lutece.portal.business.style.Theme getXPageTheme(int nIdForm)
nIdForm - the n id formpublic List<Integer> getAnonymizeEntryList(int nIdForm)
nIdForm - The id of the formpublic void updateAnonymizeEntryList(int nIdForm,
List<Integer> listEntryIds)
nIdForm - The id of the formlistEntryIds - An array containing ids of entries of the form to
anonymizepublic void cleanFormResponses(Form form)
form - The form the clean the answers ofCopyright © 2016 Mairie de Paris. All rights reserved.