public final class ExportDirectoryUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARAMETER_PREFIX_KEY_GEOLOCATION
prefix key for geolocation
|
Modifier and Type | Method and Description |
---|---|
static String |
computeIterableEntryParameterName(String strBaseName,
int nIterationNumber,
int nIdEntry,
boolean bIsGeolocalisation)
Compute the parameter name for a specified iteration number from a base name.
|
static void |
createAllDirectoryField(int nIdEntryForm,
fr.paris.lutece.plugins.directory.business.IEntry entryDirectory,
fr.paris.lutece.portal.service.plugin.Plugin pluginForm,
fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory)
Create all directory fields
|
static String |
createDirectoryByIdForm(int nIdForm,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin pluginForm,
fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory)
Create directory by id form
|
static String |
createDirectoryEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entryForm,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin pluginForm,
fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory,
fr.paris.lutece.plugins.directory.business.Directory directory,
fr.paris.lutece.plugins.directory.business.IEntry entryGroup,
FormIterableEntryConfiguration formIterableEntryConfiguration)
Create a directory entry
|
static void |
createDirectoryNumberingEntry(fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory,
fr.paris.lutece.plugins.directory.business.Directory directory)
Create a directory entry type numbering
|
static void |
createDirectoryNumberingEntry(fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory,
fr.paris.lutece.plugins.directory.business.Directory directory,
String strPrefix)
Create a directory entry type numbering
|
static void |
createDirectoryRecord(javax.servlet.http.HttpServletRequest request,
FormConfiguration formConfiguration,
fr.paris.lutece.plugins.form.business.FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin pluginForm,
fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory)
Create a directory record
|
static List<fr.paris.lutece.plugins.directory.business.EntryType> |
getDirectoryEntryForFormEntry(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType)
Get the directory entry for form entry
|
static boolean |
isDirectoryArrayType(int nIdEntryType)
Check if the given id entry type is an entry type array
|
static boolean |
isDirectoryDateType(int nIdEntryType) |
static boolean |
isDirectoryFileType(int nIdEntryType)
Check if the given id entry type is an entry type file
|
static boolean |
isDirectoryImageType(int nIdEntryType)
Check if the given id entry type is an entry type image
|
static boolean |
isDirectoryNumberingType(int nIdEntryType)
Check if the given id entry type is an entry type numbering
|
static boolean |
isGeolocationEntry(int nIdEntryType)
Geolocation type ids are set with the proprety
PROPERTY_DIRECTORY_ID_ENTRY_TYPE_GEOLOCATION |
static boolean |
isGeolocationFormEntry(fr.paris.lutece.plugins.genericattributes.business.Entry formEntry)
Finds if the given form entry is a geolocation entry
|
static boolean |
isSelectEntry(int nIdEntryType)
Selects ids are set with the proprety
PROPERTY_DIRECTORY_ID_ENTRY_TYPE_SELECT |
public static final String PARAMETER_PREFIX_KEY_GEOLOCATION
public static List<fr.paris.lutece.plugins.directory.business.EntryType> getDirectoryEntryForFormEntry(fr.paris.lutece.plugins.genericattributes.business.EntryType entryType)
entryType
- the entry typepublic static String createDirectoryByIdForm(int nIdForm, javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin pluginForm, fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory)
nIdForm
- the id formrequest
- the HTTP requestpluginForm
- the plugin formpluginDirectory
- the plugin directorypublic static String createDirectoryEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entryForm, javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin pluginForm, fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory, fr.paris.lutece.plugins.directory.business.Directory directory, fr.paris.lutece.plugins.directory.business.IEntry entryGroup, FormIterableEntryConfiguration formIterableEntryConfiguration)
entryForm
- the entry formrequest
- the HTTP requestpluginForm
- the pluginf formpluginDirectory
- the plugin directorydirectory
- the directoryentryGroup
- the entry groupnIteratioNumber
- the iteration numberpublic static void createDirectoryNumberingEntry(fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory, fr.paris.lutece.plugins.directory.business.Directory directory, String strPrefix)
pluginDirectory
- the plugin directorydirectory
- the directorystrPrefix
- the prefix of the entry numberingpublic static void createDirectoryNumberingEntry(fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory, fr.paris.lutece.plugins.directory.business.Directory directory)
pluginDirectory
- the plugin directorydirectory
- the directorypublic static void createAllDirectoryField(int nIdEntryForm, fr.paris.lutece.plugins.directory.business.IEntry entryDirectory, fr.paris.lutece.portal.service.plugin.Plugin pluginForm, fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory)
nIdEntryForm
- the id entry formentryDirectory
- the entry directorypluginForm
- the plugin formpluginDirectory
- the plugin directorypublic static void createDirectoryRecord(javax.servlet.http.HttpServletRequest request, FormConfiguration formConfiguration, fr.paris.lutece.plugins.form.business.FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin pluginForm, fr.paris.lutece.portal.service.plugin.Plugin pluginDirectory) throws UnsupportedEncodingException
request
- the HTTP requestformConfiguration
- the form configurationformSubmit
- the form submitpluginForm
- the plugin formpluginDirectory
- the plugin directoryUnsupportedEncodingException
- error if there is an encoding problempublic static boolean isDirectoryFileType(int nIdEntryType)
nIdEntryType
- the id entry typepublic static boolean isDirectoryArrayType(int nIdEntryType)
nIdEntryType
- the id entry typepublic static boolean isDirectoryDateType(int nIdEntryType)
public static boolean isDirectoryImageType(int nIdEntryType)
nIdEntryType
- the id entry typepublic static boolean isDirectoryNumberingType(int nIdEntryType)
nIdEntryType
- the id entry typepublic static boolean isGeolocationFormEntry(fr.paris.lutece.plugins.genericattributes.business.Entry formEntry)
formEntry
- the form entrytrue
if the entry type is a geolocation type, false
otherwise.public static boolean isGeolocationEntry(int nIdEntryType)
PROPERTY_DIRECTORY_ID_ENTRY_TYPE_GEOLOCATION
nIdEntryType
- the type to checktrue
if the entry type is a geolocation type, false
otherwise.public static boolean isSelectEntry(int nIdEntryType)
PROPERTY_DIRECTORY_ID_ENTRY_TYPE_SELECT
nIdEntryType
- the type to checktrue
if the entry type is a select type, false
otherwise.public static String computeIterableEntryParameterName(String strBaseName, int nIterationNumber, int nIdEntry, boolean bIsGeolocalisation)
strBaseName
- The base name to create the parameter name fromnIterationNumber
- The iteration numbernIdEntry
- The id of the entry (use for an entry of type Geolocalisation)bIsGeolocalisation
- A boolean which tell if the parameter is for a entry of type GeolocalisationCopyright © 2018 City of Paris. All rights reserved.