com.liferay.portal.service.impl
Class ImageLocalServiceImpl
java.lang.Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.ImageLocalServiceBaseImpl
com.liferay.portal.service.impl.ImageLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.ImageLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
public class ImageLocalServiceImpl
- extends ImageLocalServiceBaseImpl
|
Method Summary |
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)
|
| Methods inherited from class com.liferay.portal.service.base.ImageLocalServiceBaseImpl |
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 |
| Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl |
getClassLoader, getLocalizationMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageLocalServiceImpl
public ImageLocalServiceImpl()
deleteImage
public com.liferay.portal.kernel.model.Image deleteImage(long imageId)
throws com.liferay.portal.kernel.exception.PortalException
- Description copied from class:
ImageLocalServiceBaseImpl
- Deletes the image with the primary key from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteImage in interface com.liferay.portal.kernel.service.ImageLocalService- Overrides:
deleteImage in class ImageLocalServiceBaseImpl
- Parameters:
imageId - the primary key of the image
- Returns:
- the image that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException - if a image with the primary key could not be found
getCompanyLogo
public com.liferay.portal.kernel.model.Image getCompanyLogo(long imageId)
getImage
public com.liferay.portal.kernel.model.Image getImage(long imageId)
- Description copied from class:
ImageLocalServiceBaseImpl
- Returns the image with the primary key.
- Specified by:
getImage in interface com.liferay.portal.kernel.service.ImageLocalService- Overrides:
getImage in class ImageLocalServiceBaseImpl
- Parameters:
imageId - the primary key of the image
- Returns:
- the image
getImageOrDefault
public com.liferay.portal.kernel.model.Image getImageOrDefault(long imageId)
getImages
public List<com.liferay.portal.kernel.model.Image> getImages()
getImagesBySize
public List<com.liferay.portal.kernel.model.Image> getImagesBySize(int size)
moveImage
public com.liferay.portal.kernel.model.Image moveImage(long imageId,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateImage
public com.liferay.portal.kernel.model.Image updateImage(long imageId,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateImage
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateImage
public com.liferay.portal.kernel.model.Image updateImage(long imageId,
File file)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateImage
public com.liferay.portal.kernel.model.Image updateImage(long imageId,
InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateImage
public com.liferay.portal.kernel.model.Image updateImage(long imageId,
InputStream is,
boolean cleanUpStream)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
validate
protected void validate(String type)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException