1 package fr.paris.lutece.plugins.crm.modules.form.service; 2 3 import javax.servlet.http.HttpServletRequest; 4 5 import fr.paris.lutece.plugins.form.business.Form; 6 7 /** 8 * 9 * ICRMParametersService 10 * 11 */ 12 public interface ICRMParametersService { 13 14 /** 15 * Return the crm demand type Id associated to the form 16 * @param request The HTTP request 17 * @param form the form 18 * @return the demand type Id associated to the form 19 */ 20 String getIdTypeDemande(HttpServletRequest request, Form form); 21 /** 22 * Return the WebApp Code associated to the form. Use when multi crm web app can access to the form 23 * @param request request The HTTP request 24 * @param form the form 25 * @return the WebApp Code associated to the form 26 */ 27 String getCrmWebAppCode(HttpServletRequest request, Form form); 28 29 /** 30 * 31 * @return true if the association between form and crm demand type id and crm web app code are record in the file crm-form_context.xml 32 */ 33 boolean isEnabledLocalCrmParameters( ); 34 35 /** 36 * init CRM Parameter Service 37 */ 38 void init( ); 39 40 }