Liferay 6.0.5

com.liferay.portlet.social.service
Class SocialActivityLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.social.service.SocialActivityLocalServiceUtil

public class SocialActivityLocalServiceUtil
extends Object

The utility for the social activity local service. This utility wraps SocialActivityLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

Never modify this class directly. Add custom service methods to SocialActivityLocalServiceImpl and rerun ServiceBuilder to regenerate this class.

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.

See Also:
SocialActivityLocalService, SocialActivityLocalServiceBaseImpl, SocialActivityLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
SocialActivityLocalServiceUtil()
           
 
Method Summary
static SocialActivity addActivity(long userId, long groupId, Date createDate, String className, long classPK, int type, String extraData, long receiverUserId)
           
static SocialActivity addActivity(long userId, long groupId, String className, long classPK, int type, String extraData, long receiverUserId)
           
static SocialActivity addSocialActivity(SocialActivity socialActivity)
          Adds the social activity to the database.
static SocialActivity addUniqueActivity(long userId, long groupId, Date createDate, String className, long classPK, int type, String extraData, long receiverUserId)
           
static SocialActivity addUniqueActivity(long userId, long groupId, String className, long classPK, int type, String extraData, long receiverUserId)
           
static SocialActivity createSocialActivity(long activityId)
          Creates a new social activity with the primary key.
static void deleteActivities(long classNameId, long classPK)
           
static void deleteActivities(String className, long classPK)
           
static void deleteActivity(long activityId)
           
static void deleteActivity(SocialActivity activity)
           
static void deleteSocialActivity(long activityId)
          Deletes the social activity with the primary key from the database.
static void deleteSocialActivity(SocialActivity socialActivity)
          Deletes the social activity from the database.
static void deleteUserActivities(long userId)
           
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
static List<SocialActivity> getActivities(long classNameId, int start, int end)
           
static List<SocialActivity> getActivities(long mirrorActivityId, long classNameId, long classPK, int start, int end)
           
static List<SocialActivity> getActivities(long mirrorActivityId, String className, long classPK, int start, int end)
           
static List<SocialActivity> getActivities(String className, int start, int end)
           
static int getActivitiesCount(long classNameId)
           
static int getActivitiesCount(long mirrorActivityId, long classNameId, long classPK)
           
static int getActivitiesCount(long mirrorActivityId, String className, long classPK)
           
static int getActivitiesCount(String className)
           
static SocialActivity getActivity(long activityId)
           
static List<SocialActivity> getGroupActivities(long groupId, int start, int end)
           
static int getGroupActivitiesCount(long groupId)
           
static List<SocialActivity> getGroupUsersActivities(long groupId, int start, int end)
           
static int getGroupUsersActivitiesCount(long groupId)
           
static SocialActivity getMirrorActivity(long mirrorActivityId)
           
static List<SocialActivity> getOrganizationActivities(long organizationId, int start, int end)
           
static int getOrganizationActivitiesCount(long organizationId)
           
static List<SocialActivity> getOrganizationUsersActivities(long organizationId, int start, int end)
           
static int getOrganizationUsersActivitiesCount(long organizationId)
           
static List<SocialActivity> getRelationActivities(long userId, int start, int end)
           
static List<SocialActivity> getRelationActivities(long userId, int type, int start, int end)
           
static int getRelationActivitiesCount(long userId)
           
static int getRelationActivitiesCount(long userId, int type)
           
static SocialActivityLocalService getService()
           
static List<SocialActivity> getSocialActivities(int start, int end)
          Gets a range of all the social activities.
static int getSocialActivitiesCount()
          Gets the number of social activities.
static SocialActivity getSocialActivity(long activityId)
          Gets the social activity with the primary key.
static List<SocialActivity> getUserActivities(long userId, int start, int end)
           
static int getUserActivitiesCount(long userId)
           
static List<SocialActivity> getUserGroupsActivities(long userId, int start, int end)
           
static int getUserGroupsActivitiesCount(long userId)
           
static List<SocialActivity> getUserGroupsAndOrganizationsActivities(long userId, int start, int end)
           
static int getUserGroupsAndOrganizationsActivitiesCount(long userId)
           
static List<SocialActivity> getUserOrganizationsActivities(long userId, int start, int end)
           
static int getUserOrganizationsActivitiesCount(long userId)
           
 void setService(SocialActivityLocalService service)
           
static SocialActivity updateSocialActivity(SocialActivity socialActivity)
          Updates the social activity in the database.
static SocialActivity updateSocialActivity(SocialActivity socialActivity, boolean merge)
          Updates the social activity in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivityLocalServiceUtil

public SocialActivityLocalServiceUtil()
Method Detail

addSocialActivity

public static SocialActivity addSocialActivity(SocialActivity socialActivity)
                                        throws SystemException
Adds the social activity to the database. Also notifies the appropriate model listeners.

Parameters:
socialActivity - the social activity to add
Returns:
the social activity that was added
Throws:
SystemException - if a system exception occurred

createSocialActivity

public static SocialActivity createSocialActivity(long activityId)
Creates a new social activity with the primary key. Does not add the social activity to the database.

Parameters:
activityId - the primary key for the new social activity
Returns:
the new social activity

deleteSocialActivity

public static void deleteSocialActivity(long activityId)
                                 throws PortalException,
                                        SystemException
Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
activityId - the primary key of the social activity to delete
Throws:
PortalException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

deleteSocialActivity

public static void deleteSocialActivity(SocialActivity socialActivity)
                                 throws SystemException
Deletes the social activity from the database. Also notifies the appropriate model listeners.

Parameters:
socialActivity - the social activity to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getSocialActivity

public static SocialActivity getSocialActivity(long activityId)
                                        throws PortalException,
                                               SystemException
Gets the social activity with the primary key.

Parameters:
activityId - the primary key of the social activity to get
Returns:
the social activity
Throws:
PortalException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getSocialActivities

public static List<SocialActivity> getSocialActivities(int start,
                                                       int end)
                                                throws SystemException
Gets a range of all the social activities.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of social activities
Throws:
SystemException - if a system exception occurred

getSocialActivitiesCount

public static int getSocialActivitiesCount()
                                    throws SystemException
Gets the number of social activities.

Returns:
the number of social activities
Throws:
SystemException - if a system exception occurred

updateSocialActivity

public static SocialActivity updateSocialActivity(SocialActivity socialActivity)
                                           throws SystemException
Updates the social activity in the database. Also notifies the appropriate model listeners.

Parameters:
socialActivity - the social activity to update
Returns:
the social activity that was updated
Throws:
SystemException - if a system exception occurred

updateSocialActivity

public static SocialActivity updateSocialActivity(SocialActivity socialActivity,
                                                  boolean merge)
                                           throws SystemException
Updates the social activity in the database. Also notifies the appropriate model listeners.

Parameters:
socialActivity - the social activity to update
merge - whether to merge the social activity with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the social activity that was updated
Throws:
SystemException - if a system exception occurred

addActivity

public static SocialActivity addActivity(long userId,
                                         long groupId,
                                         Date createDate,
                                         String className,
                                         long classPK,
                                         int type,
                                         String extraData,
                                         long receiverUserId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

addActivity

public static SocialActivity addActivity(long userId,
                                         long groupId,
                                         String className,
                                         long classPK,
                                         int type,
                                         String extraData,
                                         long receiverUserId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

addUniqueActivity

public static SocialActivity addUniqueActivity(long userId,
                                               long groupId,
                                               Date createDate,
                                               String className,
                                               long classPK,
                                               int type,
                                               String extraData,
                                               long receiverUserId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

addUniqueActivity

public static SocialActivity addUniqueActivity(long userId,
                                               long groupId,
                                               String className,
                                               long classPK,
                                               int type,
                                               String extraData,
                                               long receiverUserId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

deleteActivities

public static void deleteActivities(long classNameId,
                                    long classPK)
                             throws SystemException
Throws:
SystemException

deleteActivities

public static void deleteActivities(String className,
                                    long classPK)
                             throws SystemException
Throws:
SystemException

deleteActivity

public static void deleteActivity(long activityId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteActivity

public static void deleteActivity(SocialActivity activity)
                           throws SystemException
Throws:
SystemException

deleteUserActivities

public static void deleteUserActivities(long userId)
                                 throws SystemException
Throws:
SystemException

getActivities

public static List<SocialActivity> getActivities(long classNameId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException

getActivities

public static List<SocialActivity> getActivities(long mirrorActivityId,
                                                 long classNameId,
                                                 long classPK,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException

getActivities

public static List<SocialActivity> getActivities(long mirrorActivityId,
                                                 String className,
                                                 long classPK,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException

getActivities

public static List<SocialActivity> getActivities(String className,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException

getActivitiesCount

public static int getActivitiesCount(long classNameId)
                              throws SystemException
Throws:
SystemException

getActivitiesCount

public static int getActivitiesCount(long mirrorActivityId,
                                     long classNameId,
                                     long classPK)
                              throws SystemException
Throws:
SystemException

getActivitiesCount

public static int getActivitiesCount(long mirrorActivityId,
                                     String className,
                                     long classPK)
                              throws SystemException
Throws:
SystemException

getActivitiesCount

public static int getActivitiesCount(String className)
                              throws SystemException
Throws:
SystemException

getActivity

public static SocialActivity getActivity(long activityId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getGroupActivities

public static List<SocialActivity> getGroupActivities(long groupId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Throws:
SystemException

getGroupActivitiesCount

public static int getGroupActivitiesCount(long groupId)
                                   throws SystemException
Throws:
SystemException

getGroupUsersActivities

public static List<SocialActivity> getGroupUsersActivities(long groupId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Throws:
SystemException

getGroupUsersActivitiesCount

public static int getGroupUsersActivitiesCount(long groupId)
                                        throws SystemException
Throws:
SystemException

getMirrorActivity

public static SocialActivity getMirrorActivity(long mirrorActivityId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getOrganizationActivities

public static List<SocialActivity> getOrganizationActivities(long organizationId,
                                                             int start,
                                                             int end)
                                                      throws SystemException
Throws:
SystemException

getOrganizationActivitiesCount

public static int getOrganizationActivitiesCount(long organizationId)
                                          throws SystemException
Throws:
SystemException

getOrganizationUsersActivities

public static List<SocialActivity> getOrganizationUsersActivities(long organizationId,
                                                                  int start,
                                                                  int end)
                                                           throws SystemException
Throws:
SystemException

getOrganizationUsersActivitiesCount

public static int getOrganizationUsersActivitiesCount(long organizationId)
                                               throws SystemException
Throws:
SystemException

getRelationActivities

public static List<SocialActivity> getRelationActivities(long userId,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Throws:
SystemException

getRelationActivities

public static List<SocialActivity> getRelationActivities(long userId,
                                                         int type,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Throws:
SystemException

getRelationActivitiesCount

public static int getRelationActivitiesCount(long userId)
                                      throws SystemException
Throws:
SystemException

getRelationActivitiesCount

public static int getRelationActivitiesCount(long userId,
                                             int type)
                                      throws SystemException
Throws:
SystemException

getUserActivities

public static List<SocialActivity> getUserActivities(long userId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getUserActivitiesCount

public static int getUserActivitiesCount(long userId)
                                  throws SystemException
Throws:
SystemException

getUserGroupsActivities

public static List<SocialActivity> getUserGroupsActivities(long userId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Throws:
SystemException

getUserGroupsActivitiesCount

public static int getUserGroupsActivitiesCount(long userId)
                                        throws SystemException
Throws:
SystemException

getUserGroupsAndOrganizationsActivities

public static List<SocialActivity> getUserGroupsAndOrganizationsActivities(long userId,
                                                                           int start,
                                                                           int end)
                                                                    throws SystemException
Throws:
SystemException

getUserGroupsAndOrganizationsActivitiesCount

public static int getUserGroupsAndOrganizationsActivitiesCount(long userId)
                                                        throws SystemException
Throws:
SystemException

getUserOrganizationsActivities

public static List<SocialActivity> getUserOrganizationsActivities(long userId,
                                                                  int start,
                                                                  int end)
                                                           throws SystemException
Throws:
SystemException

getUserOrganizationsActivitiesCount

public static int getUserOrganizationsActivitiesCount(long userId)
                                               throws SystemException
Throws:
SystemException

getService

public static SocialActivityLocalService getService()

setService

public void setService(SocialActivityLocalService service)

Liferay 6.0.5