Class ImageService
- java.lang.Object
-
- fr.paris.lutece.plugins.galleryimage.service.ImageService
-
- All Implemented Interfaces:
IImageService
public class ImageService extends Object implements IImageService
ImageService
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.galleryimage.service.IImageService
BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description ImageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Imagecreate(Image image)Create an instance of the image classImagefindByPrimaryKey(int nKey)Returns an instance of a image whose identifier is specified in parameterImagefindImageWithBinary(int nKey)Returns an instance of a image whose identifier is specified in parameterList<Image>getImagesList()Load the data of all the image objects and returns them in form of a listvoidremove(int nImageId)Remove the image whose identifier is specified in parameterImageupdate(Image image)Update of the image which is specified in parameter
-
-
-
Method Detail
-
create
public Image create(Image image)
Description copied from interface:IImageServiceCreate an instance of the image class- Specified by:
createin interfaceIImageService- Parameters:
image- The instance of the Image which contains the informations to store- Returns:
- The instance of image which has been created with its primary key.
-
update
public Image update(Image image)
Description copied from interface:IImageServiceUpdate of the image which is specified in parameter- Specified by:
updatein interfaceIImageService- Parameters:
image- The instance of the Image which contains the data to store- Returns:
- The instance of the image which has been updated
-
remove
public void remove(int nImageId)
Description copied from interface:IImageServiceRemove the image whose identifier is specified in parameter- Specified by:
removein interfaceIImageService- Parameters:
nImageId- The image Id
-
findByPrimaryKey
public Image findByPrimaryKey(int nKey)
Description copied from interface:IImageServiceReturns an instance of a image whose identifier is specified in parameter- Specified by:
findByPrimaryKeyin interfaceIImageService- Parameters:
nKey- The image primary key- Returns:
- an instance of Image
-
findImageWithBinary
public Image findImageWithBinary(int nKey)
Description copied from interface:IImageServiceReturns an instance of a image whose identifier is specified in parameter- Specified by:
findImageWithBinaryin interfaceIImageService- Parameters:
nKey- The image primary key- Returns:
- an instance of Image
-
getImagesList
public List<Image> getImagesList()
Description copied from interface:IImageServiceLoad the data of all the image objects and returns them in form of a list- Specified by:
getImagesListin interfaceIImageService- Returns:
- the list which contains the data of all the image objects
-
-