public class ImageLocalServiceImpl extends ImageLocalServiceBaseImpl
counterLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, 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, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getImageLocalService, getImagePersistence, getImages, getImagesCount, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setCounterLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setImageLocalService, setImagePersistence, updateImage
public com.liferay.portal.kernel.model.Image deleteImage(long imageId) throws com.liferay.portal.kernel.exception.PortalException
ImageLocalServiceBaseImpl
deleteImage
in interface com.liferay.portal.kernel.service.ImageLocalService
deleteImage
in class ImageLocalServiceBaseImpl
imageId
- 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)
ImageLocalServiceBaseImpl
getImage
in interface com.liferay.portal.kernel.service.ImageLocalService
getImage
in class ImageLocalServiceBaseImpl
imageId
- 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.PortalException
public com.liferay.portal.kernel.model.Image updateImage(long imageId, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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.PortalException
public com.liferay.portal.kernel.model.Image updateImage(long imageId, File file) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Image updateImage(long imageId, InputStream is) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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.PortalException
protected void validate(String type) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException