public final class EntryService extends fr.paris.lutece.portal.service.util.RemovalListenerService implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_NAME
Name of the bean of this service
|
| Constructor and Description |
|---|
EntryService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addListEntryToModel(int nIdForm,
Map<String,Object> model)
Add the entries to the model
|
static fr.paris.lutece.plugins.genericattributes.business.EntryFilter |
buildEntryFilter(int nIdForm)
Build an entry filter with static parameter
|
static List<fr.paris.lutece.plugins.genericattributes.business.Entry> |
findListEntry(int nIdForm)
Find all the entries (with its fields) of a form
|
static String |
getEntryUrl(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
Add parameters to the url with the entry given
|
static List<fr.paris.lutece.plugins.genericattributes.business.Entry> |
getFilter(int iform,
boolean bDisplayFront)
Get the list of entries filtered
|
static void |
getHtmlEntry(Map<String,Object> model,
int nIdEntry,
StringBuilder stringBuffer,
Locale locale,
boolean bDisplayFront,
AppointmentDTO appointmentDTO)
Get the html part of the additional entry of the form
|
static List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> |
getResponseEntry(javax.servlet.http.HttpServletRequest request,
int nIdEntry,
Locale locale,
AppointmentDTO appointment)
Add to the map of the appointment the response of the additional entry of the form
|
static EntryService |
getService()
Get an instance of the service
|
static Boolean |
isFieldInTheResponseList(int nIdField,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
Tell if the id of the field given is in the response list
|
void |
moveDownEntryOrder(int nOrderToSet,
fr.paris.lutece.plugins.genericattributes.business.Entry entryToChangeOrder)
Change the attribute's order to a greater one (move down in the list)
|
void |
moveEntryIntoGroup(fr.paris.lutece.plugins.genericattributes.business.Entry entryToMove,
fr.paris.lutece.plugins.genericattributes.business.Entry entryGroup)
Move EntryToMove into entryGroup
|
void |
moveOutEntryFromGroup(fr.paris.lutece.plugins.genericattributes.business.Entry entryToMove)
Remove an entry from a group
|
void |
moveUpEntryOrder(int nOrderToSet,
fr.paris.lutece.plugins.genericattributes.business.Entry entryToChangeOrder)
Change the attribute's order to a lower one (move up in the list)
|
void |
removeEntriesByIdAppointmentForm(int nIdForm)
Remove every entries associated with a given appointment form
|
public static final String BEAN_NAME
public static EntryService getService()
public static fr.paris.lutece.plugins.genericattributes.business.EntryFilter buildEntryFilter(int nIdForm)
nIdForm - the Form Idpublic void moveDownEntryOrder(int nOrderToSet,
fr.paris.lutece.plugins.genericattributes.business.Entry entryToChangeOrder)
nOrderToSet - the new order for the attributeentryToChangeOrder - the attribute which will changepublic void moveUpEntryOrder(int nOrderToSet,
fr.paris.lutece.plugins.genericattributes.business.Entry entryToChangeOrder)
nOrderToSet - the new order for the attributeentryToChangeOrder - the attribute which will changepublic void moveEntryIntoGroup(fr.paris.lutece.plugins.genericattributes.business.Entry entryToMove,
fr.paris.lutece.plugins.genericattributes.business.Entry entryGroup)
entryToMove - the entry which will be movedentryGroup - the entry grouppublic void moveOutEntryFromGroup(fr.paris.lutece.plugins.genericattributes.business.Entry entryToMove)
entryToMove - the entry to remove from a grouppublic void removeEntriesByIdAppointmentForm(int nIdForm)
nIdForm - The id of the appointment to remove entries ofpublic static void addListEntryToModel(int nIdForm,
Map<String,Object> model)
nIdForm - The form Idmodel - the modelpublic static List<fr.paris.lutece.plugins.genericattributes.business.Entry> findListEntry(int nIdForm)
nIdForm - the form Idpublic static void getHtmlEntry(Map<String,Object> model, int nIdEntry, StringBuilder stringBuffer, Locale locale, boolean bDisplayFront, AppointmentDTO appointmentDTO)
nIdEntry - the entry idstringBuffer - the string bufferlocale - bDisplayFront - request - public static List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> getResponseEntry(javax.servlet.http.HttpServletRequest request, int nIdEntry, Locale locale, AppointmentDTO appointment)
request - the RequestnIdEntry - the Entry Idlocale - the Localeappointment - the Appointmentpublic static Boolean isFieldInTheResponseList(int nIdField, List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
nIdField - the id of the fieldlistResponse - the list to search inpublic static String getEntryUrl(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
entry - the entrypublic static List<fr.paris.lutece.plugins.genericattributes.business.Entry> getFilter(int iform, boolean bDisplayFront)
iform - the form idbDisplayFront - true if it is displayed on FOCopyright © 2022 City of Paris. All rights reserved.