Class ImageLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<Image>,ImageLocalService,PersistedModelLocalService,ServiceWrapper<ImageLocalService>
ImageLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the image to the database.createImage(long imageId) Creates a new image with the primary key.createPersistedModel(Serializable primaryKeyObj) deleteImage(long imageId) Deletes the image with the primary key from the database.deleteImage(Image image) Deletes the image from the database.deletePersistedModel(PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchImage(long imageId) getCompanyLogo(long imageId) getImage(long imageId) Returns the image with the primary key.getImageInputStream(long companyId, long imageId, String type) getImageOrDefault(long imageId) getImages(int start, int end) Returns a range of all the images.getImagesBySize(int size) intReturns the number of images.Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) moveImage(long imageId, byte[] bytes) voidsetWrappedService(ImageLocalService imageLocalService) updateImage(long imageId, byte[] bytes) Deprecated.updateImage(long imageId, byte[] bytes, String type, int height, int width, int size) Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, byte[], String, int, int, int)updateImage(long companyId, long imageId, byte[] bytes) updateImage(long companyId, long imageId, byte[] bytes, String type, int height, int width, int size) updateImage(long companyId, long imageId, File file) updateImage(long companyId, long imageId, InputStream inputStream) updateImage(long companyId, long imageId, InputStream inputStream, boolean cleanUpStream) updateImage(long imageId, File file) Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, File)updateImage(long imageId, InputStream inputStream) Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, InputStream)updateImage(long imageId, InputStream inputStream, boolean cleanUpStream) Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, InputStream, boolean)updateImage(Image image) Updates the image in the database or adds it if it does not yet exist.<R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Image>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
ImageLocalServiceWrapper
public ImageLocalServiceWrapper() -
ImageLocalServiceWrapper
-
-
Method Details
-
addImage
Adds the image to the database. Also notifies the appropriate model listeners.Important: Inspect ImageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addImagein interfaceImageLocalService- Parameters:
image- the image- Returns:
- the image that was added
-
createImage
Creates a new image with the primary key. Does not add the image to the database.- Specified by:
createImagein interfaceImageLocalService- Parameters:
imageId- the primary key for the new image- Returns:
- the new image
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceImageLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
deleteImage
Deletes the image from the database. Also notifies the appropriate model listeners.Important: Inspect ImageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteImagein interfaceImageLocalService- Parameters:
image- the image- Returns:
- the image that was removed
-
deleteImage
Deletes the image with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect ImageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteImagein interfaceImageLocalService- Parameters:
imageId- the primary key of the image- Returns:
- the image that was removed
- Throws:
PortalException- if a image with the primary key could not be foundPortalException
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceImageLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceImageLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceImageLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceImageLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceImageLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.ImageModelImpl.- Specified by:
dynamicQueryin interfaceImageLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.ImageModelImpl.- Specified by:
dynamicQueryin interfaceImageLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceImageLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceImageLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchImage
- Specified by:
fetchImagein interfaceImageLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceImageLocalService
-
getCompanyLogo
- Specified by:
getCompanyLogoin interfaceImageLocalService
-
getImage
Returns the image with the primary key.- Specified by:
getImagein interfaceImageLocalService- Parameters:
imageId- the primary key of the image- Returns:
- the image
- Throws:
PortalException- if a image with the primary key could not be foundPortalException
-
getImageInputStream
public InputStream getImageInputStream(long companyId, long imageId, String type) throws PortalException - Specified by:
getImageInputStreamin interfaceImageLocalService- Throws:
PortalException
-
getImageOrDefault
- Specified by:
getImageOrDefaultin interfaceImageLocalService
-
getImages
- Specified by:
getImagesin interfaceImageLocalService
-
getImages
Returns a range of all the images.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.ImageModelImpl.- Specified by:
getImagesin interfaceImageLocalService- Parameters:
start- the lower bound of the range of imagesend- the upper bound of the range of images (not inclusive)- Returns:
- the range of images
-
getImagesBySize
- Specified by:
getImagesBySizein interfaceImageLocalService
-
getImagesCount
public int getImagesCount()Returns the number of images.- Specified by:
getImagesCountin interfaceImageLocalService- Returns:
- the number of images
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceImageLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceImageLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceImageLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
moveImage
- Specified by:
moveImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
Updates the image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect ImageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateImagein interfaceImageLocalService- Parameters:
image- the image- Returns:
- the image that was updated
-
updateImage
Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, byte[])- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
@Deprecated public Image updateImage(long imageId, byte[] bytes, String type, int height, int width, int size) throws PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, byte[], String, int, int, int)- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, File)- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, InputStream)- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
@Deprecated public Image updateImage(long imageId, InputStream inputStream, boolean cleanUpStream) throws PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byupdateImage(long, long, InputStream, boolean)- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
public Image updateImage(long companyId, long imageId, byte[] bytes, String type, int height, int width, int size) throws PortalException - Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
- Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
public Image updateImage(long companyId, long imageId, InputStream inputStream) throws PortalException - Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
updateImage
public Image updateImage(long companyId, long imageId, InputStream inputStream, boolean cleanUpStream) throws PortalException - Specified by:
updateImagein interfaceImageLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<Image>- Specified by:
getCTPersistencein interfaceImageLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<Image>- Specified by:
getModelClassin interfaceImageLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Image>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<Image>- Specified by:
updateWithUnsafeFunctionin interfaceImageLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<ImageLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<ImageLocalService>
-
updateImage(long, long, byte[])