com.liferay.portlet.social.service
Interface SocialActivityLocalService


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

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.SocialActivityLocalServiceImpl. 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:
SocialActivityLocalServiceUtil

Method Summary
 SocialActivity addActivity(long userId, long groupId, java.util.Date createDate, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId)
           
 SocialActivity addActivity(long userId, long groupId, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId)
           
 SocialActivity addSocialActivity(SocialActivity socialActivity)
           
 SocialActivity addUniqueActivity(long userId, long groupId, java.util.Date createDate, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId)
           
 SocialActivity addUniqueActivity(long userId, long groupId, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId)
           
 SocialActivity createSocialActivity(long activityId)
           
 void deleteActivities(long classNameId, long classPK)
           
 void deleteActivities(java.lang.String className, long classPK)
           
 void deleteActivity(long activityId)
           
 void deleteSocialActivity(long activityId)
           
 void deleteSocialActivity(SocialActivity socialActivity)
           
 void deleteUserActivities(long userId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<SocialActivity> getActivities(long classNameId, int start, int end)
           
 java.util.List<SocialActivity> getActivities(long mirrorActivityId, long classNameId, long classPK, int start, int end)
           
 java.util.List<SocialActivity> getActivities(long mirrorActivityId, java.lang.String className, long classPK, int start, int end)
           
 java.util.List<SocialActivity> getActivities(java.lang.String className, int start, int end)
           
 int getActivitiesCount(long classNameId)
           
 int getActivitiesCount(long mirrorActivityId, long classNameId, long classPK)
           
 int getActivitiesCount(long mirrorActivityId, java.lang.String className, long classPK)
           
 int getActivitiesCount(java.lang.String className)
           
 SocialActivity getActivity(long activityId)
           
 java.util.List<SocialActivity> getGroupActivities(long groupId, int start, int end)
           
 int getGroupActivitiesCount(long groupId)
           
 java.util.List<SocialActivity> getGroupUsersActivities(long groupId, int start, int end)
           
 int getGroupUsersActivitiesCount(long groupId)
           
 SocialActivity getMirrorActivity(long mirrorActivityId)
           
 java.util.List<SocialActivity> getOrganizationActivities(long organizationId, int start, int end)
           
 int getOrganizationActivitiesCount(long organizationId)
           
 java.util.List<SocialActivity> getOrganizationUsersActivities(long organizationId, int start, int end)
           
 int getOrganizationUsersActivitiesCount(long organizationId)
           
 java.util.List<SocialActivity> getRelationActivities(long userId, int start, int end)
           
 java.util.List<SocialActivity> getRelationActivities(long userId, int type, int start, int end)
           
 int getRelationActivitiesCount(long userId)
           
 int getRelationActivitiesCount(long userId, int type)
           
 java.util.List<SocialActivity> getSocialActivities(int start, int end)
           
 int getSocialActivitiesCount()
           
 SocialActivity getSocialActivity(long activityId)
           
 java.util.List<SocialActivity> getUserActivities(long userId, int start, int end)
           
 int getUserActivitiesCount(long userId)
           
 java.util.List<SocialActivity> getUserGroupsActivities(long userId, int start, int end)
           
 int getUserGroupsActivitiesCount(long userId)
           
 java.util.List<SocialActivity> getUserGroupsAndOrganizationsActivities(long userId, int start, int end)
           
 int getUserGroupsAndOrganizationsActivitiesCount(long userId)
           
 java.util.List<SocialActivity> getUserOrganizationsActivities(long userId, int start, int end)
           
 int getUserOrganizationsActivitiesCount(long userId)
           
 SocialActivity updateSocialActivity(SocialActivity socialActivity)
           
 

Method Detail

addSocialActivity

SocialActivity addSocialActivity(SocialActivity socialActivity)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createSocialActivity

SocialActivity createSocialActivity(long activityId)

deleteSocialActivity

void deleteSocialActivity(long activityId)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteSocialActivity

void deleteSocialActivity(SocialActivity socialActivity)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

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

dynamicQuery

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

getSocialActivity

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SocialActivity getSocialActivity(long activityId)
                                 throws com.liferay.portal.SystemException,
                                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getSocialActivities

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

getSocialActivitiesCount

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

updateSocialActivity

SocialActivity updateSocialActivity(SocialActivity socialActivity)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addActivity

SocialActivity addActivity(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

addActivity

SocialActivity addActivity(long userId,
                           long groupId,
                           java.util.Date createDate,
                           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

addUniqueActivity

SocialActivity addUniqueActivity(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

addUniqueActivity

SocialActivity addUniqueActivity(long userId,
                                 long groupId,
                                 java.util.Date createDate,
                                 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

deleteActivities

void deleteActivities(java.lang.String className,
                      long classPK)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteActivities

void deleteActivities(long classNameId,
                      long classPK)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteActivity

void deleteActivity(long activityId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteUserActivities

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

getActivities

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialActivity> getActivities(java.lang.String className,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getActivities

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

getActivities

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialActivity> getActivities(long mirrorActivityId,
                                                           java.lang.String className,
                                                           long classPK,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getActivities

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SocialActivity> getActivities(long mirrorActivityId,
                                                           long classNameId,
                                                           long classPK,
                                                           int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getActivitiesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getActivitiesCount(java.lang.String className)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getActivitiesCount

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

getActivitiesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getActivitiesCount(long mirrorActivityId,
                                     java.lang.String className,
                                     long classPK)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getActivitiesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getActivitiesCount(long mirrorActivityId,
                                     long classNameId,
                                     long classPK)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getActivity

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SocialActivity getActivity(long activityId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getGroupActivities

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

getGroupActivitiesCount

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

getGroupUsersActivities

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

getGroupUsersActivitiesCount

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

getMirrorActivity

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SocialActivity getMirrorActivity(long mirrorActivityId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getOrganizationActivities

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

getOrganizationActivitiesCount

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

getOrganizationUsersActivities

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

getOrganizationUsersActivitiesCount

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

getRelationActivities

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

getRelationActivities

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

getRelationActivitiesCount

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

getRelationActivitiesCount

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

getUserActivities

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

getUserActivitiesCount

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

getUserGroupsActivities

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

getUserGroupsActivitiesCount

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

getUserGroupsAndOrganizationsActivities

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

getUserGroupsAndOrganizationsActivitiesCount

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

getUserOrganizationsActivities

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

getUserOrganizationsActivitiesCount

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