@ProviderType
public class TrashEntryLocalServiceUtil
extends java.lang.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() |
| Modifier and Type | Method and Description |
|---|---|
static 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<ObjectValuePair<java.lang.Long,java.lang.Integer>> statusOVPs,
UnicodeProperties typeSettingsProperties)
Moves an entry to trash.
|
static TrashEntry |
addTrashEntry(TrashEntry trashEntry)
Adds the trash entry to the database.
|
static void |
checkEntries() |
static TrashEntry |
createTrashEntry(long entryId)
Creates a new trash entry with the primary key.
|
static TrashEntry |
deleteEntry(long entryId)
Deletes the trash entry with the primary key.
|
static TrashEntry |
deleteEntry(java.lang.String className,
long classPK)
Deletes the trash entry with the entity class name and primary key.
|
static TrashEntry |
deleteEntry(TrashEntry trashEntry) |
static TrashEntry |
deleteTrashEntry(long entryId)
Deletes the trash entry with the primary key from the database.
|
static TrashEntry |
deleteTrashEntry(TrashEntry trashEntry)
Deletes the trash entry from the database.
|
static DynamicQuery |
dynamicQuery() |
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
static TrashEntry |
fetchEntry(long entryId)
Returns the trash entry with the primary key.
|
static TrashEntry |
fetchEntry(java.lang.String className,
long classPK)
Returns the trash entry with the entity class name and primary key.
|
static TrashEntry |
fetchTrashEntry(long entryId) |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static java.util.List<TrashEntry> |
getEntries(long groupId)
Returns the trash entries with the matching group ID.
|
static java.util.List<TrashEntry> |
getEntries(long groupId,
int start,
int end)
Returns a range of all the trash entries matching the group ID.
|
static java.util.List<TrashEntry> |
getEntries(long groupId,
int start,
int end,
OrderByComparator obc)
Returns a range of all the trash entries matching the group ID.
|
static java.util.List<TrashEntry> |
getEntries(long groupId,
java.lang.String className) |
static int |
getEntriesCount(long groupId)
Returns the number of trash entries with the group ID.
|
static TrashEntry |
getEntry(long entryId)
Returns the trash entry with the primary key.
|
static TrashEntry |
getEntry(java.lang.String className,
long classPK)
Returns the entry with the entity class name and primary key.
|
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static TrashEntryLocalService |
getService() |
static java.util.List<TrashEntry> |
getTrashEntries(int start,
int end)
Returns a range of all the trash entries.
|
static int |
getTrashEntriesCount()
Returns the number of trash entries.
|
static TrashEntry |
getTrashEntry(long entryId)
Returns the trash entry with the primary key.
|
static Hits |
search(long companyId,
long groupId,
long userId,
java.lang.String keywords,
int start,
int end,
Sort sort) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(TrashEntryLocalService service)
Deprecated.
As of 6.2.0
|
static TrashEntry |
updateTrashEntry(TrashEntry trashEntry)
Updates the trash entry in the database or adds it if it does not yet exist.
|
public static TrashEntry addTrashEntry(TrashEntry trashEntry) throws SystemException
trashEntry - the trash entrySystemException - if a system exception occurredpublic static TrashEntry createTrashEntry(long entryId)
entryId - the primary key for the new trash entrypublic static TrashEntry deleteTrashEntry(long entryId) throws PortalException, SystemException
entryId - the primary key of the trash entryPortalException - if a trash entry with the primary key could not be foundSystemException - if a system exception occurredpublic static TrashEntry deleteTrashEntry(TrashEntry trashEntry) throws SystemException
trashEntry - the trash entrySystemException - if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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)SystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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)SystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic static TrashEntry fetchTrashEntry(long entryId) throws SystemException
SystemExceptionpublic static TrashEntry getTrashEntry(long entryId) throws PortalException, SystemException
entryId - the primary key of the trash entryPortalException - if a trash entry with the primary key could not be foundSystemException - if a system exception occurredpublic static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static java.util.List<TrashEntry> getTrashEntries(int start, int end) throws SystemException
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)SystemException - if a system exception occurredpublic static int getTrashEntriesCount()
throws SystemException
SystemException - if a system exception occurredpublic static TrashEntry updateTrashEntry(TrashEntry trashEntry) throws SystemException
trashEntry - the trash entrySystemException - if a system exception occurredpublic static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static 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<ObjectValuePair<java.lang.Long,java.lang.Integer>> statusOVPs, UnicodeProperties typeSettingsProperties) throws PortalException, SystemException
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 entitystatus - 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., DLFileVersion)typeSettingsProperties - the type settings propertiesPortalException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void checkEntries()
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static TrashEntry deleteEntry(long entryId) throws PortalException, SystemException
entryId - the primary key of the trash entryPortalException - if a trash entry with the primary key could not
be foundSystemException - if a system exception occurredpublic static TrashEntry deleteEntry(java.lang.String className, long classPK) throws PortalException, SystemException
className - the class name of entityclassPK - the primary key of the entryPortalException - if a trash entry with the primary key could not
be foundSystemException - if a system exception occurredpublic static TrashEntry deleteEntry(TrashEntry trashEntry) throws SystemException
SystemExceptionpublic static TrashEntry fetchEntry(long entryId) throws SystemException
entryId - the primary key of the entrySystemException - if a system exception occurredpublic static TrashEntry fetchEntry(java.lang.String className, long classPK) throws SystemException
className - the class name of the entityclassPK - the primary key of the entitySystemException - if a system exception occurredpublic static java.util.List<TrashEntry> getEntries(long groupId) throws SystemException
groupId - the primary key of the groupSystemException - if a system exception occurredpublic static java.util.List<TrashEntry> getEntries(long groupId, int start, int end) throws SystemException
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)SystemException - if a system exception occurredpublic static java.util.List<TrashEntry> getEntries(long groupId, int start, int end, OrderByComparator obc) throws SystemException
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)obcSystemException - if a system exception occurredpublic static java.util.List<TrashEntry> getEntries(long groupId, java.lang.String className) throws SystemException
SystemExceptionpublic static int getEntriesCount(long groupId)
throws SystemException
groupId - the primary key of the groupSystemException - if a system exception occurredpublic static TrashEntry getEntry(long entryId) throws PortalException, SystemException
entryId - the primary key of the trash entryPortalException - if a trash entry with the primary key could not
be foundSystemException - if a system exception occurredpublic static TrashEntry getEntry(java.lang.String className, long classPK) throws PortalException, SystemException
className - the class name of the entityclassPK - the primary key of the entityPortalException - if a trash entry with the primary key could not
be foundSystemException - if a system exception occurredpublic static Hits search(long companyId, long groupId, long userId, java.lang.String keywords, int start, int end, Sort sort) throws SystemException
SystemExceptionpublic static TrashEntryLocalService getService()
public void setService(TrashEntryLocalService service)