fr.paris.lutece.plugins.directory.business
Class RecordHome

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.RecordHome

public final class RecordHome
extends java.lang.Object

class RecordHome


Method Summary
static int copy(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Copy an instance of record
static int create(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of record
static java.lang.Boolean direcytoryRecordListHasWorkflow(int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Test if the given directory record list has a worflow
static Record findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a recordwhose identifier is specified in parameter
static int getCountRecord(RecordFieldFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Count record who verify the filter
static java.lang.Integer getDirectoryIdByRecordId(java.lang.Integer nRecordId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get directory id by by record id
static java.util.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
static java.util.List<java.lang.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
static java.util.List<Record> loadListByListId(java.util.List<java.lang.Integer> lIdList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a list of record
static void remove(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the record whose identifier is specified in parameter
static void removeByIdDirectory(java.lang.Integer nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove directory and workflow record by directory Id
static void update(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the record
static void updateWidthRecordField(Record record, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the record which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static 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

public static 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

public static 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

public static 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

public static 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

removeByIdDirectory

public static void removeByIdDirectory(java.lang.Integer nIdDirectory,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove directory and workflow record by directory Id

Parameters:
nIdDirectory - The directory id
plugin - The plugin

findByPrimaryKey

public static 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

direcytoryRecordListHasWorkflow

public static java.lang.Boolean direcytoryRecordListHasWorkflow(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

public static java.util.List<Record> loadListByListId(java.util.List<java.lang.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

public static java.util.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

public static 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

public static java.util.List<java.lang.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

public static java.lang.Integer getDirectoryIdByRecordId(java.lang.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 © 2011 Mairie de Paris. All Rights Reserved.