com.liferay.portal.service
Interface ImageLocalService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
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)
|
Image |
createImage(long imageId)
|
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)
|
addImage
Image addImage(Image image)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createImage
Image createImage(long imageId)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(long imageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getImages
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> getImages(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImagesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getCompanyLogo(long imageId)
getDefaultCompanyLogo
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getDefaultCompanyLogo()
getDefaultSpacer
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getDefaultSpacer()
getDefaultUserFemalePortrait
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getDefaultUserFemalePortrait()
getDefaultUserMalePortrait
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getDefaultUserMalePortrait()
getImage
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
getImage
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
getImage
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
getImageOrDefault
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImageOrDefault(long imageId)
getImages
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> getImages()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImagesBySize
@Transactional(propagation=SUPPORTS,
readOnly=true)
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