com.liferay.portlet.social.service
Interface SocialRequestLocalService

All Known Implementing Classes:
SocialRequestLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface SocialRequestLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.social.service.impl.SocialRequestLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
SocialRequestLocalServiceUtil
Generated:

Method Summary
 SocialRequest addRequest(long userId, long groupId, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId)
           
 SocialRequest addSocialRequest(SocialRequest socialRequest)
           
 SocialRequest createSocialRequest(long requestId)
           
 void deleteReceiverUserRequests(long receiverUserId)
           
 void deleteRequest(long requestId)
           
 void deleteSocialRequest(long requestId)
           
 void deleteSocialRequest(SocialRequest socialRequest)
           
 void deleteUserRequests(long userId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<SocialRequest> getReceiverUserRequests(long receiverUserId, int start, int end)
           
 java.util.List<SocialRequest> getReceiverUserRequests(long receiverUserId, int status, int start, int end)
           
 int getReceiverUserRequestsCount(long receiverUserId)
           
 int getReceiverUserRequestsCount(long receiverUserId, int status)
           
 SocialRequest getSocialRequest(long requestId)
           
 SocialRequest getSocialRequestByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 java.util.List<SocialRequest> getSocialRequests(int start, int end)
           
 int getSocialRequestsCount()
           
 java.util.List<SocialRequest> getUserRequests(long userId, int start, int end)
           
 java.util.List<SocialRequest> getUserRequests(long userId, int status, int start, int end)
           
 int getUserRequestsCount(long userId)
           
 int getUserRequestsCount(long userId, int status)
           
 boolean hasRequest(long userId, java.lang.String className, long classPK, int type, int status)
           
 boolean hasRequest(long userId, java.lang.String className, long classPK, int type, long receiverUserId, int status)
           
 SocialRequest updateRequest(long requestId, int status, ThemeDisplay themeDisplay)
           
 SocialRequest updateSocialRequest(SocialRequest socialRequest)
           
 SocialRequest updateSocialRequest(SocialRequest socialRequest, boolean merge)
           
 

Method Detail

addSocialRequest

SocialRequest addSocialRequest(SocialRequest socialRequest)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createSocialRequest

SocialRequest createSocialRequest(long requestId)

deleteSocialRequest

void deleteSocialRequest(long requestId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteSocialRequest

void deleteSocialRequest(SocialRequest socialRequest)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQueryCount

int dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSocialRequest

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SocialRequest getSocialRequest(long requestId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialRequestByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SocialRequest getSocialRequestByUuidAndGroupId(java.lang.String uuid,
                                                             long groupId)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSocialRequests

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialRequest> getSocialRequests(int start,
                                                              int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSocialRequestsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSocialRequestsCount()
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateSocialRequest

SocialRequest updateSocialRequest(SocialRequest socialRequest)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateSocialRequest

SocialRequest updateSocialRequest(SocialRequest socialRequest,
                                  boolean merge)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addRequest

SocialRequest addRequest(long userId,
                         long groupId,
                         java.lang.String className,
                         long classPK,
                         int type,
                         java.lang.String extraData,
                         long receiverUserId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteReceiverUserRequests

void deleteReceiverUserRequests(long receiverUserId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteRequest

void deleteRequest(long requestId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteUserRequests

void deleteUserRequests(long userId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getReceiverUserRequests

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialRequest> getReceiverUserRequests(long receiverUserId,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getReceiverUserRequests

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialRequest> getReceiverUserRequests(long receiverUserId,
                                                                    int status,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getReceiverUserRequestsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getReceiverUserRequestsCount(long receiverUserId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getReceiverUserRequestsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getReceiverUserRequestsCount(long receiverUserId,
                                               int status)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserRequests

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialRequest> getUserRequests(long userId,
                                                            int start,
                                                            int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserRequests

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialRequest> getUserRequests(long userId,
                                                            int status,
                                                            int start,
                                                            int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserRequestsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserRequestsCount(long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserRequestsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserRequestsCount(long userId,
                                       int status)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasRequest

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasRequest(long userId,
                                 java.lang.String className,
                                 long classPK,
                                 int type,
                                 int status)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasRequest

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasRequest(long userId,
                                 java.lang.String className,
                                 long classPK,
                                 int type,
                                 long receiverUserId,
                                 int status)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateRequest

SocialRequest updateRequest(long requestId,
                            int status,
                            ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException