fr.paris.lutece.plugins.form.service
Class FormService

java.lang.Object
  extended by fr.paris.lutece.plugins.form.service.FormService

public class FormService
extends java.lang.Object

FormService


Constructor Summary
FormService()
           
 
Method Summary
static FormService getInstance()
          Returns the instance of the singleton
 java.util.Map<java.lang.String,java.lang.Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
          Build the advanced parameters management
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormService

public FormService()
Method Detail

init

public void init()
Initialize the Form service


getInstance

public static FormService getInstance()
Returns the instance of the singleton

Returns:
The instance of the singleton

getManageAdvancedParameters

public java.util.Map<java.lang.String,java.lang.Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
Build the advanced parameters management

Parameters:
user - the current user
Returns:
The model for the advanced parameters

isSessionValid

public boolean isSessionValid(Form form,
                              javax.servlet.http.HttpServletRequest request)
Check if the user is authorized to view the form.
This method checks every mandatory EntryTypeSession, and check if there is a value for the attribute of the session.

Parameters:
form - the form
request - the HTTP request
Returns:
true if he is authorized, false otherwise


Copyright © 2011 Mairie de Paris. All Rights Reserved.