public final class EntryHome extends Object
Modifier and Type | Method and Description |
---|---|
static Entry |
copy(Entry entry)
Copy of an instance of Entry
|
static int |
create(Entry entry)
Creation of an instance of Entry
|
static void |
decrementOrderByOne(int nOrder,
int nIdField,
int nIdResource,
String strResourceType)
Decrements the order of all the entries (conditional questions) after the one which will be removed
|
static Entry |
findByOrderAndIdFieldAndIdResource(int nOrder,
int nIdField,
int nIdResource,
String strResourceType)
Finds the entry (conditional question) with a given order, idDependField, id resource and resource type
|
static Entry |
findByPrimaryKey(int nKey)
Returns an instance of a Entry whose identifier is specified in parameter
|
static List<Entry> |
findByPrimaryKeyList(List<Integer> idList)
Returns a list of a Entry whose identifier is specified in parameter
|
static List<Entry> |
findEntriesWithoutParent(int nIdResource,
String strResourceType)
Finds all the entries without any parent associated with a given resource
|
static Map<Integer,String> |
findEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdForm) |
static List<Entry> |
getEntryList(EntryFilter filter)
Load the data of all the entry who verify the filter and returns them in a list
|
static String |
getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdEntry,
int nIdResponse) |
static int |
getNumberEntryByFilter(EntryFilter filter)
Return the number of entry who verify the filter
|
static void |
remove(int nIdEntry)
Remove the entry whose identifier is specified in parameter
|
static void |
update(Entry entry)
Update of the entry which is specified in parameter
|
public static int create(Entry entry)
entry
- The instance of the Entry which contains the informations to storepublic static Entry copy(Entry entry)
entry
- The instance of the Entry who must copypublic static void update(Entry entry)
entry
- The instance of the Entry which contains the informations to updatepublic static void remove(int nIdEntry)
nIdEntry
- The entry Idpublic static Entry findByPrimaryKey(int nKey)
nKey
- The entry primary keypublic static List<Entry> findByPrimaryKeyList(List<Integer> idList)
idList
- The primary keyspublic static List<Entry> getEntryList(EntryFilter filter)
filter
- the filterpublic static int getNumberEntryByFilter(EntryFilter filter)
filter
- the filterpublic static List<Entry> findEntriesWithoutParent(int nIdResource, String strResourceType)
nIdResource
- the id of the resourcestrResourceType
- The resource typepublic static Entry findByOrderAndIdFieldAndIdResource(int nOrder, int nIdField, int nIdResource, String strResourceType)
nOrder
- the ordernIdField
- the id of the fieldnIdResource
- the id of the resourcestrResourceType
- The resource type of the entry to getpublic static void decrementOrderByOne(int nOrder, int nIdField, int nIdResource, String strResourceType)
nOrder
- the order of the entry which will be removednIdField
- the id of the fieldnIdResource
- the id of the resourcestrResourceType
- The resource typepublic static Map<Integer,String> findEntryByForm(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdForm)
plugin
- the pluginnIdForm
- id formpublic static String getEntryValueByIdResponse(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdEntry, int nIdResponse)
plugin
- the pluginnIdEntry
- id entrynIdResponse
- id entry responseCopyright © 2021 City of Paris. All rights reserved.