Liferay 6.2.0-ce-m3

com.liferay.portlet.trash.service
Interface TrashEntryService

All Superinterfaces:
BaseService
All Known Implementing Classes:
TrashEntryServiceBaseImpl, TrashEntryServiceImpl, TrashEntryServiceWrapper

@AccessControlled
@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface TrashEntryService
extends BaseService

The interface for the trash entry remote service.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
TrashEntryServiceUtil, TrashEntryServiceBaseImpl, TrashEntryServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void deleteEntries(long groupId)
          Deletes the trash entries with the matching group ID considering permissions.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 TrashEntryList getEntries(long groupId)
          Returns the trash entries with the matching group ID.
 TrashEntryList getEntries(long groupId, int start, int end, OrderByComparator obc)
          Returns a range of all the trash entries matching the group ID.
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

deleteEntries

void deleteEntries(long groupId)
                   throws SystemException,
                          PrincipalException
Deletes the trash entries with the matching group ID considering permissions.

Parameters:
groupId - the primary key of the group
Throws:
PrincipalException - if a principal exception occurred
SystemException - if a system exception occurred

getEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TrashEntryList getEntries(long groupId)
                          throws SystemException,
                                 PrincipalException
Returns the trash entries with the matching group ID.

Parameters:
groupId - the primary key of the group
Returns:
the matching trash entries
Throws:
PrincipalException - if a principal exception occurred
SystemException - if a system exception occurred

getEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TrashEntryList getEntries(long groupId,
                                                                   int start,
                                                                   int end,
                                                                   OrderByComparator obc)
                          throws SystemException,
                                 PrincipalException
Returns a range of all the trash entries matching the group ID.

Parameters:
groupId - the primary key of the group
start - the lower bound of the range of trash entries to return
end - the upper bound of the range of trash entries to return (not inclusive)
obc - the comparator to order the trash entries (optionally null)
Returns:
the range of matching trash entries ordered by comparator obc
Throws:
PrincipalException - if a system exception occurred
SystemException - if a system exception occurred

Liferay 6.2.0-ce-m3