Class MappingHome
java.lang.Object
fr.paris.lutece.plugins.files2docs.business.MappingHome
This class provides instances management methods (create, find, ...) for Mapping objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreates an instance of the mapping classstatic Collection<Mapping>findAllMapping(fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of all the mapping objectsstatic MappingfindByDocumentTypeCode(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 voidUpdates the mapping which is specified in parameter
-
Method Details
-
findAllMapping
public static 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
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
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(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
-