fr.paris.lutece.plugins.files2docs.business
Class MappingHome

java.lang.Object
  extended by fr.paris.lutece.plugins.files2docs.business.MappingHome

public final class MappingHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Mapping objects


Method Summary
static void create(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates an instance of the mapping class
static java.util.Collection<Mapping> findAllMapping(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the mapping objects
static Mapping findByDocumentTypeCode(java.lang.String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of the mapping object filtered by document type code
static Mapping findByPrimaryKey(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a mapping whose identifier is specified in parameter
static void remove(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the mapping whose identifier is specified in parameter
static void update(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates the mapping 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

findAllMapping

public static java.util.Collection<Mapping> findAllMapping(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the mapping objects

Parameters:
plugin - The plugin
Returns:
A collection which contains the data of all the mapping objects

create

public static void create(Mapping mapping,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates an instance of the mapping class

Parameters:
mapping - The instance of the Mapping which contains the informations to store
plugin - The plugin

findByPrimaryKey

public static Mapping findByPrimaryKey(int nMappingId,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a mapping whose identifier is specified in parameter

Parameters:
nMappingId - The mapping primary key
plugin - The plugin
Returns:
An instance of Mapping

update

public static void update(Mapping mapping,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates the mapping which is specified in parameter

Parameters:
mapping - The instance of the Mapping which contains the data to store
plugin - The plugin

remove

public static void remove(int nMappingId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the mapping whose identifier is specified in parameter

Parameters:
nMappingId - The mapping identifier
plugin - The plugin

findByDocumentTypeCode

public static Mapping findByDocumentTypeCode(java.lang.String strDocumentTypeCode,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of the mapping object filtered by document type code

Parameters:
strDocumentTypeCode - The document type code
plugin - The plugin
Returns:
An instance of Mapping


Copyright © 2012 Mairie de Paris. All Rights Reserved.