public class RecordService extends Object implements IRecordService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_SERVICE
Name of the bean of this service
|
Constructor and Description |
---|
RecordService() |
Modifier and Type | Method and Description |
---|---|
int |
copy(Record record,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy an instance of record
|
int |
create(Record record,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of record
|
Boolean |
directoryRecordListHasWorkflow(int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Test if the given directory record list has a worflow
|
Record |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a recordwhose identifier is specified in parameter
|
int |
getCountRecord(RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count record who verify the filter
|
Integer |
getDirectoryIdByRecordId(Integer nRecordId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get directory id by by record id
|
List<Record> |
getListRecord(RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the record who verify the filter and returns them in a list
|
List<Integer> |
getListRecordId(RecordFieldFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the record who verify the filter and returns them in a list
|
List<Record> |
loadListByListId(List<Integer> lIdList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a list of record
|
void |
remove(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the record whose identifier is specified in parameter
|
void |
update(Record record,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the record
|
void |
updateWidthRecordField(Record record,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the record which is specified in parameter
|
public static final String BEAN_SERVICE
@Transactional(value="directory.transactionManager") public int copy(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
copy
in interface IRecordService
record
- The instance of the record who must copyplugin
- the Plugin@Transactional(value="directory.transactionManager") public int create(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create
in interface IRecordService
record
- The instance of the record which contains the informations to storeplugin
- the Plugin@Transactional(value="directory.transactionManager") public void remove(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove
in interface IRecordService
nIdRecord
- The recordIdplugin
- the Plugin@Transactional(value="directory.transactionManager") public void update(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IRecordService
record
- The instance of the record which contains the informations to updateplugin
- the Plugin@Transactional(value="directory.transactionManager") public void updateWidthRecordField(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateWidthRecordField
in interface IRecordService
record
- The instance of the record which contains the informations to updateplugin
- the Pluginpublic Boolean directoryRecordListHasWorkflow(int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
directoryRecordListHasWorkflow
in interface IRecordService
nIdDirectory
- directory Idplugin
- the pluginpublic Record findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IRecordService
nKey
- The formResponse primary keyplugin
- the Pluginpublic int getCountRecord(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getCountRecord
in interface IRecordService
filter
- the filterplugin
- the pluginpublic Integer getDirectoryIdByRecordId(Integer nRecordId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDirectoryIdByRecordId
in interface IRecordService
nRecordId
- the record idplugin
- the pluginpublic List<Record> getListRecord(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListRecord
in interface IRecordService
filter
- the filterplugin
- the pluginpublic List<Integer> getListRecordId(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListRecordId
in interface IRecordService
filter
- the filterplugin
- the pluginpublic List<Record> loadListByListId(List<Integer> lIdList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadListByListId
in interface IRecordService
lIdList
- list of record idplugin
- the pluginCopyright © 2017 City of Paris. All rights reserved.