public class AnnounceService extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
Name of the bean of the service
|
static String |
PATTERN_DATE
Pattern for dates
|
Constructor and Description |
---|
AnnounceService() |
Modifier and Type | Method and Description |
---|---|
void |
convertMapResponseToList(AnnounceDTO announce)
Convert an AppointmentDTO to an Appointment by transferring response from the map of class AppointmentDTO to the list of class Appointment.
|
static DateFormat |
getDateFormat()
Get the date format to use
|
String |
getEntryUrl(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
Get the URL to modify an entry of the form in front office
|
String |
getHtmlAnnounceForm(Announce announce,
Category category,
Locale locale,
boolean bDisplayFront,
javax.servlet.http.HttpServletRequest request)
Return the HTML code of the form
|
void |
getHtmlEntry(AnnounceDTO announce,
int nIdEntry,
StringBuffer stringBuffer,
Locale locale,
boolean bDisplayFront,
javax.servlet.http.HttpServletRequest request)
Insert in the string buffer the content of the HTML code of the entry
|
List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> |
getResponseEntry(javax.servlet.http.HttpServletRequest request,
int nIdEntry,
Locale locale,
AnnounceDTO announce)
Get the responses associated with an entry.
Return null if there is no error in the response, or return the list of errors Response created are stored the map of AnnounceDTO . |
Boolean |
isFieldInTheResponseList(int nIdField,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
Check if a field is in a response list
|
public static final String PATTERN_DATE
public static final String BEAN_NAME
public String getHtmlAnnounceForm(Announce announce, Category category, Locale locale, boolean bDisplayFront, javax.servlet.http.HttpServletRequest request)
announce
- The announce the get the HTML form of, or null to get a default form for the given category. The list of responses of the announce must have
been set if the announce is not null.category
- the category to display the form oflocale
- the localebDisplayFront
- True if the entry will be displayed in Front Office, false if it will be displayed in Back Office.request
- HttpServletRequestpublic void getHtmlEntry(AnnounceDTO announce, int nIdEntry, StringBuffer stringBuffer, Locale locale, boolean bDisplayFront, javax.servlet.http.HttpServletRequest request)
announce
- The announce to load current values, or null to use default valuesnIdEntry
- the key of the entry which HTML code must be insert in the stringBufferstringBuffer
- the buffer which contains the HTML codelocale
- the localebDisplayFront
- True if the entry will be displayed in Front Office, false if it will be displayed in Back Office.request
- HttpServletRequestpublic List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> getResponseEntry(javax.servlet.http.HttpServletRequest request, int nIdEntry, Locale locale, AnnounceDTO announce)
AnnounceDTO
. The key of the
map is this id of the entry, and the value the list of responsesrequest
- the requestnIdEntry
- the key of the entrylocale
- the localeannounce
- The announcepublic Boolean isFieldInTheResponseList(int nIdField, List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
nIdField
- the id of the field to searchlistResponse
- the list of responsespublic String getEntryUrl(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
entry
- the entrypublic void convertMapResponseToList(AnnounceDTO announce)
announce
- The announce to get the map to convertpublic static DateFormat getDateFormat()
Copyright © 2019 City of Paris. All rights reserved.