public class AMImageEntryLocalServiceWrapper extends java.lang.Object implements AMImageEntryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AMImageEntryLocalService>
AMImageEntryLocalService.AMImageEntryLocalService| Constructor and Description |
|---|
AMImageEntryLocalServiceWrapper() |
AMImageEntryLocalServiceWrapper(AMImageEntryLocalService amImageEntryLocalService) |
| Modifier and Type | Method and Description |
|---|---|
AMImageEntry |
addAMImageEntry(AMImageConfigurationEntry amImageConfigurationEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int height,
int width,
java.io.InputStream inputStream,
long size)
Adds an adaptive media image entry in the database and stores the image
bytes in the file store.
|
AMImageEntry |
addAMImageEntry(AMImageEntry amImageEntry)
Adds the am image entry to the database.
|
AMImageEntry |
createAMImageEntry(long amImageEntryId)
Creates a new am image entry with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
void |
deleteAMImageEntries(long companyId,
AMImageConfigurationEntry amImageConfigurationEntry)
Deletes all the adaptive media images generated for the configuration in
the company.
|
AMImageEntry |
deleteAMImageEntry(AMImageEntry amImageEntry)
Deletes the am image entry from the database.
|
AMImageEntry |
deleteAMImageEntry(long amImageEntryId)
Deletes the am image entry with the primary key from the database.
|
void |
deleteAMImageEntryFileVersion(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
Deletes all the adaptive media images generated for a file version.
|
void |
deleteAMImageEntryFileVersion(java.lang.String configurationUuid,
long fileVersionId)
Deletes adaptive media images generated for a file version under a given
configuration.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
AMImageEntry |
fetchAMImageEntry(long amImageEntryId) |
AMImageEntry |
fetchAMImageEntry(java.lang.String configurationUuid,
long fileVersionId)
Returns the adaptive media image entry generated for the configuration
and file version.
|
AMImageEntry |
fetchAMImageEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the am image entry matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<AMImageEntry> |
getAMImageEntries(int start,
int end)
Returns a range of all the am image entries.
|
java.util.List<AMImageEntry> |
getAMImageEntries(long fileVersionId)
Returns the list of adaptive media image entries generated for the
file version.
|
java.util.List<AMImageEntry> |
getAMImageEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the am image entries matching the UUID and company.
|
java.util.List<AMImageEntry> |
getAMImageEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AMImageEntry> orderByComparator)
Returns a range of am image entries matching the UUID and company.
|
int |
getAMImageEntriesCount()
Returns the number of am image entries.
|
int |
getAMImageEntriesCount(long companyId,
java.lang.String configurationUuid)
Returns the number of adaptive media image entries generated for the
configuration in the company.
|
AMImageEntry |
getAMImageEntry(long amImageEntryId)
Returns the am image entry with the primary key.
|
AMImageEntry |
getAMImageEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the am image entry matching the UUID and group.
|
java.io.InputStream |
getAMImageEntryContentStream(AMImageConfigurationEntry amImageConfigurationEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
Returns the input stream of the adaptive media image generated for a file
version and configuration.
|
com.liferay.portal.kernel.service.persistence.BasePersistence<?> |
getBasePersistence() |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AMImageEntry> |
getCTPersistence() |
int |
getExpectedAMImageEntriesCount(long companyId)
Returns the total number of adaptive media images that are expected to be
in a company once they are generated.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<AMImageEntry> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
int |
getPercentage(long companyId,
java.lang.String configurationUuid)
Returns the percentage of images that have an adaptive media image
generated based on the expected number of adaptive media images for a
configuration in a company.
|
int |
getPercentage(long companyId,
java.lang.String configurationUuid,
int expectedAMImageEntriesCount) |
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
AMImageEntryLocalService |
getWrappedService() |
boolean |
hasAMImageEntryContent(java.lang.String configurationUuid,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
void |
setWrappedService(AMImageEntryLocalService amImageEntryLocalService) |
AMImageEntry |
updateAMImageEntry(AMImageEntry amImageEntry)
Updates the am image entry in the database or adds it if it does not yet exist.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AMImageEntry>,R,E> updateUnsafeFunction) |
public AMImageEntryLocalServiceWrapper()
public AMImageEntryLocalServiceWrapper(AMImageEntryLocalService amImageEntryLocalService)
public AMImageEntry addAMImageEntry(AMImageConfigurationEntry amImageConfigurationEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, int height, int width, java.io.InputStream inputStream, long size) throws com.liferay.portal.kernel.exception.PortalException
addAMImageEntry in interface AMImageEntryLocalServiceamImageConfigurationEntry - the configuration used to create the
adaptive media imagefileVersion - the file version used to create the adaptive media
imageheight - the adaptive media image's heightwidth - the adaptive media image's widthinputStream - the adaptive media image's input stream to store in
the file storesize - the adaptive media image's sizePortalException - if an adaptive media image already exists for the
file version and configurationpublic AMImageEntry addAMImageEntry(AMImageEntry amImageEntry)
Important: Inspect AMImageEntryLocalServiceImpl 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.
addAMImageEntry in interface AMImageEntryLocalServiceamImageEntry - the am image entrypublic AMImageEntry createAMImageEntry(long amImageEntryId)
createAMImageEntry in interface AMImageEntryLocalServiceamImageEntryId - the primary key for the new am image entrypublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface AMImageEntryLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic void deleteAMImageEntries(long companyId,
AMImageConfigurationEntry amImageConfigurationEntry)
deleteAMImageEntries in interface AMImageEntryLocalServicecompanyId - the primary key of the companyamImageConfigurationEntry - the configuration used to create the
adaptive media imagepublic AMImageEntry deleteAMImageEntry(AMImageEntry amImageEntry)
Important: Inspect AMImageEntryLocalServiceImpl 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.
deleteAMImageEntry in interface AMImageEntryLocalServiceamImageEntry - the am image entrypublic AMImageEntry deleteAMImageEntry(long amImageEntryId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect AMImageEntryLocalServiceImpl 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.
deleteAMImageEntry in interface AMImageEntryLocalServiceamImageEntryId - the primary key of the am image entryPortalException - if a am image entry with the primary key could not be foundpublic void deleteAMImageEntryFileVersion(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
throws com.liferay.portal.kernel.exception.PortalException
deleteAMImageEntryFileVersion in interface AMImageEntryLocalServicefileVersion - the file versionPortalException - if the file version was not foundpublic void deleteAMImageEntryFileVersion(java.lang.String configurationUuid,
long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException
deleteAMImageEntryFileVersion in interface AMImageEntryLocalServiceconfigurationUuid - the configuration UUIDfileVersionId - the primary key of the file versionPortalException - if the file version was not foundpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface AMImageEntryLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface AMImageEntryLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface AMImageEntryLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface AMImageEntryLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface AMImageEntryLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.adaptive.media.image.model.impl.AMImageEntryModelImpl.
dynamicQuery in interface AMImageEntryLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.adaptive.media.image.model.impl.AMImageEntryModelImpl.
dynamicQuery in interface AMImageEntryLocalServicedynamicQuery - 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 (optionally null)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface AMImageEntryLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface AMImageEntryLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic AMImageEntry fetchAMImageEntry(long amImageEntryId)
fetchAMImageEntry in interface AMImageEntryLocalServicepublic AMImageEntry fetchAMImageEntry(java.lang.String configurationUuid, long fileVersionId)
fetchAMImageEntry in interface AMImageEntryLocalServiceconfigurationUuid - the UUID of the configuration used to create
the adaptive media imagefileVersionId - the primary key of the file versionnull if
a matching adaptive media image entry could not be foundpublic AMImageEntry fetchAMImageEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchAMImageEntryByUuidAndGroupId in interface AMImageEntryLocalServiceuuid - the am image entry's UUIDgroupId - the primary key of the groupnull if a matching am image entry could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface AMImageEntryLocalServicepublic java.util.List<AMImageEntry> getAMImageEntries(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.adaptive.media.image.model.impl.AMImageEntryModelImpl.
getAMImageEntries in interface AMImageEntryLocalServicestart - the lower bound of the range of am image entriesend - the upper bound of the range of am image entries (not inclusive)public java.util.List<AMImageEntry> getAMImageEntries(long fileVersionId)
getAMImageEntries in interface AMImageEntryLocalServicefileVersionId - the primary key of the file versionpublic java.util.List<AMImageEntry> getAMImageEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getAMImageEntriesByUuidAndCompanyId in interface AMImageEntryLocalServiceuuid - the UUID of the am image entriescompanyId - the primary key of the companypublic java.util.List<AMImageEntry> getAMImageEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AMImageEntry> orderByComparator)
getAMImageEntriesByUuidAndCompanyId in interface AMImageEntryLocalServiceuuid - the UUID of the am image entriescompanyId - the primary key of the companystart - the lower bound of the range of am image entriesend - the upper bound of the range of am image entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public int getAMImageEntriesCount()
getAMImageEntriesCount in interface AMImageEntryLocalServicepublic int getAMImageEntriesCount(long companyId,
java.lang.String configurationUuid)
getAMImageEntriesCount in interface AMImageEntryLocalServicecompanyId - the primary key of the companyconfigurationUuid - the UUID of the configuration used to create
the adaptive media imagepublic AMImageEntry getAMImageEntry(long amImageEntryId) throws com.liferay.portal.kernel.exception.PortalException
getAMImageEntry in interface AMImageEntryLocalServiceamImageEntryId - the primary key of the am image entryPortalException - if a am image entry with the primary key could not be foundpublic AMImageEntry getAMImageEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getAMImageEntryByUuidAndGroupId in interface AMImageEntryLocalServiceuuid - the am image entry's UUIDgroupId - the primary key of the groupPortalException - if a matching am image entry could not be foundpublic java.io.InputStream getAMImageEntryContentStream(AMImageConfigurationEntry amImageConfigurationEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
getAMImageEntryContentStream in interface AMImageEntryLocalServiceamImageConfigurationEntry - the configuration used to create the
adaptive media imagefileVersion - the file version used to create the adaptive media
imagepublic int getExpectedAMImageEntriesCount(long companyId)
getExpectedAMImageEntriesCount in interface AMImageEntryLocalServicecompanyId - the primary key of the companypublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface AMImageEntryLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface AMImageEntryLocalServicepublic int getPercentage(long companyId,
java.lang.String configurationUuid)
getPercentage in interface AMImageEntryLocalServicecompanyId - the primary key of the companyconfigurationUuid - the UUID of the configuration used to create
the adaptive media imagepublic int getPercentage(long companyId,
java.lang.String configurationUuid,
int expectedAMImageEntriesCount)
getPercentage in interface AMImageEntryLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface AMImageEntryLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic boolean hasAMImageEntryContent(java.lang.String configurationUuid,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
hasAMImageEntryContent in interface AMImageEntryLocalServicepublic AMImageEntry updateAMImageEntry(AMImageEntry amImageEntry)
Important: Inspect AMImageEntryLocalServiceImpl 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.
updateAMImageEntry in interface AMImageEntryLocalServiceamImageEntry - the am image entrypublic com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AMImageEntry> getCTPersistence()
getCTPersistence in interface AMImageEntryLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<AMImageEntry>public java.lang.Class<AMImageEntry> getModelClass()
getModelClass in interface AMImageEntryLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<AMImageEntry>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AMImageEntry>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface AMImageEntryLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<AMImageEntry>E extends java.lang.Throwablepublic AMImageEntryLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AMImageEntryLocalService>public void setWrappedService(AMImageEntryLocalService amImageEntryLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<AMImageEntryLocalService>