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
|
boolean |
isFileAuthorized(int nFileId,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Is the file authorized for viewing.
|
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 IRecordServicerecord - 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 IRecordServicerecord - 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 IRecordServicenIdRecord - The recordIdplugin - the Plugin@Transactional(value="directory.transactionManager") public void update(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IRecordServicerecord - 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 IRecordServicerecord - 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 IRecordServicenIdDirectory - directory Idplugin - the pluginpublic Record findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IRecordServicenKey - The formResponse primary keyplugin - the Pluginpublic int getCountRecord(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getCountRecord in interface IRecordServicefilter - the filterplugin - the pluginpublic Integer getDirectoryIdByRecordId(Integer nRecordId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDirectoryIdByRecordId in interface IRecordServicenRecordId - the record idplugin - the pluginpublic List<Record> getListRecord(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListRecord in interface IRecordServicefilter - the filterplugin - the pluginpublic List<Integer> getListRecordId(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListRecordId in interface IRecordServicefilter - the filterplugin - the pluginpublic List<Record> loadListByListId(List<Integer> lIdList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadListByListId in interface IRecordServicelIdList - list of record idplugin - the pluginpublic boolean isFileAuthorized(int nFileId,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isFileAuthorized in interface IRecordServicenFileId - the file idrequest - the requestplugin - the pluginCopyright © 2017 City of Paris. All rights reserved.