fr.paris.lutece.plugins.wiki.business
Class ImageHome

java.lang.Object
  extended by fr.paris.lutece.plugins.wiki.business.ImageHome

public final class ImageHome
extends Object

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


Method Summary
static void create(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of image
static Image findByPrimaryKey(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the image Object
static List<Image> findByTopic(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find images for a given topic
static List<Image> getListImages(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the list of all image
static void remove(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove image which is specified in parameter
static void removeByTopic(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove all images associated to a given topic
static void update(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of image which is specified in parameter
static void updateMetadata(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update metatdata of image 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 void create(Image image,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of image

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

update

public static void update(Image image,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of image which is specified in parameter

Parameters:
image - The instance of image which contains the informations to update
plugin - the Plugin

updateMetadata

public static void updateMetadata(Image image,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update metatdata of image which is specified in parameter

Parameters:
image - The instance of image which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdImage,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove image which is specified in parameter

Parameters:
nIdImage - The image key to remove
plugin - the Plugin

removeByTopic

public static void removeByTopic(int nTopicId,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove all images associated to a given topic

Parameters:
nTopicId - The Topic ID
plugin - the Plugin

findByPrimaryKey

public static Image findByPrimaryKey(int nIdImage,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the image Object

Parameters:
nIdImage - the image id
plugin - the plugin
Returns:
the Image Object

getListImages

public static List<Image> getListImages(fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the list of all image

Parameters:
plugin - the plugin
Returns:
a list of image

findByTopic

public static List<Image> findByTopic(int nIdTopic,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find images for a given topic

Parameters:
nIdTopic - The topic ID
plugin - The plugin
Returns:
The list


Copyright © 2014 Mairie de Paris. All Rights Reserved.