Class MappingHome
- java.lang.Object
-
- fr.paris.lutece.plugins.files2docs.business.MappingHome
-
public final class MappingHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Mapping objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creates an instance of the mapping classstatic java.util.Collection<Mapping>findAllMapping(fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of all the mapping objectsstatic MappingfindByDocumentTypeCode(java.lang.String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of the mapping object filtered by document type codestatic MappingfindByPrimaryKey(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns an instance of a mapping whose identifier is specified in parameterstatic voidremove(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes the mapping whose identifier is specified in parameterstatic voidupdate(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)Updates the mapping which is specified in parameter
-
-
-
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 storeplugin- 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 keyplugin- 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 storeplugin- 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 identifierplugin- 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 codeplugin- The plugin- Returns:
- An instance of Mapping
-
-