Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class ImageLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.ImageLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.ImageLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, ImageLocalService, PersistedModelLocalService

public class ImageLocalServiceImpl
extends ImageLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.ImageLocalServiceBaseImpl
counterLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, imageLocalService, imagePersistence, persistedModelLocalServiceRegistry
 
Constructor Summary
ImageLocalServiceImpl()
           
 
Method Summary
 Image deleteImage(long imageId)
          Deletes the image with the primary key from the database.
 Image getCompanyLogo(long imageId)
           
 Image getImage(long imageId)
          Returns the image with the primary key.
 Image getImageOrDefault(long imageId)
           
 List<Image> getImages()
           
 List<Image> getImagesBySize(int size)
           
 Image moveImage(long imageId, byte[] bytes)
           
 Image updateImage(long imageId, byte[] bytes)
           
 Image updateImage(long imageId, byte[] bytes, String type, int height, int width, int size)
           
 Image updateImage(long imageId, File file)
           
 Image updateImage(long imageId, InputStream is)
           
 Image updateImage(long imageId, InputStream is, boolean cleanUpStream)
           
protected  void validate(String type)
           
 
Methods inherited from class com.liferay.portal.service.base.ImageLocalServiceBaseImpl
addImage, afterPropertiesSet, createImage, deleteImage, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchImage, getActionableDynamicQuery, getCounterLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getImageLocalService, getImagePersistence, getImages, getImagesCount, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setCounterLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setImageLocalService, setImagePersistence, updateImage
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLocalServiceImpl

public ImageLocalServiceImpl()
Method Detail

deleteImage

public Image deleteImage(long imageId)
                  throws PortalException
Description copied from class: ImageLocalServiceBaseImpl
Deletes the image with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteImage in interface ImageLocalService
Overrides:
deleteImage in class ImageLocalServiceBaseImpl
Parameters:
imageId - the primary key of the image
Returns:
the image that was removed
Throws:
PortalException - if a image with the primary key could not be found

getCompanyLogo

public Image getCompanyLogo(long imageId)

getImage

public Image getImage(long imageId)
Description copied from class: ImageLocalServiceBaseImpl
Returns the image with the primary key.

Specified by:
getImage in interface ImageLocalService
Overrides:
getImage in class ImageLocalServiceBaseImpl
Parameters:
imageId - the primary key of the image
Returns:
the image

getImageOrDefault

public Image getImageOrDefault(long imageId)

getImages

public List<Image> getImages()

getImagesBySize

public List<Image> getImagesBySize(int size)

moveImage

public Image moveImage(long imageId,
                       byte[] bytes)
                throws PortalException
Throws:
PortalException

updateImage

public Image updateImage(long imageId,
                         byte[] bytes)
                  throws PortalException
Throws:
PortalException

updateImage

public Image updateImage(long imageId,
                         byte[] bytes,
                         String type,
                         int height,
                         int width,
                         int size)
                  throws PortalException
Throws:
PortalException

updateImage

public Image updateImage(long imageId,
                         File file)
                  throws PortalException
Throws:
PortalException

updateImage

public Image updateImage(long imageId,
                         InputStream is)
                  throws PortalException
Throws:
PortalException

updateImage

public Image updateImage(long imageId,
                         InputStream is,
                         boolean cleanUpStream)
                  throws PortalException
Throws:
PortalException

validate

protected void validate(String type)
                 throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4