|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.trash.service.base.TrashEntryLocalServiceBaseImpl
com.liferay.portlet.trash.service.impl.TrashEntryLocalServiceImpl
public class TrashEntryLocalServiceImpl
Provides the local service for accessing, adding, checking, and deleting trash entries in the Recycle Bin.
| Field Summary |
|---|
| Fields inherited from class com.liferay.portlet.trash.service.base.TrashEntryLocalServiceBaseImpl |
|---|
classNameLocalService, classNamePersistence, counterLocalService, groupFinder, groupLocalService, groupPersistence, persistedModelLocalServiceRegistry, resourceLocalService, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence |
| Constructor Summary | |
|---|---|
TrashEntryLocalServiceImpl()
|
|
| Method Summary | |
|---|---|
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. |
protected SearchContext |
buildSearchContext(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
|
void |
checkEntries()
|
void |
deleteEntries(long groupId)
|
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)
|
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. |
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. |
protected Date |
getMaxAge(Group group)
|
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)
|
| Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
|---|
getClassLoader, getLocalizationMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrashEntryLocalServiceImpl()
| Method Detail |
|---|
public 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
SystemEventstatus - 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 properties
PortalException
public void checkEntries()
throws PortalException
PortalExceptionpublic void deleteEntries(long groupId)
public TrashEntry deleteEntry(long entryId)
entryId - the primary key of the trash entry
public TrashEntry deleteEntry(String className,
long classPK)
className - the class name of entityclassPK - the primary key of the entry
@Indexable(type=DELETE) public TrashEntry deleteEntry(TrashEntry trashEntry)
public TrashEntry fetchEntry(long entryId)
entryId - the primary key of the entry
public TrashEntry fetchEntry(String className,
long classPK)
className - the class name of the entityclassPK - the primary key of the entity
public List<TrashEntry> getEntries(long groupId)
groupId - the primary key of the group
public 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 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 List<TrashEntry> getEntries(long groupId,
String className)
public int getEntriesCount(long groupId)
groupId - the primary key of the group
public TrashEntry getEntry(long entryId)
throws PortalException
entryId - the primary key of the trash entry
PortalException
public TrashEntry getEntry(String className,
long classPK)
throws PortalException
className - the class name of the entityclassPK - the primary key of the entity
PortalException
public Hits search(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
public BaseModelSearchResult<TrashEntry> searchTrashEntries(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
protected SearchContext buildSearchContext(long companyId,
long groupId,
long userId,
String keywords,
int start,
int end,
Sort sort)
protected Date getMaxAge(Group group)
throws PortalException
PortalException
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||