@Service @Transactional public class PictureServiceImpl extends Object implements PictureService
PictureService implementation.| Constructor and Description | 
|---|
PictureServiceImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPicture(GallerySection section,
          Picture picture,
          DataSource source)
Adds a  
Picture to the gallery. | 
Picture | 
createNew()
Creates a new, empty  
Picture object to be used in a gallery. | 
ResourceDataSource | 
getImage(Picture picture,
        ImageProcessing process)
Gets a picture of a gallery. 
 | 
void | 
removePicture(Picture picture)
Removes a picture. 
 | 
void | 
renumberPictures(GallerySection gallery)
Renumbers all pictures of a gallery. 
 | 
void | 
updatePicture(Picture picture,
             DataSource source)
Updates a picture. 
 | 
public PictureServiceImpl()
public Picture createNew()
PictureServicePicture object to be used in a gallery.createNew in interface PictureServicepublic void addPicture(GallerySection section, Picture picture, DataSource source) throws CillaServiceException
PictureServicePicture to the gallery.
 The image passed in is analyzed and it's EXIF data, geolocation data, creation date, dimensions and type are written into the Picture entity.
Picture's sequence numbers needs to be set separately.
addPicture in interface PictureServicesection - GallerySection to add the picture to. The picture will be the
            last on the list.picture - Picture to add.source - DataSource containing a stream to the picture.CillaServiceException@CacheEvict(value="processedImages",
            allEntries=true)
public void updatePicture(Picture picture,
                                                                                            DataSource source)
                                                                                     throws CillaServiceException
PictureServiceThe image passed in is analyzed and it's EXIF data, geolocation data, creation date, dimensions and type are written into the Picture entity.
Picture's sequence numbers needs to be set separately.
updatePicture in interface PictureServicepicture - Picture to be updatedsource - DataSource containing a stream to the picture, or null
            to keep the current pictureCillaServiceException@CacheEvict(value="processedImages",
            allEntries=true)
public void removePicture(Picture picture)
                                                                                     throws CillaServiceException
PictureServiceGallerySection.
 Picture's sequence numbers needs to be set separately.
removePicture in interface PictureServicepicture - Picture to removeCillaServiceExceptionpublic ResourceDataSource getImage(Picture picture, ImageProcessing process) throws CillaServiceException
PictureServicegetImage in interface PictureServicepicture - Picture to streamprocess - ImageProcessing for processing images, null for originalResourceDataSource of that pictureCillaServiceExceptionpublic void renumberPictures(GallerySection gallery) throws CillaServiceException
PictureServicerenumberPictures in interface PictureServicegallery - GallerySection to renumber pictures ofCillaServiceExceptionCopyright © 2009–2016. All rights reserved.