com.liferay.trash.service.impl.TrashEntryLocalServiceImpl
@Deprecated
public class TrashEntryLocalServiceUtil
extends Object
com.liferay.portlet.trash.service.impl.TrashEntryLocalServiceImpl
and is the
primary access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.TrashEntryLocalService
,
com.liferay.portlet.trash.service.base.TrashEntryLocalServiceBaseImpl
,
com.liferay.portlet.trash.service.impl.TrashEntryLocalServiceImpl
Constructor and Description |
---|
TrashEntryLocalServiceUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TrashEntry |
addTrashEntry(long userId,
long groupId,
String className,
long classPK,
String classUuid,
String referrerClassName,
int status,
List<ObjectValuePair<Long,Integer>> statusOVPs,
UnicodeProperties typeSettingsProperties)
Deprecated.
Moves an entry to trash.
|
static TrashEntry |
addTrashEntry(TrashEntry trashEntry)
Deprecated.
Adds the trash entry to the database.
|
static void |
checkEntries()
Deprecated.
|
static TrashEntry |
createTrashEntry(long entryId)
Deprecated.
Creates a new trash entry with the primary key.
|
static void |
deleteEntries(long groupId)
Deprecated.
|
static void |
deleteEntries(long groupId,
boolean deleteTrashedModels)
Deprecated.
|
static TrashEntry |
deleteEntry(long entryId)
Deprecated.
Deletes the trash entry with the primary key.
|
static TrashEntry |
deleteEntry(String className,
long classPK)
Deprecated.
Deletes the trash entry with the entity class name and primary key.
|
static TrashEntry |
deleteEntry(TrashEntry trashEntry)
Deprecated.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
Deprecated.
|
static TrashEntry |
deleteTrashEntry(long entryId)
Deprecated.
Deletes the trash entry with the primary key from the database.
|
static TrashEntry |
deleteTrashEntry(TrashEntry trashEntry)
Deprecated.
Deletes the trash entry from the database.
|
static DynamicQuery |
dynamicQuery()
Deprecated.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
Performs a dynamic query on the database and returns the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Deprecated.
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Deprecated.
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Deprecated.
Returns the number of rows matching the dynamic query.
|
static TrashEntry |
fetchEntry(long entryId)
Deprecated.
Returns the trash entry with the primary key.
|
static TrashEntry |
fetchEntry(String className,
long classPK)
Deprecated.
Returns the trash entry with the entity class name and primary key.
|
static TrashEntry |
fetchTrashEntry(long entryId)
Deprecated.
|
static ActionableDynamicQuery |
getActionableDynamicQuery()
Deprecated.
|
static List<TrashEntry> |
getEntries(long groupId)
Deprecated.
Returns the trash entries with the matching group ID.
|
static List<TrashEntry> |
getEntries(long groupId,
int start,
int end)
Deprecated.
Returns a range of all the trash entries matching the group ID.
|
static List<TrashEntry> |
getEntries(long groupId,
int start,
int end,
OrderByComparator<TrashEntry> obc)
Deprecated.
Returns a range of all the trash entries matching the group ID.
|
static List<TrashEntry> |
getEntries(long groupId,
String className)
Deprecated.
|
static int |
getEntriesCount(long groupId)
Deprecated.
Returns the number of trash entries with the group ID.
|
static TrashEntry |
getEntry(long entryId)
Deprecated.
Returns the trash entry with the primary key.
|
static TrashEntry |
getEntry(String className,
long classPK)
Deprecated.
Returns the entry with the entity class name and primary key.
|
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery()
Deprecated.
|
static String |
getOSGiServiceIdentifier()
Deprecated.
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
Deprecated.
|
static TrashEntryLocalService |
getService()
Deprecated.
|
static List<TrashEntry> |
getTrashEntries(int start,
int end)
Deprecated.
Returns a range of all the trash entries.
|
static int |
getTrashEntriesCount()
Deprecated.
Returns the number of trash entries.
|
static TrashEntry |
getTrashEntry(long entryId)
Deprecated.
Returns the trash entry with the primary key.
|
static Hits |
search(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
Deprecated.
|
static BaseModelSearchResult<TrashEntry> |
searchTrashEntries(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
Deprecated.
|
static TrashEntry |
updateTrashEntry(TrashEntry trashEntry)
Deprecated.
Updates the trash entry in the database or adds it if it does not yet exist.
|
public static ActionableDynamicQuery getActionableDynamicQuery()
public static DynamicQuery dynamicQuery()
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static BaseModelSearchResult<TrashEntry> searchTrashEntries(long companyId, long groupId, long userId, String keywords, int start, int end, Sort sort)
public static Hits search(long companyId, long groupId, long userId, String keywords, int start, int end, Sort sort)
public static TrashEntry addTrashEntry(TrashEntry trashEntry)
trashEntry
- the trash entrypublic static 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
public static TrashEntry createTrashEntry(long entryId)
entryId
- the primary key for the new trash entrypublic static TrashEntry deleteEntry(TrashEntry trashEntry)
public static TrashEntry deleteEntry(String className, long classPK)
className
- the class name of entityclassPK
- the primary key of the entrypublic static void deleteEntries(long groupId, boolean deleteTrashedModels)
public static TrashEntry deleteEntry(long entryId)
entryId
- the primary key of the trash entrypublic static TrashEntry deleteTrashEntry(TrashEntry trashEntry)
trashEntry
- the trash entrypublic static 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 foundpublic static TrashEntry fetchEntry(String className, long classPK)
className
- the class name of the entityclassPK
- the primary key of the entitypublic static TrashEntry fetchEntry(long entryId)
entryId
- the primary key of the entrypublic static TrashEntry fetchTrashEntry(long entryId)
public static TrashEntry getEntry(String className, long classPK) throws PortalException
className
- the class name of the entityclassPK
- the primary key of the entityPortalException
public static TrashEntry getEntry(long entryId) throws PortalException
entryId
- the primary key of the trash entryPortalException
public static 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 foundpublic static TrashEntry updateTrashEntry(TrashEntry trashEntry)
trashEntry
- the trash entrypublic static int getEntriesCount(long groupId)
groupId
- the primary key of the grouppublic static int getTrashEntriesCount()
public static String getOSGiServiceIdentifier()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <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 com.liferay.portlet.trash.model.impl.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)public static <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 com.liferay.portlet.trash.model.impl.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
)public static List<TrashEntry> getEntries(long groupId)
groupId
- the primary key of the grouppublic static 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)public static 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
public static List<TrashEntry> getEntries(long groupId, String className)
public static 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 com.liferay.portlet.trash.model.impl.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)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static void checkEntries() throws PortalException
PortalException
public static void deleteEntries(long groupId)
public static TrashEntryLocalService getService()