fr.paris.lutece.plugins.directory.service.record
Interface IRecordService

All Known Implementing Classes:
RecordService

public interface IRecordService

IRecordService


Method Summary
 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
 

Method Detail

create

@Transactional(value="directory.transactionManager")
int create(Record record,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of record

Parameters:
record - The instance of the record which contains the informations to store
plugin - the Plugin
Returns:
the id of the new record

copy

@Transactional(value="directory.transactionManager")
int copy(Record record,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy an instance of record

Parameters:
record - The instance of the record who must copy
plugin - the Plugin
Returns:
the id of the record

updateWidthRecordField

@Transactional(value="directory.transactionManager")
void updateWidthRecordField(Record record,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the record which is specified in parameter

Parameters:
record - The instance of the record which contains the informations to update
plugin - the Plugin

update

@Transactional(value="directory.transactionManager")
void update(Record record,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the record

Parameters:
record - The instance of the record which contains the informations to update
plugin - the Plugin

remove

@Transactional(value="directory.transactionManager")
void remove(int nIdRecord,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the record whose identifier is specified in parameter

Parameters:
nIdRecord - The recordId
plugin - the Plugin

findByPrimaryKey

Record findByPrimaryKey(int nKey,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a recordwhose identifier is specified in parameter

Parameters:
nKey - The formResponse primary key
plugin - the Plugin
Returns:
an instance of FormResponse

directoryRecordListHasWorkflow

Boolean directoryRecordListHasWorkflow(int nIdDirectory,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Test if the given directory record list has a worflow

Parameters:
nIdDirectory - directory Id
plugin - the plugin
Returns:
true if has at least one

loadListByListId

List<Record> loadListByListId(List<Integer> lIdList,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a list of record

Parameters:
listId - list of record id
plugin - the plugin
Returns:
list of Record

getListRecord

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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record

getCountRecord

int getCountRecord(RecordFieldFilter filter,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count record who verify the filter

Parameters:
filter - the filter
plugin - the plugin
Returns:
the number of record

getListRecordId

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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of record

getDirectoryIdByRecordId

Integer getDirectoryIdByRecordId(Integer nRecordId,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get directory id by by record id

Parameters:
nRecordId - the record id
plugin - the plugin
Returns:
the directory id


Copyright © 2013 Mairie de Paris. All Rights Reserved.