public class TrashEntryLocalServiceImpl extends TrashEntryLocalServiceBaseImpl
classNameLocalService, classNamePersistence, counterLocalService, groupFinder, groupLocalService, groupPersistence, persistedModelLocalServiceRegistry, resourceLocalService, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence
Constructor and Description |
---|
TrashEntryLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.trash.kernel.model.TrashEntry |
addTrashEntry(long userId,
long groupId,
String className,
long classPK,
String classUuid,
String referrerClassName,
int status,
List<com.liferay.portal.kernel.util.ObjectValuePair<Long,Integer>> statusOVPs,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
Moves an entry to trash.
|
protected com.liferay.portal.kernel.search.SearchContext |
buildSearchContext(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
void |
checkEntries() |
void |
deleteEntries(long groupId) |
void |
deleteEntries(long groupId,
boolean deleteTrashedModels) |
com.liferay.trash.kernel.model.TrashEntry |
deleteEntry(long entryId)
Deletes the trash entry with the primary key.
|
com.liferay.trash.kernel.model.TrashEntry |
deleteEntry(String className,
long classPK)
Deletes the trash entry with the entity class name and primary key.
|
com.liferay.trash.kernel.model.TrashEntry |
deleteEntry(com.liferay.trash.kernel.model.TrashEntry trashEntry) |
com.liferay.trash.kernel.model.TrashEntry |
fetchEntry(long entryId)
Returns the trash entry with the primary key.
|
com.liferay.trash.kernel.model.TrashEntry |
fetchEntry(String className,
long classPK)
Returns the trash entry with the entity class name and primary key.
|
List<com.liferay.trash.kernel.model.TrashEntry> |
getEntries(long groupId)
Returns the trash entries with the matching group ID.
|
List<com.liferay.trash.kernel.model.TrashEntry> |
getEntries(long groupId,
int start,
int end)
Returns a range of all the trash entries matching the group ID.
|
List<com.liferay.trash.kernel.model.TrashEntry> |
getEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.trash.kernel.model.TrashEntry> obc)
Returns a range of all the trash entries matching the group ID.
|
List<com.liferay.trash.kernel.model.TrashEntry> |
getEntries(long groupId,
String className) |
int |
getEntriesCount(long groupId)
Returns the number of trash entries with the group ID.
|
com.liferay.trash.kernel.model.TrashEntry |
getEntry(long entryId)
Returns the trash entry with the primary key.
|
com.liferay.trash.kernel.model.TrashEntry |
getEntry(String className,
long classPK)
Returns the entry with the entity class name and primary key.
|
protected Date |
getMaxAge(com.liferay.portal.kernel.model.Group group) |
com.liferay.portal.kernel.search.Hits |
search(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.trash.kernel.model.TrashEntry> |
searchTrashEntries(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
addTrashEntry, afterPropertiesSet, createTrashEntry, deletePersistedModel, deleteTrashEntry, deleteTrashEntry, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchTrashEntry, getActionableDynamicQuery, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getResourceLocalService, getSystemEventLocalService, getSystemEventPersistence, getTrashEntries, getTrashEntriesCount, getTrashEntry, getTrashEntryLocalService, getTrashEntryPersistence, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setResourceLocalService, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, updateTrashEntry
public com.liferay.trash.kernel.model.TrashEntry addTrashEntry(long userId, long groupId, String className, long classPK, String classUuid, String referrerClassName, int status, List<com.liferay.portal.kernel.util.ObjectValuePair<Long,Integer>> statusOVPs, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) throws com.liferay.portal.kernel.exception.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 propertiescom.liferay.portal.kernel.exception.PortalException
public void checkEntries() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteEntries(long groupId)
public void deleteEntries(long groupId, boolean deleteTrashedModels)
public com.liferay.trash.kernel.model.TrashEntry deleteEntry(long entryId)
entryId
- the primary key of the trash entrypublic com.liferay.trash.kernel.model.TrashEntry deleteEntry(String className, long classPK)
className
- the class name of entityclassPK
- the primary key of the entry@Indexable(type=DELETE) public com.liferay.trash.kernel.model.TrashEntry deleteEntry(com.liferay.trash.kernel.model.TrashEntry trashEntry)
public com.liferay.trash.kernel.model.TrashEntry fetchEntry(long entryId)
entryId
- the primary key of the entrypublic com.liferay.trash.kernel.model.TrashEntry fetchEntry(String className, long classPK)
className
- the class name of the entityclassPK
- the primary key of the entitypublic List<com.liferay.trash.kernel.model.TrashEntry> getEntries(long groupId)
groupId
- the primary key of the grouppublic List<com.liferay.trash.kernel.model.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 List<com.liferay.trash.kernel.model.TrashEntry> getEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.trash.kernel.model.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 List<com.liferay.trash.kernel.model.TrashEntry> getEntries(long groupId, String className)
public int getEntriesCount(long groupId)
groupId
- the primary key of the grouppublic com.liferay.trash.kernel.model.TrashEntry getEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
entryId
- the primary key of the trash entrycom.liferay.portal.kernel.exception.PortalException
public com.liferay.trash.kernel.model.TrashEntry getEntry(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
className
- the class name of the entityclassPK
- the primary key of the entitycom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long userId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort)
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.trash.kernel.model.TrashEntry> searchTrashEntries(long companyId, long groupId, long userId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort)
protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long groupId, long userId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort)
protected Date getMaxAge(com.liferay.portal.kernel.model.Group group) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException