public class ImageLocalServiceImpl extends ImageLocalServiceBaseImpl
counterLocalService, imageLocalService, imagePersistence, persistedModelLocalServiceRegistry| Constructor and Description |
|---|
ImageLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.model.Image |
deleteImage(long imageId)
Deletes the image with the primary key from the database.
|
com.liferay.portal.kernel.model.Image |
getCompanyLogo(long imageId) |
com.liferay.portal.kernel.model.Image |
getImage(long imageId)
Returns the image with the primary key.
|
com.liferay.portal.kernel.model.Image |
getImageOrDefault(long imageId) |
List<com.liferay.portal.kernel.model.Image> |
getImages() |
List<com.liferay.portal.kernel.model.Image> |
getImagesBySize(int size) |
com.liferay.portal.kernel.model.Image |
moveImage(long imageId,
byte[] bytes) |
com.liferay.portal.kernel.model.Image |
updateImage(long imageId,
byte[] bytes) |
com.liferay.portal.kernel.model.Image |
updateImage(long imageId,
byte[] bytes,
String type,
int height,
int width,
int size) |
com.liferay.portal.kernel.model.Image |
updateImage(long imageId,
File file) |
com.liferay.portal.kernel.model.Image |
updateImage(long imageId,
InputStream is) |
com.liferay.portal.kernel.model.Image |
updateImage(long imageId,
InputStream is,
boolean cleanUpStream) |
protected void |
validate(String type) |
addImage, afterPropertiesSet, createImage, deleteImage, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchImage, getActionableDynamicQuery, getCounterLocalService, getImageLocalService, getImagePersistence, getImages, getImagesCount, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setCounterLocalService, setImageLocalService, setImagePersistence, updateImagepublic com.liferay.portal.kernel.model.Image deleteImage(long imageId)
throws com.liferay.portal.kernel.exception.PortalException
ImageLocalServiceBaseImpldeleteImage in interface com.liferay.portal.kernel.service.ImageLocalServicedeleteImage in class ImageLocalServiceBaseImplimageId - the primary key of the imagecom.liferay.portal.kernel.exception.PortalException - if a image with the primary key could not be foundpublic com.liferay.portal.kernel.model.Image getCompanyLogo(long imageId)
public com.liferay.portal.kernel.model.Image getImage(long imageId)
ImageLocalServiceBaseImplgetImage in interface com.liferay.portal.kernel.service.ImageLocalServicegetImage in class ImageLocalServiceBaseImplimageId - the primary key of the imagepublic com.liferay.portal.kernel.model.Image getImageOrDefault(long imageId)
public List<com.liferay.portal.kernel.model.Image> getImages()
public List<com.liferay.portal.kernel.model.Image> getImagesBySize(int size)
public com.liferay.portal.kernel.model.Image moveImage(long imageId,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Image updateImage(long imageId,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Image updateImage(long imageId,
byte[] bytes,
String type,
int height,
int width,
int size)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Image updateImage(long imageId,
File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Image updateImage(long imageId,
InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Image updateImage(long imageId,
InputStream is,
boolean cleanUpStream)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validate(String type)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException