com.liferay.portal.service
Interface ImageLocalService


public interface ImageLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.ImageLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
ImageLocalServiceUtil

Method Summary
 Image addImage(Image image)
           
 void deleteImage(Image image)
           
 void deleteImage(long imageId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 Image getCompanyLogo(long imageId)
           
 Image getDefaultCompanyLogo()
           
 Image getDefaultSpacer()
           
 Image getDefaultUserFemalePortrait()
           
 Image getDefaultUserMalePortrait()
           
 Image getImage(byte[] bytes)
           
 Image getImage(java.io.File file)
           
 Image getImage(java.io.InputStream is)
           
 Image getImage(long imageId)
           
 Image getImageOrDefault(long imageId)
           
 java.util.List<Image> getImages()
           
 java.util.List<Image> getImages(int start, int end)
           
 java.util.List<Image> getImagesBySize(int size)
           
 int getImagesCount()
           
 boolean isNullOrDefaultSpacer(byte[] bytes)
           
 Image updateImage(Image image)
           
 Image updateImage(long imageId, byte[] bytes)
           
 Image updateImage(long imageId, byte[] bytes, java.lang.String type, int height, int width, int size)
           
 Image updateImage(long imageId, java.io.File file)
           
 Image updateImage(long imageId, java.io.InputStream is)
           
 

Method Detail

addImage

Image addImage(Image image)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteImage

void deleteImage(long imageId)
                 throws com.liferay.portal.SystemException,
                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteImage

void deleteImage(Image image)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImage

Image getImage(long imageId)
               throws com.liferay.portal.SystemException,
                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getImages

java.util.List<Image> getImages(int start,
                                int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImagesCount

int getImagesCount()
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

Image updateImage(Image image)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyLogo

Image getCompanyLogo(long imageId)

getDefaultCompanyLogo

Image getDefaultCompanyLogo()

getDefaultSpacer

Image getDefaultSpacer()

getDefaultUserFemalePortrait

Image getDefaultUserFemalePortrait()

getDefaultUserMalePortrait

Image getDefaultUserMalePortrait()

getImage

Image getImage(byte[] bytes)
               throws java.io.IOException
Throws:
java.io.IOException

getImage

Image getImage(java.io.File file)
               throws java.io.IOException
Throws:
java.io.IOException

getImage

Image getImage(java.io.InputStream is)
               throws java.io.IOException
Throws:
java.io.IOException

getImageOrDefault

Image getImageOrDefault(long imageId)

getImages

java.util.List<Image> getImages()
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImagesBySize

java.util.List<Image> getImagesBySize(int size)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

isNullOrDefaultSpacer

boolean isNullOrDefaultSpacer(byte[] bytes)

updateImage

Image updateImage(long imageId,
                  byte[] bytes)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

Image updateImage(long imageId,
                  java.io.File file)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

Image updateImage(long imageId,
                  java.io.InputStream is)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

Image updateImage(long imageId,
                  byte[] bytes,
                  java.lang.String type,
                  int height,
                  int width,
                  int size)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException