Class ImageHome
java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.ImageHome
This class provides instances management methods (create, find, ...) for Image objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageCreate an instance of the image classstatic Imagefind(int nKey) Returns an instance of a image whose identifier is specified in parameterstatic ImagefindWihtBinary(int nKey) Returns an instance of a image whose identifier is specified in parameterLoad all ids listgetIdsList(int nIdGallery) Load the ids image of gallerygetIdsListLinkedToGallery(int nIdGallery) Load the ids image linked with gallerygetImagesByIdsWithBinary(List<Integer> listIds) Load images by idsLoad the data of all the image objects and returns them in form of a listLoad the data of all the image objects and returns them in form of a liststatic voidremove(int nImageId) Remove the image whose identifier is specified in parameterstatic ImageUpdate of the image which is specified in parameter
-
Method Details
-
create
Create an instance of the image class- Parameters:
image- The instance of the Image which contains the informations to storeplugin- the Plugin- Returns:
- The instance of image which has been created with its primary key.
-
update
Update of the image which is specified in parameter- Parameters:
image- The instance of the Image which contains the data to storeplugin- the Plugin- Returns:
- The instance of the image which has been updated
-
remove
public static void remove(int nImageId) Remove the image whose identifier is specified in parameter- Parameters:
nImageId- The image Idplugin- the Plugin
-
find
Returns an instance of a image whose identifier is specified in parameter- Parameters:
nKey- The image primary keyplugin- the Plugin- Returns:
- an instance of Image
-
findWihtBinary
Returns an instance of a image whose identifier is specified in parameter- Parameters:
nKey- The image primary keyplugin- the Plugin- Returns:
- an instance of Image
-
getImagesList
Load the data of all the image objects and returns them in form of a list- Parameters:
plugin- the Plugin- Returns:
- the list which contains the data of all the image objects
-
getImagesListWithBinary
Load the data of all the image objects and returns them in form of a list- Parameters:
plugin- the Plugin- Returns:
- the list which contains the data of all the image objects
-
getIdsList
Load the ids image of gallery- Parameters:
nIdGallery- the nIdGallery- Returns:
- the list which contains the data of all the image objects
-
getIdsList
Load all ids list- Parameters:
plugin- the Plugin- Returns:
- the list which contains the data of all the image objects
-
getIdsListLinkedToGallery
Load the ids image linked with gallery- Parameters:
nIdGallery- the nIdGallery- Returns:
- the list which contains the data of all the image objects
-
getImagesByIdsWithBinary
Load images by ids- Parameters:
plugin- the Plugin- Returns:
- the list which contains the data of all the image objects
-