public class AMImageEntryLocalServiceWrapper extends java.lang.Object implements AMImageEntryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<AMImageEntryLocalService>
AMImageEntryLocalService
.AMImageEntryLocalService
Constructor and Description |
---|
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.
|
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.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.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
AMImageEntryLocalService |
getWrappedService() |
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.
|
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 AMImageEntryLocalService
amImageConfigurationEntry
- 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 AMImageEntryLocalService
amImageEntry
- the am image entrypublic AMImageEntry createAMImageEntry(long amImageEntryId)
createAMImageEntry
in interface AMImageEntryLocalService
amImageEntryId
- 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 AMImageEntryLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public void deleteAMImageEntries(long companyId, AMImageConfigurationEntry amImageConfigurationEntry)
deleteAMImageEntries
in interface AMImageEntryLocalService
companyId
- 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 AMImageEntryLocalService
amImageEntry
- 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 AMImageEntryLocalService
amImageEntryId
- 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 AMImageEntryLocalService
fileVersion
- 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 AMImageEntryLocalService
configurationUuid
- 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 AMImageEntryLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface AMImageEntryLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface AMImageEntryLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface AMImageEntryLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface AMImageEntryLocalService
dynamicQuery
- 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 AMImageEntryLocalService
dynamicQuery
- 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 AMImageEntryLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface AMImageEntryLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface AMImageEntryLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic AMImageEntry fetchAMImageEntry(long amImageEntryId)
fetchAMImageEntry
in interface AMImageEntryLocalService
public AMImageEntry fetchAMImageEntry(java.lang.String configurationUuid, long fileVersionId)
fetchAMImageEntry
in interface AMImageEntryLocalService
configurationUuid
- 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 AMImageEntryLocalService
uuid
- 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 AMImageEntryLocalService
public 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 AMImageEntryLocalService
start
- 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 AMImageEntryLocalService
fileVersionId
- the primary key of the file versionpublic java.util.List<AMImageEntry> getAMImageEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getAMImageEntriesByUuidAndCompanyId
in interface AMImageEntryLocalService
uuid
- 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 AMImageEntryLocalService
uuid
- 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 AMImageEntryLocalService
public int getAMImageEntriesCount(long companyId, java.lang.String configurationUuid)
getAMImageEntriesCount
in interface AMImageEntryLocalService
companyId
- 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 AMImageEntryLocalService
amImageEntryId
- 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 AMImageEntryLocalService
uuid
- 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 AMImageEntryLocalService
amImageConfigurationEntry
- 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 AMImageEntryLocalService
companyId
- the primary key of the companypublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface AMImageEntryLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface AMImageEntryLocalService
public int getPercentage(long companyId, java.lang.String configurationUuid)
getPercentage
in interface AMImageEntryLocalService
companyId
- the primary key of the companyconfigurationUuid
- the UUID of the configuration used to create
the adaptive media imagepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface AMImageEntryLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public 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 AMImageEntryLocalService
amImageEntry
- the am image entrypublic 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>