Liferay 6.0-ee-sp2

com.liferay.portlet.social.service
Interface SocialActivityLocalService

All Superinterfaces:
PersistedModelLocalService
All Known Implementing Classes:
SocialActivityLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface SocialActivityLocalService
extends PersistedModelLocalService

The interface for the social activity local service.

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:
SocialActivityLocalServiceUtil, com.liferay.portlet.social.service.base.SocialActivityLocalServiceBaseImpl, com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl

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)
          Returns 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)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 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)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 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)
          Returns a range of all the social activities.
 int getSocialActivitiesCount()
          Returns the number of social activities.
 SocialActivity getSocialActivity(long activityId)
          Returns 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)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 SocialActivity updateSocialActivity(SocialActivity socialActivity)
          Updates the social activity in the database or adds it if it does not yet exist.
 SocialActivity updateSocialActivity(SocialActivity socialActivity, boolean merge)
          Updates the social activity in the database or adds it if it does not yet exist.
 

Method Detail

addSocialActivity

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

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

createSocialActivity

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

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
Throws:
PortalException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

deleteSocialActivity

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

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

dynamicQuery

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

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

dynamicQuery

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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

getSocialActivity

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SocialActivity getSocialActivity(long activityId)
                                 throws PortalException,
                                        SystemException
Returns the social activity with the primary key.

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

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getSocialActivities

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SocialActivity> getSocialActivities(int start,
                                                                                  int end)
                                         throws SystemException
Returns 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
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of social activities
Throws:
SystemException - if a system exception occurred

getSocialActivitiesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSocialActivitiesCount()
                             throws SystemException
Returns the number of social activities.

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

updateSocialActivity

SocialActivity updateSocialActivity(SocialActivity socialActivity)
                                    throws SystemException
Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

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

updateSocialActivity

SocialActivity updateSocialActivity(SocialActivity socialActivity,
                                    boolean merge)
                                    throws SystemException
Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
socialActivity - the social activity
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

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addActivity

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

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

addUniqueActivity

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

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

deleteActivities

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

deleteActivities

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

deleteActivity

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

deleteActivity

void deleteActivity(SocialActivity activity)
                    throws SystemException
Throws:
SystemException

deleteUserActivities

void deleteUserActivities(long userId)
                          throws SystemException
Throws:
SystemException

getActivities

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

getActivities

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

getActivities

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SocialActivity> getActivities(long mirrorActivityId,
                                                                            String className,
                                                                            long classPK,
                                                                            int start,
                                                                            int end)
                                   throws SystemException
Throws:
SystemException

getActivities

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SocialActivity> getActivities(String className,
                                                                            int start,
                                                                            int end)
                                   throws SystemException
Throws:
SystemException

getActivitiesCount

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

getActivitiesCount

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

getActivitiesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getActivitiesCount(long mirrorActivityId,
                                                                String className,
                                                                long classPK)
                       throws SystemException
Throws:
SystemException

getActivitiesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getActivitiesCount(String className)
                       throws SystemException
Throws:
SystemException

getActivity

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

getGroupActivities

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

getGroupActivitiesCount

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

getGroupUsersActivities

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

getGroupUsersActivitiesCount

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

getMirrorActivity

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

getOrganizationActivities

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

getOrganizationActivitiesCount

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

getOrganizationUsersActivities

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

getOrganizationUsersActivitiesCount

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

getRelationActivities

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

getRelationActivities

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

getRelationActivitiesCount

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

getRelationActivitiesCount

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

getUserActivities

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

getUserActivitiesCount

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

getUserGroupsActivities

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

getUserGroupsActivitiesCount

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

getUserGroupsAndOrganizationsActivities

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

getUserGroupsAndOrganizationsActivitiesCount

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

getUserOrganizationsActivities

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

getUserOrganizationsActivitiesCount

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

Liferay 6.0-ee-sp2