@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface TrashEntryLocalService extends BaseLocalService, PersistedModelLocalService
TrashEntryLocalServiceUtil
,
TrashEntryLocalServiceBaseImpl
,
TrashEntryLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
TrashEntry |
addTrashEntry(long userId,
long groupId,
String className,
long classPK,
String classUuid,
String referrerClassName,
int status,
List<ObjectValuePair<Long,Integer>> statusOVPs,
UnicodeProperties typeSettingsProperties)
Moves an entry to trash.
|
TrashEntry |
addTrashEntry(TrashEntry trashEntry)
Adds the trash entry to the database.
|
void |
checkEntries() |
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(String className,
long classPK)
Deletes the trash entry with the entity class name and primary key.
|
TrashEntry |
deleteEntry(TrashEntry trashEntry) |
PersistedModel |
deletePersistedModel(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.
|
DynamicQuery |
dynamicQuery() |
<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.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
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(String className,
long classPK)
Returns the trash entry with the entity class name and primary key.
|
TrashEntry |
fetchTrashEntry(long entryId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
List<TrashEntry> |
getEntries(long groupId)
Returns the trash entries with the matching group ID.
|
List<TrashEntry> |
getEntries(long groupId,
int start,
int end)
Returns a range of all the trash entries matching the group ID.
|
List<TrashEntry> |
getEntries(long groupId,
int start,
int end,
OrderByComparator<TrashEntry> obc)
Returns a range of all the trash entries matching the group ID.
|
List<TrashEntry> |
getEntries(long groupId,
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(String className,
long classPK)
Returns the entry with the entity class name and primary key.
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
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.
|
Hits |
search(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort) |
BaseModelSearchResult<TrashEntry> |
searchTrashEntries(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort) |
TrashEntry |
updateTrashEntry(TrashEntry trashEntry)
Updates the trash entry in the database or adds it if it does not yet exist.
|
TrashEntry addTrashEntry(long userId, long groupId, String className, long classPK, String classUuid, String referrerClassName, int status, List<ObjectValuePair<Long,Integer>> statusOVPs, UnicodeProperties typeSettingsProperties) throws PortalException
userId
- 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
SystemEvent
status
- 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
)typeSettingsProperties
- the type settings propertiesPortalException
@Indexable(type=REINDEX) TrashEntry addTrashEntry(TrashEntry trashEntry)
trashEntry
- the trash entryvoid checkEntries() throws PortalException
PortalException
@Transactional(enabled=false) TrashEntry createTrashEntry(long entryId)
entryId
- the primary key for the new trash entryvoid deleteEntries(long groupId)
void deleteEntries(long groupId, boolean deleteTrashedModels)
TrashEntry deleteEntry(long entryId)
entryId
- the primary key of the trash entryTrashEntry deleteEntry(String className, long classPK)
className
- the class name of entityclassPK
- the primary key of the entry@Indexable(type=DELETE) TrashEntry deleteEntry(TrashEntry trashEntry)
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
@Indexable(type=DELETE) TrashEntry deleteTrashEntry(long entryId) throws PortalException
entryId
- the primary key of the trash entryPortalException
- if a trash entry with the primary key could not be found@Indexable(type=DELETE) TrashEntry deleteTrashEntry(TrashEntry trashEntry)
trashEntry
- the trash entryDynamicQuery dynamicQuery()
<T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query<T> List<T> dynamicQuery(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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)<T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, 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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querylong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) TrashEntry fetchEntry(long entryId)
entryId
- the primary key of the entry@Transactional(propagation=SUPPORTS, readOnly=true) TrashEntry fetchEntry(String className, long classPK)
className
- the class name of the entityclassPK
- the primary key of the entity@Transactional(propagation=SUPPORTS, readOnly=true) TrashEntry fetchTrashEntry(long entryId)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) List<TrashEntry> getEntries(long groupId)
groupId
- the primary key of the group@Transactional(propagation=SUPPORTS, readOnly=true) List<TrashEntry> getEntries(long groupId, int start, int end)
groupId
- 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)@Transactional(propagation=SUPPORTS, readOnly=true) List<TrashEntry> getEntries(long groupId, int start, int end, OrderByComparator<TrashEntry> obc)
groupId
- 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)obc
- the comparator to order the trash entries (optionally
null
)obc
@Transactional(propagation=SUPPORTS, readOnly=true) List<TrashEntry> getEntries(long groupId, String className)
@Transactional(propagation=SUPPORTS, readOnly=true) int getEntriesCount(long groupId)
groupId
- the primary key of the group@Transactional(propagation=SUPPORTS, readOnly=true) TrashEntry getEntry(long entryId) throws PortalException
entryId
- the primary key of the trash entryPortalException
@Transactional(propagation=SUPPORTS, readOnly=true) TrashEntry getEntry(String className, long classPK) throws PortalException
className
- the class name of the entityclassPK
- the primary key of the entityPortalException
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from TrashEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of trash entriesend
- the upper bound of the range of trash entries (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) int getTrashEntriesCount()
@Transactional(propagation=SUPPORTS, readOnly=true) TrashEntry getTrashEntry(long entryId) throws PortalException
entryId
- the primary key of the trash entryPortalException
- if a trash entry with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long groupId, long userId, String keywords, int start, int end, Sort sort)
@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<TrashEntry> searchTrashEntries(long companyId, long groupId, long userId, String keywords, int start, int end, Sort sort)
@Indexable(type=REINDEX) TrashEntry updateTrashEntry(TrashEntry trashEntry)
trashEntry
- the trash entry