com.liferay.portal.service
Interface ImageLocalService
- All Known Implementing Classes:
- ImageLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,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
- Generated:
Method Summary |
Image |
addImage(Image image)
|
Image |
createImage(long imageId)
|
void |
deleteImage(Image image)
|
void |
deleteImage(long imageId)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
Image |
getCompanyLogo(long imageId)
|
Image |
getDefaultCompanyLogo()
|
Image |
getDefaultOrganizationLogo()
|
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(Image image,
boolean merge)
|
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 SystemException
- Throws:
SystemException
createImage
Image createImage(long imageId)
deleteImage
void deleteImage(long imageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteImage
void deleteImage(Image image)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getImage
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(long imageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImages
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> getImages(int start,
int end)
throws SystemException
- Throws:
SystemException
getImagesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getImagesCount()
throws SystemException
- Throws:
SystemException
updateImage
Image updateImage(Image image)
throws SystemException
- Throws:
SystemException
updateImage
Image updateImage(Image image,
boolean merge)
throws SystemException
- Throws:
SystemException
getCompanyLogo
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getCompanyLogo(long imageId)
getDefaultCompanyLogo
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getDefaultCompanyLogo()
getDefaultOrganizationLogo
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getDefaultOrganizationLogo()
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 PortalException,
SystemException
- Throws:
PortalException
SystemException
getImage
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImage
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImage(java.io.InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImageOrDefault
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image getImageOrDefault(long imageId)
getImages
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> getImages()
throws SystemException
- Throws:
SystemException
getImagesBySize
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> getImagesBySize(int size)
throws SystemException
- Throws:
SystemException
isNullOrDefaultSpacer
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean isNullOrDefaultSpacer(byte[] bytes)
updateImage
Image updateImage(long imageId,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateImage
Image updateImage(long imageId,
java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateImage
Image updateImage(long imageId,
java.io.InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateImage
Image updateImage(long imageId,
byte[] bytes,
java.lang.String type,
int height,
int width,
int size)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException