Liferay 6.0.5

com.liferay.portlet.social.service
Class SocialActivityLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.social.service.SocialActivityLocalServiceWrapper
All Implemented Interfaces:
SocialActivityLocalService

public class SocialActivityLocalServiceWrapper
extends Object
implements SocialActivityLocalService

This class is a wrapper for SocialActivityLocalService.

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

Constructor Summary
SocialActivityLocalServiceWrapper(SocialActivityLocalService socialActivityLocalService)
           
 
Method Summary
 SocialActivity addActivity(long userId, long groupId, Date createDate, String className, long classPK, int type, String extraData, long receiverUserId)
           
 SocialActivity addActivity(long userId, long groupId, String className, long classPK, int type, String extraData, long receiverUserId)
           
 SocialActivity addSocialActivity(SocialActivity socialActivity)
          Adds the social activity to the database.
 SocialActivity addUniqueActivity(long userId, long groupId, Date createDate, String className, long classPK, int type, String extraData, long receiverUserId)
           
 SocialActivity addUniqueActivity(long userId, long groupId, String className, long classPK, int type, String extraData, long receiverUserId)
           
 SocialActivity createSocialActivity(long activityId)
          Creates a new social activity with the primary key.
 void deleteActivities(long classNameId, long classPK)
           
 void deleteActivities(String className, long classPK)
           
 void deleteActivity(long activityId)
           
 void deleteActivity(SocialActivity activity)
           
 void deleteSocialActivity(long activityId)
          Deletes the social activity with the primary key from the database.
 void deleteSocialActivity(SocialActivity socialActivity)
          Deletes the social activity from the database.
 void deleteUserActivities(long userId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 List<SocialActivity> getActivities(long classNameId, int start, int end)
           
 List<SocialActivity> getActivities(long mirrorActivityId, long classNameId, long classPK, int start, int end)
           
 List<SocialActivity> getActivities(long mirrorActivityId, String className, long classPK, int start, int end)
           
 List<SocialActivity> getActivities(String className, int start, int end)
           
 int getActivitiesCount(long classNameId)
           
 int getActivitiesCount(long mirrorActivityId, long classNameId, long classPK)
           
 int getActivitiesCount(long mirrorActivityId, String className, long classPK)
           
 int getActivitiesCount(String className)
           
 SocialActivity getActivity(long activityId)
           
 List<SocialActivity> getGroupActivities(long groupId, int start, int end)
           
 int getGroupActivitiesCount(long groupId)
           
 List<SocialActivity> getGroupUsersActivities(long groupId, int start, int end)
           
 int getGroupUsersActivitiesCount(long groupId)
           
 SocialActivity getMirrorActivity(long mirrorActivityId)
           
 List<SocialActivity> getOrganizationActivities(long organizationId, int start, int end)
           
 int getOrganizationActivitiesCount(long organizationId)
           
 List<SocialActivity> getOrganizationUsersActivities(long organizationId, int start, int end)
           
 int getOrganizationUsersActivitiesCount(long organizationId)
           
 List<SocialActivity> getRelationActivities(long userId, int start, int end)
           
 List<SocialActivity> getRelationActivities(long userId, int type, int start, int end)
           
 int getRelationActivitiesCount(long userId)
           
 int getRelationActivitiesCount(long userId, int type)
           
 List<SocialActivity> getSocialActivities(int start, int end)
          Gets a range of all the social activities.
 int getSocialActivitiesCount()
          Gets the number of social activities.
 SocialActivity getSocialActivity(long activityId)
          Gets the social activity with the primary key.
 List<SocialActivity> getUserActivities(long userId, int start, int end)
           
 int getUserActivitiesCount(long userId)
           
 List<SocialActivity> getUserGroupsActivities(long userId, int start, int end)
           
 int getUserGroupsActivitiesCount(long userId)
           
 List<SocialActivity> getUserGroupsAndOrganizationsActivities(long userId, int start, int end)
           
 int getUserGroupsAndOrganizationsActivitiesCount(long userId)
           
 List<SocialActivity> getUserOrganizationsActivities(long userId, int start, int end)
           
 int getUserOrganizationsActivitiesCount(long userId)
           
 SocialActivityLocalService getWrappedSocialActivityLocalService()
           
 SocialActivity updateSocialActivity(SocialActivity socialActivity)
          Updates the social activity in the database.
 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

SocialActivityLocalServiceWrapper

public SocialActivityLocalServiceWrapper(SocialActivityLocalService socialActivityLocalService)
Method Detail

addSocialActivity

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

Specified by:
addSocialActivity in interface SocialActivityLocalService
Parameters:
socialActivity - the social activity to add
Returns:
the social activity that was added
Throws:
SystemException - if a system exception occurred

createSocialActivity

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

Specified by:
createSocialActivity in interface SocialActivityLocalService
Parameters:
activityId - the primary key for the new social activity
Returns:
the new social activity

deleteSocialActivity

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

Specified by:
deleteSocialActivity in interface SocialActivityLocalService
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 void deleteSocialActivity(SocialActivity socialActivity)
                          throws SystemException
Deletes the social activity from the database. Also notifies the appropriate model listeners.

Specified by:
deleteSocialActivity in interface SocialActivityLocalService
Parameters:
socialActivity - the social activity to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

dynamicQuery

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

Specified by:
dynamicQuery in interface SocialActivityLocalService
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 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.

Specified by:
dynamicQuery in interface SocialActivityLocalService
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 long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface SocialActivityLocalService
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 SocialActivity getSocialActivity(long activityId)
                                 throws PortalException,
                                        SystemException
Gets the social activity with the primary key.

Specified by:
getSocialActivity in interface SocialActivityLocalService
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 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.

Specified by:
getSocialActivities in interface SocialActivityLocalService
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 int getSocialActivitiesCount()
                             throws SystemException
Gets the number of social activities.

Specified by:
getSocialActivitiesCount in interface SocialActivityLocalService
Returns:
the number of social activities
Throws:
SystemException - if a system exception occurred

updateSocialActivity

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

Specified by:
updateSocialActivity in interface SocialActivityLocalService
Parameters:
socialActivity - the social activity to update
Returns:
the social activity that was updated
Throws:
SystemException - if a system exception occurred

updateSocialActivity

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

Specified by:
updateSocialActivity in interface SocialActivityLocalService
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 SocialActivity addActivity(long userId,
                                  long groupId,
                                  Date createDate,
                                  String className,
                                  long classPK,
                                  int type,
                                  String extraData,
                                  long receiverUserId)
                           throws PortalException,
                                  SystemException
Specified by:
addActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

addActivity

public SocialActivity addActivity(long userId,
                                  long groupId,
                                  String className,
                                  long classPK,
                                  int type,
                                  String extraData,
                                  long receiverUserId)
                           throws PortalException,
                                  SystemException
Specified by:
addActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

addUniqueActivity

public SocialActivity addUniqueActivity(long userId,
                                        long groupId,
                                        Date createDate,
                                        String className,
                                        long classPK,
                                        int type,
                                        String extraData,
                                        long receiverUserId)
                                 throws PortalException,
                                        SystemException
Specified by:
addUniqueActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

addUniqueActivity

public SocialActivity addUniqueActivity(long userId,
                                        long groupId,
                                        String className,
                                        long classPK,
                                        int type,
                                        String extraData,
                                        long receiverUserId)
                                 throws PortalException,
                                        SystemException
Specified by:
addUniqueActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

deleteActivities

public void deleteActivities(long classNameId,
                             long classPK)
                      throws SystemException
Specified by:
deleteActivities in interface SocialActivityLocalService
Throws:
SystemException

deleteActivities

public void deleteActivities(String className,
                             long classPK)
                      throws SystemException
Specified by:
deleteActivities in interface SocialActivityLocalService
Throws:
SystemException

deleteActivity

public void deleteActivity(long activityId)
                    throws PortalException,
                           SystemException
Specified by:
deleteActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

deleteActivity

public void deleteActivity(SocialActivity activity)
                    throws SystemException
Specified by:
deleteActivity in interface SocialActivityLocalService
Throws:
SystemException

deleteUserActivities

public void deleteUserActivities(long userId)
                          throws SystemException
Specified by:
deleteUserActivities in interface SocialActivityLocalService
Throws:
SystemException

getActivities

public List<SocialActivity> getActivities(long classNameId,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
getActivities in interface SocialActivityLocalService
Throws:
SystemException

getActivities

public List<SocialActivity> getActivities(long mirrorActivityId,
                                          long classNameId,
                                          long classPK,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
getActivities in interface SocialActivityLocalService
Throws:
SystemException

getActivities

public List<SocialActivity> getActivities(long mirrorActivityId,
                                          String className,
                                          long classPK,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
getActivities in interface SocialActivityLocalService
Throws:
SystemException

getActivities

public List<SocialActivity> getActivities(String className,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
getActivities in interface SocialActivityLocalService
Throws:
SystemException

getActivitiesCount

public int getActivitiesCount(long classNameId)
                       throws SystemException
Specified by:
getActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getActivitiesCount

public int getActivitiesCount(long mirrorActivityId,
                              long classNameId,
                              long classPK)
                       throws SystemException
Specified by:
getActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getActivitiesCount

public int getActivitiesCount(long mirrorActivityId,
                              String className,
                              long classPK)
                       throws SystemException
Specified by:
getActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getActivitiesCount

public int getActivitiesCount(String className)
                       throws SystemException
Specified by:
getActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getActivity

public SocialActivity getActivity(long activityId)
                           throws PortalException,
                                  SystemException
Specified by:
getActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

getGroupActivities

public List<SocialActivity> getGroupActivities(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Specified by:
getGroupActivities in interface SocialActivityLocalService
Throws:
SystemException

getGroupActivitiesCount

public int getGroupActivitiesCount(long groupId)
                            throws SystemException
Specified by:
getGroupActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getGroupUsersActivities

public List<SocialActivity> getGroupUsersActivities(long groupId,
                                                    int start,
                                                    int end)
                                             throws SystemException
Specified by:
getGroupUsersActivities in interface SocialActivityLocalService
Throws:
SystemException

getGroupUsersActivitiesCount

public int getGroupUsersActivitiesCount(long groupId)
                                 throws SystemException
Specified by:
getGroupUsersActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getMirrorActivity

public SocialActivity getMirrorActivity(long mirrorActivityId)
                                 throws PortalException,
                                        SystemException
Specified by:
getMirrorActivity in interface SocialActivityLocalService
Throws:
PortalException
SystemException

getOrganizationActivities

public List<SocialActivity> getOrganizationActivities(long organizationId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Specified by:
getOrganizationActivities in interface SocialActivityLocalService
Throws:
SystemException

getOrganizationActivitiesCount

public int getOrganizationActivitiesCount(long organizationId)
                                   throws SystemException
Specified by:
getOrganizationActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getOrganizationUsersActivities

public List<SocialActivity> getOrganizationUsersActivities(long organizationId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Specified by:
getOrganizationUsersActivities in interface SocialActivityLocalService
Throws:
SystemException

getOrganizationUsersActivitiesCount

public int getOrganizationUsersActivitiesCount(long organizationId)
                                        throws SystemException
Specified by:
getOrganizationUsersActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getRelationActivities

public List<SocialActivity> getRelationActivities(long userId,
                                                  int start,
                                                  int end)
                                           throws SystemException
Specified by:
getRelationActivities in interface SocialActivityLocalService
Throws:
SystemException

getRelationActivities

public List<SocialActivity> getRelationActivities(long userId,
                                                  int type,
                                                  int start,
                                                  int end)
                                           throws SystemException
Specified by:
getRelationActivities in interface SocialActivityLocalService
Throws:
SystemException

getRelationActivitiesCount

public int getRelationActivitiesCount(long userId)
                               throws SystemException
Specified by:
getRelationActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getRelationActivitiesCount

public int getRelationActivitiesCount(long userId,
                                      int type)
                               throws SystemException
Specified by:
getRelationActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getUserActivities

public List<SocialActivity> getUserActivities(long userId,
                                              int start,
                                              int end)
                                       throws SystemException
Specified by:
getUserActivities in interface SocialActivityLocalService
Throws:
SystemException

getUserActivitiesCount

public int getUserActivitiesCount(long userId)
                           throws SystemException
Specified by:
getUserActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getUserGroupsActivities

public List<SocialActivity> getUserGroupsActivities(long userId,
                                                    int start,
                                                    int end)
                                             throws SystemException
Specified by:
getUserGroupsActivities in interface SocialActivityLocalService
Throws:
SystemException

getUserGroupsActivitiesCount

public int getUserGroupsActivitiesCount(long userId)
                                 throws SystemException
Specified by:
getUserGroupsActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getUserGroupsAndOrganizationsActivities

public List<SocialActivity> getUserGroupsAndOrganizationsActivities(long userId,
                                                                    int start,
                                                                    int end)
                                                             throws SystemException
Specified by:
getUserGroupsAndOrganizationsActivities in interface SocialActivityLocalService
Throws:
SystemException

getUserGroupsAndOrganizationsActivitiesCount

public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
                                                 throws SystemException
Specified by:
getUserGroupsAndOrganizationsActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getUserOrganizationsActivities

public List<SocialActivity> getUserOrganizationsActivities(long userId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Specified by:
getUserOrganizationsActivities in interface SocialActivityLocalService
Throws:
SystemException

getUserOrganizationsActivitiesCount

public int getUserOrganizationsActivitiesCount(long userId)
                                        throws SystemException
Specified by:
getUserOrganizationsActivitiesCount in interface SocialActivityLocalService
Throws:
SystemException

getWrappedSocialActivityLocalService

public SocialActivityLocalService getWrappedSocialActivityLocalService()

Liferay 6.0.5