Liferay 6.2.0-ce-m3

com.liferay.portlet.trash.service
Class TrashEntryServiceUtil

java.lang.Object
  extended by com.liferay.portlet.trash.service.TrashEntryServiceUtil

public class TrashEntryServiceUtil
extends Object

The utility for the trash entry remote service. This utility wraps com.liferay.portlet.trash.service.impl.TrashEntryServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

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:
TrashEntryService, com.liferay.portlet.trash.service.base.TrashEntryServiceBaseImpl, com.liferay.portlet.trash.service.impl.TrashEntryServiceImpl

Constructor Summary
TrashEntryServiceUtil()
           
 
Method Summary
static void deleteEntries(long groupId)
          Deletes the trash entries with the matching group ID considering permissions.
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static TrashEntryList getEntries(long groupId)
          Returns the trash entries with the matching group ID.
static TrashEntryList getEntries(long groupId, int start, int end, OrderByComparator obc)
          Returns a range of all the trash entries matching the group ID.
static TrashEntryService getService()
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(TrashEntryService service)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrashEntryServiceUtil

public TrashEntryServiceUtil()
Method Detail

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

deleteEntries

public static 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

public static 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

public static 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

getService

public static TrashEntryService getService()

setService

public void setService(TrashEntryService service)
Deprecated. 


Liferay 6.2.0-ce-m3