public class TrashEntryLocalServiceWrapper extends java.lang.Object implements com.liferay.portal.kernel.service.ServiceWrapper<TrashEntryLocalService>, TrashEntryLocalService
TrashEntryLocalService.TrashEntryLocalService| Constructor and Description |
|---|
TrashEntryLocalServiceWrapper() |
TrashEntryLocalServiceWrapper(TrashEntryLocalService trashEntryLocalService) |
| Modifier and Type | Method and Description |
|---|---|
TrashEntry |
addTrashEntry(long userId,
long groupId,
java.lang.String className,
long classPK,
java.lang.String classUuid,
java.lang.String referrerClassName,
int status,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long,java.lang.Integer>> statusOVPs,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties)
Moves an entry to trash.
|
TrashEntry |
addTrashEntry(TrashEntry trashEntry)
Adds the trash entry to the database.
|
void |
checkEntries() |
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
TrashEntry |
createTrashEntry(long entryId)
Creates a new trash entry with the primary key.
|
void |
deleteEntries(long groupId) |
void |
deleteEntries(long groupId,
boolean deleteTrashedModels) |
TrashEntry |
deleteEntry(long entryId)
Deletes the trash entry with the primary key.
|
TrashEntry |
deleteEntry(java.lang.String className,
long classPK)
Deletes the trash entry with the entity class name and primary key.
|
TrashEntry |
deleteEntry(TrashEntry trashEntry) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
TrashEntry |
deleteTrashEntry(long entryId)
Deletes the trash entry with the primary key from the database.
|
TrashEntry |
deleteTrashEntry(TrashEntry trashEntry)
Deletes the trash entry from the database.
|
<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.
|
TrashEntry |
fetchEntry(long entryId)
Returns the trash entry with the primary key.
|
TrashEntry |
fetchEntry(java.lang.String className,
long classPK)
Returns the trash entry with the entity class name and primary key.
|
TrashEntry |
fetchTrashEntry(long entryId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<TrashEntry> |
getCTPersistence() |
java.util.List<TrashEntry> |
getEntries(long groupId)
Returns the trash entries with the matching group ID.
|
java.util.List<TrashEntry> |
getEntries(long groupId,
int start,
int end)
Returns a range of all the trash entries matching the group ID.
|
java.util.List<TrashEntry> |
getEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
Returns a range of all the trash entries matching the group ID.
|
java.util.List<TrashEntry> |
getEntries(long groupId,
java.lang.String className) |
int |
getEntriesCount(long groupId)
Returns the number of trash entries with the group ID.
|
TrashEntry |
getEntry(long entryId)
Returns the trash entry with the primary key.
|
TrashEntry |
getEntry(java.lang.String className,
long classPK)
Returns the entry with the entity class name and primary key.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<TrashEntry> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<TrashEntry> |
getTrashEntries(int start,
int end)
Returns a range of all the trash entries.
|
int |
getTrashEntriesCount()
Returns the number of trash entries.
|
TrashEntry |
getTrashEntry(long entryId)
Returns the trash entry with the primary key.
|
TrashEntryLocalService |
getWrappedService() |
com.liferay.portal.kernel.search.Hits |
search(long companyId,
long groupId,
long userId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<TrashEntry> |
searchTrashEntries(long companyId,
long groupId,
long userId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
void |
setWrappedService(TrashEntryLocalService trashEntryLocalService) |
TrashEntry |
updateTrashEntry(TrashEntry trashEntry)
Updates the trash 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<TrashEntry>,R,E> updateUnsafeFunction) |
public TrashEntryLocalServiceWrapper()
public TrashEntryLocalServiceWrapper(TrashEntryLocalService trashEntryLocalService)
public TrashEntry addTrashEntry(long userId, long groupId, java.lang.String className, long classPK, java.lang.String classUuid, java.lang.String referrerClassName, int status, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long,java.lang.Integer>> statusOVPs, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties) throws com.liferay.portal.kernel.exception.PortalException
addTrashEntry in interface TrashEntryLocalServiceuserId - the primary key of the user removing the entitygroupId - the primary key of the entry's groupclassName - the class name of the entityclassPK - the primary key of the entityclassUuid - the UUID of the entity's classreferrerClassName - the referrer class name used to add a deletion
SystemEventstatus - the status of the entity prior to being moved to trashstatusOVPs - the primary keys and statuses of any of the entry's
versions (e.g., com.liferay.portlet.documentlibrary.model.DLFileVersion)typeSettingsUnicodeProperties - the type settings propertiescom.liferay.portal.kernel.exception.PortalExceptionpublic TrashEntry addTrashEntry(TrashEntry trashEntry)
Important: Inspect TrashEntryLocalServiceImpl 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.
addTrashEntry in interface TrashEntryLocalServicetrashEntry - the trash entrypublic void checkEntries()
throws com.liferay.portal.kernel.exception.PortalException
checkEntries in interface TrashEntryLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecreatePersistedModel in interface TrashEntryLocalServicePortalExceptionpublic TrashEntry createTrashEntry(long entryId)
createTrashEntry in interface TrashEntryLocalServiceentryId - the primary key for the new trash entrypublic void deleteEntries(long groupId)
deleteEntries in interface TrashEntryLocalServicepublic void deleteEntries(long groupId,
boolean deleteTrashedModels)
deleteEntries in interface TrashEntryLocalServicepublic TrashEntry deleteEntry(long entryId)
deleteEntry in interface TrashEntryLocalServiceentryId - the primary key of the trash entrypublic TrashEntry deleteEntry(java.lang.String className, long classPK)
deleteEntry in interface TrashEntryLocalServiceclassName - the class name of entityclassPK - the primary key of the entrypublic TrashEntry deleteEntry(TrashEntry trashEntry)
deleteEntry in interface TrashEntryLocalServicepublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedeletePersistedModel in interface TrashEntryLocalServicePortalExceptionpublic TrashEntry deleteTrashEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect TrashEntryLocalServiceImpl 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.
deleteTrashEntry in interface TrashEntryLocalServiceentryId - the primary key of the trash entryPortalException - if a trash entry with the primary key could not be foundpublic TrashEntry deleteTrashEntry(TrashEntry trashEntry)
Important: Inspect TrashEntryLocalServiceImpl 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.
deleteTrashEntry in interface TrashEntryLocalServicetrashEntry - the trash entrypublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedslQuery in interface TrashEntryLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedslQueryCount in interface TrashEntryLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface TrashEntryLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface TrashEntryLocalServicedynamicQuery - 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.trash.model.impl.TrashEntryModelImpl.
dynamicQuery in interface TrashEntryLocalServicedynamicQuery - 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.trash.model.impl.TrashEntryModelImpl.
dynamicQuery in interface TrashEntryLocalServicedynamicQuery - 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 TrashEntryLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface TrashEntryLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic TrashEntry fetchEntry(long entryId)
fetchEntry in interface TrashEntryLocalServiceentryId - the primary key of the entrypublic TrashEntry fetchEntry(java.lang.String className, long classPK)
fetchEntry in interface TrashEntryLocalServiceclassName - the class name of the entityclassPK - the primary key of the entitypublic TrashEntry fetchTrashEntry(long entryId)
fetchTrashEntry in interface TrashEntryLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface TrashEntryLocalServicepublic java.util.List<TrashEntry> getEntries(long groupId)
getEntries in interface TrashEntryLocalServicegroupId - the primary key of the grouppublic java.util.List<TrashEntry> getEntries(long groupId, int start, int end)
getEntries in interface TrashEntryLocalServicegroupId - the primary key of the groupstart - the lower bound of the range of trash entries to returnend - the upper bound of the range of trash entries to return (not
inclusive)public java.util.List<TrashEntry> getEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
getEntries in interface TrashEntryLocalServicegroupId - the primary key of the groupstart - the lower bound of the range of trash entries to returnend - the upper bound of the range of trash entries to return (not
inclusive)orderByComparator - the comparator to order the trash entries
(optionally null)orderByComparatorpublic java.util.List<TrashEntry> getEntries(long groupId, java.lang.String className)
getEntries in interface TrashEntryLocalServicepublic int getEntriesCount(long groupId)
getEntriesCount in interface TrashEntryLocalServicegroupId - the primary key of the grouppublic TrashEntry getEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
getEntry in interface TrashEntryLocalServiceentryId - the primary key of the trash entrycom.liferay.portal.kernel.exception.PortalExceptionpublic TrashEntry getEntry(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
getEntry in interface TrashEntryLocalServiceclassName - the class name of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface TrashEntryLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface TrashEntryLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicegetPersistedModel in interface TrashEntryLocalServicePortalExceptionpublic java.util.List<TrashEntry> getTrashEntries(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.trash.model.impl.TrashEntryModelImpl.
getTrashEntries in interface TrashEntryLocalServicestart - the lower bound of the range of trash entriesend - the upper bound of the range of trash entries (not inclusive)public int getTrashEntriesCount()
getTrashEntriesCount in interface TrashEntryLocalServicepublic TrashEntry getTrashEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
getTrashEntry in interface TrashEntryLocalServiceentryId - the primary key of the trash entryPortalException - if a trash entry with the primary key could not be foundpublic com.liferay.portal.kernel.search.Hits search(long companyId,
long groupId,
long userId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
search in interface TrashEntryLocalServicepublic com.liferay.portal.kernel.search.BaseModelSearchResult<TrashEntry> searchTrashEntries(long companyId, long groupId, long userId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort)
searchTrashEntries in interface TrashEntryLocalServicepublic TrashEntry updateTrashEntry(TrashEntry trashEntry)
Important: Inspect TrashEntryLocalServiceImpl 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.
updateTrashEntry in interface TrashEntryLocalServicetrashEntry - the trash entrypublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<TrashEntry> getCTPersistence()
getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<TrashEntry>getCTPersistence in interface TrashEntryLocalServicepublic java.lang.Class<TrashEntry> getModelClass()
getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<TrashEntry>getModelClass in interface TrashEntryLocalServicepublic <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<TrashEntry>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<TrashEntry>updateWithUnsafeFunction in interface TrashEntryLocalServiceE extends java.lang.Throwablepublic TrashEntryLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<TrashEntryLocalService>public void setWrappedService(TrashEntryLocalService trashEntryLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<TrashEntryLocalService>