Class ImageHome
- java.lang.Object
-
- 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(Image image)Creation of an instance of imagestatic ImagefindByPrimaryKey(int nIdImage)Load the image Objectstatic List<Image>findByTopic(int nIdTopic)Find images for a given topicstatic List<Image>getListImages()return the list of all imagestatic voidremove(int nIdImage)remove image which is specified in parameterstatic voidremoveByTopic(int nTopicId)remove all images associated to a given topicstatic voidupdate(Image image)Update of image which is specified in parameterstatic voidupdateMetadata(Image image)Update metatdata of image which is specified in parameter
-
-
-
Method Detail
-
create
public static void create(Image image)
Creation of an instance of image- Parameters:
image- The instance of image which contains the informations to store
-
update
public static void update(Image image)
Update of image which is specified in parameter- Parameters:
image- The instance of image which contains the informations to update
-
updateMetadata
public static void updateMetadata(Image image)
Update metatdata of image which is specified in parameter- Parameters:
image- The instance of image which contains the informations to update
-
remove
public static void remove(int nIdImage)
remove image which is specified in parameter- Parameters:
nIdImage- The image key to remove
-
removeByTopic
public static void removeByTopic(int nTopicId)
remove all images associated to a given topic- Parameters:
nTopicId- The Topic ID
-
findByPrimaryKey
public static Image findByPrimaryKey(int nIdImage)
Load the image Object- Parameters:
nIdImage- the image id- Returns:
- the Image Object
-
getListImages
public static List<Image> getListImages()
return the list of all image- Returns:
- a list of image
-
-