|
Liferay 6.2-ce-ga5 | |||||||||
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 |
---|
counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, persistedModelLocalServiceRegistry, resourceLocalService, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService |
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
---|
layoutPersistence |
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. |
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 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)
|
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
---|
getClassLoader, getLayoutURL, getLayoutURL |
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, 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 properties
PortalException
- if a user with the primary key could not be found
SystemException
- if a system exception occurredpublic void checkEntries() throws PortalException, SystemException
PortalException
SystemException
public void deleteEntries(long groupId) throws SystemException
SystemException
public TrashEntry deleteEntry(long entryId) throws PortalException, SystemException
entryId
- the primary key of the trash entry
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic TrashEntry deleteEntry(String className, long classPK) throws PortalException, SystemException
className
- the class name of entityclassPK
- the primary key of the entry
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurred@Indexable(type=DELETE) public TrashEntry deleteEntry(TrashEntry trashEntry) throws SystemException
SystemException
public TrashEntry fetchEntry(long entryId) throws SystemException
entryId
- the primary key of the entry
SystemException
- if a system exception occurredpublic TrashEntry fetchEntry(String className, long classPK) throws SystemException
className
- the class name of the entityclassPK
- the primary key of the entity
SystemException
- if a system exception occurredpublic List<TrashEntry> getEntries(long groupId) throws SystemException
groupId
- the primary key of the group
SystemException
- if a system exception occurredpublic 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 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
)
obc
SystemException
- if a system exception occurredpublic List<TrashEntry> getEntries(long groupId, String className) throws SystemException
SystemException
public int getEntriesCount(long groupId) throws SystemException
groupId
- the primary key of the group
SystemException
- if a system exception occurredpublic TrashEntry getEntry(long entryId) throws PortalException, SystemException
entryId
- the primary key of the trash entry
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic TrashEntry getEntry(String className, long classPK) throws PortalException, SystemException
className
- the class name of the entityclassPK
- the primary key of the entity
PortalException
- if a trash entry with the primary key could not
be found
SystemException
- if a system exception occurredpublic Hits search(long companyId, long groupId, long userId, String keywords, int start, int end, Sort sort) throws SystemException
SystemException
protected Date getMaxAge(Group group) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |