public class TrashEntryLocalServiceImpl extends TrashEntryLocalServiceBaseImpl
counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, persistedModelLocalServiceRegistry, resourceLocalService, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService| Constructor and Description |
|---|
TrashEntryLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portlet.trash.model.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 typeSettingsProperties)
Moves an entry to trash.
|
void |
checkEntries() |
void |
deleteEntries(long groupId) |
com.liferay.portlet.trash.model.TrashEntry |
deleteEntry(long entryId)
Deletes the trash entry with the primary key.
|
com.liferay.portlet.trash.model.TrashEntry |
deleteEntry(java.lang.String className,
long classPK)
Deletes the trash entry with the entity class name and primary key.
|
com.liferay.portlet.trash.model.TrashEntry |
deleteEntry(com.liferay.portlet.trash.model.TrashEntry trashEntry) |
com.liferay.portlet.trash.model.TrashEntry |
fetchEntry(long entryId)
Returns the trash entry with the primary key.
|
com.liferay.portlet.trash.model.TrashEntry |
fetchEntry(java.lang.String className,
long classPK)
Returns the trash entry with the entity class name and primary key.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
getEntries(long groupId)
Returns the trash entries with the matching group ID.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
getEntries(long groupId,
int start,
int end)
Returns a range of all the trash entries matching the group ID.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
getEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns a range of all the trash entries matching the group ID.
|
java.util.List<com.liferay.portlet.trash.model.TrashEntry> |
getEntries(long groupId,
java.lang.String className) |
int |
getEntriesCount(long groupId)
Returns the number of trash entries with the group ID.
|
com.liferay.portlet.trash.model.TrashEntry |
getEntry(long entryId)
Returns the trash entry with the primary key.
|
com.liferay.portlet.trash.model.TrashEntry |
getEntry(java.lang.String className,
long classPK)
Returns the entry with the entity class name and primary key.
|
protected java.util.Date |
getMaxAge(com.liferay.portal.model.Group group) |
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) |
addTrashEntry, afterPropertiesSet, createTrashEntry, deleteTrashEntry, deleteTrashEntry, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchTrashEntry, getBeanIdentifier, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getSystemEventLocalService, getSystemEventPersistence, getTrashEntries, getTrashEntriesCount, getTrashEntry, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBeanIdentifier, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setResourceLocalService, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateTrashEntrypublic com.liferay.portlet.trash.model.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 typeSettingsProperties)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.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 propertiescom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void checkEntries()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteEntries(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.trash.model.TrashEntry deleteEntry(long entryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the trash entrycom.liferay.portal.kernel.exception.PortalException - if a trash entry with the primary key could not
be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry deleteEntry(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
className - the class name of entityclassPK - the primary key of the entrycom.liferay.portal.kernel.exception.PortalException - if a trash entry with the primary key could not
be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurred@Indexable(type=DELETE)
public com.liferay.portlet.trash.model.TrashEntry deleteEntry(com.liferay.portlet.trash.model.TrashEntry trashEntry)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.trash.model.TrashEntry fetchEntry(long entryId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the entrycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry fetchEntry(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
className - the class name of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.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)obccom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.trash.model.TrashEntry> getEntries(long groupId,
java.lang.String className)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getEntriesCount(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry getEntry(long entryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the trash entrycom.liferay.portal.kernel.exception.PortalException - if a trash entry with the primary key could not
be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.trash.model.TrashEntry getEntry(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
className - the class name of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.PortalException - if a trash entry with the primary key could not
be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic 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)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected java.util.Date getMaxAge(com.liferay.portal.model.Group group)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException