com.liferay.social.kernel.service.SocialActivityLocalServiceWrapper Maven / Gradle / Ivy
Show all versions of com.liferay.portal.kernel Show documentation
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.social.kernel.service; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.service.ServiceWrapper; /** * Provides a wrapper for {@link SocialActivityLocalService}. * * @author Brian Wing Shun Chan * @see SocialActivityLocalService * @generated */ @ProviderType public class SocialActivityLocalServiceWrapper implements SocialActivityLocalService, ServiceWrapper
refers * to the first result in the set. Setting both{ public SocialActivityLocalServiceWrapper( SocialActivityLocalService socialActivityLocalService) { _socialActivityLocalService = socialActivityLocalService; } @Override public void addActivity( com.liferay.social.kernel.model.SocialActivity activity, com.liferay.social.kernel.model.SocialActivity mirrorActivity) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.addActivity(activity, mirrorActivity); } /** * Records an activity in the database, using a time based on the current * time in an attempt to make the activity's time unique. * * @param userId the primary key of the acting user * @param groupId the primary key of the group * @param className the target asset's class name * @param classPK the primary key of the target asset * @param type the activity's type * @param extraData any extra data regarding the activity * @param receiverUserId the primary key of the receiving user */ @Override public void addActivity(long userId, long groupId, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.addActivity(userId, groupId, className, classPK, type, extraData, receiverUserId); } /** * Records an activity with the given time in the database. * * * This method records a social activity done on an asset, identified by its * class name and class primary key, in the database. Additional information * (such as the original message ID for a reply to a forum post) is passed * in via the
* *extraData
in JSON format. For activities * affecting another user, a mirror activity is generated that describes the * action from the user's point of view. The target user's ID is passed in * via thereceiverUserId
. ** Example for a mirrored activity:
* *
When a user replies to a message * boards post, the reply action is stored in the database with the *receiverUserId
being the ID of the author of the original * message. TheextraData
contains the ID of the original * message in JSON format. A mirror activity is generated with the values of * theuserId
and thereceiverUserId
swapped. This * mirror activity basically describes a "replied to" event. ** Mirror activities are most often used in relation to friend requests and * activities. *
* * @param userId the primary key of the acting user * @param groupId the primary key of the group * @param createDate the activity's date * @param className the target asset's class name * @param classPK the primary key of the target asset * @param type the activity's type * @param extraData any extra data regarding the activity * @param receiverUserId the primary key of the receiving user */ @Override public void 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.kernel.exception.PortalException { _socialActivityLocalService.addActivity(userId, groupId, createDate, className, classPK, type, extraData, receiverUserId); } /** * Adds the social activity to the database. Also notifies the appropriate model listeners. * * @param socialActivity the social activity * @return the social activity that was added */ @Override public com.liferay.social.kernel.model.SocialActivity addSocialActivity( com.liferay.social.kernel.model.SocialActivity socialActivity) { return _socialActivityLocalService.addSocialActivity(socialActivity); } /** * Records an activity with the current time in the database, but only if * there isn't one with the same parameters. * ** For the main functionality see {@link #addActivity(long, long, Date, * String, long, int, String, long)} *
* * @param userId the primary key of the acting user * @param groupId the primary key of the group * @param className the target asset's class name * @param classPK the primary key of the target asset * @param type the activity's type * @param extraData any extra data regarding the activity * @param receiverUserId the primary key of the receiving user */ @Override public void addUniqueActivity(long userId, long groupId, java.lang.String className, long classPK, int type, java.lang.String extraData, long receiverUserId) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.addUniqueActivity(userId, groupId, className, classPK, type, extraData, receiverUserId); } /** * Records an activity in the database, but only if there isn't already an * activity with the same parameters. * ** For the main functionality see {@link #addActivity(long, long, Date, * String, long, int, String, long)} *
* * @param userId the primary key of the acting user * @param groupId the primary key of the group * @param createDate the activity's date * @param className the target asset's class name * @param classPK the primary key of the target asset * @param type the activity's type * @param extraData any extra data regarding the activity * @param receiverUserId the primary key of the receiving user */ @Override public void 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.kernel.exception.PortalException { _socialActivityLocalService.addUniqueActivity(userId, groupId, createDate, className, classPK, type, extraData, receiverUserId); } /** * Creates a new social activity with the primary key. Does not add the social activity to the database. * * @param activityId the primary key for the new social activity * @return the new social activity */ @Override public com.liferay.social.kernel.model.SocialActivity createSocialActivity( long activityId) { return _socialActivityLocalService.createSocialActivity(activityId); } /** * Removes stored activities for the asset. * * @param assetEntry the asset from which to remove stored activities */ @Override public void deleteActivities( com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.deleteActivities(assetEntry); } /** * Removes stored activities for the asset identified by the class name and * class primary key. * * @param className the target asset's class name * @param classPK the primary key of the target asset */ @Override public void deleteActivities(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.deleteActivities(className, classPK); } @Override public void deleteActivities(long groupId) { _socialActivityLocalService.deleteActivities(groupId); } /** * Removes the stored activity and its mirror activity from the database. * * @param activity the activity to be removed */ @Override public void deleteActivity( com.liferay.social.kernel.model.SocialActivity activity) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.deleteActivity(activity); } /** * Removes the stored activity from the database. * * @param activityId the primary key of the stored activity */ @Override public void deleteActivity(long activityId) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.deleteActivity(activityId); } /** * @throws PortalException */ @Override public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException { return _socialActivityLocalService.deletePersistedModel(persistedModel); } /** * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners. * * @param activityId the primary key of the social activity * @return the social activity that was removed * @throws PortalException if a social activity with the primary key could not be found */ @Override public com.liferay.social.kernel.model.SocialActivity deleteSocialActivity( long activityId) throws com.liferay.portal.kernel.exception.PortalException { return _socialActivityLocalService.deleteSocialActivity(activityId); } /** * Deletes the social activity from the database. Also notifies the appropriate model listeners. * * @param socialActivity the social activity * @return the social activity that was removed */ @Override public com.liferay.social.kernel.model.SocialActivity deleteSocialActivity( com.liferay.social.kernel.model.SocialActivity socialActivity) { return _socialActivityLocalService.deleteSocialActivity(socialActivity); } /** * Removes the user's stored activities from the database. * ** This method removes all activities where the user is either the actor or * the receiver. *
* * @param userId the primary key of the user */ @Override public void deleteUserActivities(long userId) throws com.liferay.portal.kernel.exception.PortalException { _socialActivityLocalService.deleteUserActivities(userId); } @Override public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { return _socialActivityLocalService.dynamicQuery(); } /** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ @Override publicjava.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return _socialActivityLocalService.dynamicQuery(dynamicQuery); } /** * Performs a dynamic query on the database and returns a range of the matching rows. * * * Useful when paginating results. Returns a maximum of
* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows */ @Override publicend - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent and pagination is required (start
andend
are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If bothorderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *java.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) { return _socialActivityLocalService.dynamicQuery(dynamicQuery, start, end); } /** * Performs a dynamic query on the database and returns an ordered range of the matching rows. * * * Useful when paginating results. Returns a maximum of
* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionallyend - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent and pagination is required (start
andend
are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If bothorderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *null
) * @return the ordered range of matching rows */ @Override publicjava.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { return _socialActivityLocalService.dynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows matching the dynamic query */ @Override public long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return _socialActivityLocalService.dynamicQueryCount(dynamicQuery); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ @Override public long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return _socialActivityLocalService.dynamicQueryCount(dynamicQuery, projection); } @Override public com.liferay.social.kernel.model.SocialActivity fetchFirstActivity( java.lang.String className, long classPK, int type) { return _socialActivityLocalService.fetchFirstActivity(className, classPK, type); } @Override public com.liferay.social.kernel.model.SocialActivity fetchSocialActivity( long activityId) { return _socialActivityLocalService.fetchSocialActivity(activityId); } @Override public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { return _socialActivityLocalService.getActionableDynamicQuery(); } /** * Returns a range of all the activities done on assets identified by the * class name. * * * Useful when paginating results. Returns a maximum of
* * @param className the target asset's class name * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getActivities( java.lang.String className, int start, int end) { return _socialActivityLocalService.getActivities(className, start, end); } /** * Returns a range of all the activities done on assets identified by the * class name ID. * * * Useful when paginating results. Returns a maximum of
* * @param classNameId the target asset's class name ID * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getActivities( long classNameId, int start, int end) { return _socialActivityLocalService.getActivities(classNameId, start, end); } /** * Returns a range of all the activities done on the asset identified by the * class name and the class primary key that are mirrors of the activity * identified by the mirror activity ID. * * * Useful when paginating results. Returns a maximum of
* * @param mirrorActivityId the primary key of the mirror activity * @param className the target asset's class name * @param classPK the primary key of the target asset * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getActivities( long mirrorActivityId, java.lang.String className, long classPK, int start, int end) { return _socialActivityLocalService.getActivities(mirrorActivityId, className, classPK, start, end); } /** * Returns a range of all the activities done on the asset identified by the * class name ID and class primary key that are mirrors of the activity * identified by the mirror activity ID. * * * Useful when paginating results. Returns a maximum of
* * @param mirrorActivityId the primary key of the mirror activity * @param classNameId the target asset's class name ID * @param classPK the primary key of the target asset * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getActivities( long mirrorActivityId, long classNameId, long classPK, int start, int end) { return _socialActivityLocalService.getActivities(mirrorActivityId, classNameId, classPK, start, end); } /** * Returns the number of activities done on assets identified by class name. * * @param className the target asset's class name * @return the number of matching activities */ @Override public int getActivitiesCount(java.lang.String className) { return _socialActivityLocalService.getActivitiesCount(className); } /** * Returns the number of activities done on assets identified by the class * name ID. * * @param classNameId the target asset's class name ID * @return the number of matching activities */ @Override public int getActivitiesCount(long classNameId) { return _socialActivityLocalService.getActivitiesCount(classNameId); } /** * Returns the number of activities done on the asset identified by the * class name and class primary key that are mirrors of the activity * identified by the mirror activity ID. * * @param mirrorActivityId the primary key of the mirror activity * @param className the target asset's class name * @param classPK the primary key of the target asset * @return the number of matching activities */ @Override public int getActivitiesCount(long mirrorActivityId, java.lang.String className, long classPK) { return _socialActivityLocalService.getActivitiesCount(mirrorActivityId, className, classPK); } /** * Returns the number of activities done on the asset identified by the * class name ID and class primary key that are mirrors of the activity * identified by the mirror activity ID. * * @param mirrorActivityId the primary key of the mirror activity * @param classNameId the target asset's class name ID * @param classPK the primary key of the target asset * @return the number of matching activities */ @Override public int getActivitiesCount(long mirrorActivityId, long classNameId, long classPK) { return _socialActivityLocalService.getActivitiesCount(mirrorActivityId, classNameId, classPK); } /** * Returns the activity identified by its primary key. * * @param activityId the primary key of the activity * @return Returns the activity */ @Override public com.liferay.social.kernel.model.SocialActivity getActivity( long activityId) throws com.liferay.portal.kernel.exception.PortalException { return _socialActivityLocalService.getActivity(activityId); } @Override public java.util.List getActivitySetActivities( long activitySetId, int start, int end) { return _socialActivityLocalService.getActivitySetActivities(activitySetId, start, end); } /** * Returns a range of all the activities done in the group. * * * This method only finds activities without mirrors. *
* ** Useful when paginating results. Returns a maximum of
* * @param groupId the primary key of the group * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getGroupActivities( long groupId, int start, int end) { return _socialActivityLocalService.getGroupActivities(groupId, start, end); } /** * Returns the number of activities done in the group. * * * This method only counts activities without mirrors. *
* * @param groupId the primary key of the group * @return the number of matching activities */ @Override public int getGroupActivitiesCount(long groupId) { return _socialActivityLocalService.getGroupActivitiesCount(groupId); } /** * Returns a range of activities done by users that are members of the * group. * ** This method only finds activities without mirrors. *
* ** Useful when paginating results. Returns a maximum of
* * @param groupId the primary key of the group * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getGroupUsersActivities( long groupId, int start, int end) { return _socialActivityLocalService.getGroupUsersActivities(groupId, start, end); } /** * Returns the number of activities done by users that are members of the * group. * * * This method only counts activities without mirrors. *
* * @param groupId the primary key of the group * @return the number of matching activities */ @Override public int getGroupUsersActivitiesCount(long groupId) { return _socialActivityLocalService.getGroupUsersActivitiesCount(groupId); } @Override public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { return _socialActivityLocalService.getIndexableActionableDynamicQuery(); } /** * Returns the activity that has the mirror activity. * * @param mirrorActivityId the primary key of the mirror activity * @return Returns the mirror activity */ @Override public com.liferay.social.kernel.model.SocialActivity getMirrorActivity( long mirrorActivityId) throws com.liferay.portal.kernel.exception.PortalException { return _socialActivityLocalService.getMirrorActivity(mirrorActivityId); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ @Override public java.lang.String getOSGiServiceIdentifier() { return _socialActivityLocalService.getOSGiServiceIdentifier(); } /** * Returns a range of all the activities done in the organization. This * method only finds activities without mirrors. * ** Useful when paginating results. Returns a maximum of
* * @param organizationId the primary key of the organization * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getOrganizationActivities( long organizationId, int start, int end) { return _socialActivityLocalService.getOrganizationActivities(organizationId, start, end); } /** * Returns the number of activities done in the organization. This method * only counts activities without mirrors. * * @param organizationId the primary key of the organization * @return the number of matching activities */ @Override public int getOrganizationActivitiesCount(long organizationId) { return _socialActivityLocalService.getOrganizationActivitiesCount(organizationId); } /** * Returns a range of all the activities done by users of the organization. * This method only finds activities without mirrors. * * * Useful when paginating results. Returns a maximum of
* * @param organizationId the primary key of the organization * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getOrganizationUsersActivities( long organizationId, int start, int end) { return _socialActivityLocalService.getOrganizationUsersActivities(organizationId, start, end); } /** * Returns the number of activities done by users of the organization. This * method only counts activities without mirrors. * * @param organizationId the primary key of the organization * @return the number of matching activities */ @Override public int getOrganizationUsersActivitiesCount(long organizationId) { return _socialActivityLocalService.getOrganizationUsersActivitiesCount(organizationId); } @Override public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException { return _socialActivityLocalService.getPersistedModel(primaryKeyObj); } /** * Returns a range of all the activities done by users in a relationship * with the user identified by the user ID. * * * Useful when paginating results. Returns a maximum of
end - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus, <>0start
and *end
to {@link QueryUtil#ALL_POS} will return the full result * set. * * * @param userId the primary key of the user * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.ListgetRelationActivities( long userId, int start, int end) { return _socialActivityLocalService.getRelationActivities(userId, start, end); } /** * Returns a range of all the activities done by users in a relationship of * type type
with the user identified byuserId
. * This method only finds activities without mirrors. * ** Useful when paginating results. Returns a maximum of
* * @param userId the primary key of the user * @param type the relationship type * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getRelationActivities( long userId, int type, int start, int end) { return _socialActivityLocalService.getRelationActivities(userId, type, start, end); } /** * Returns the number of activities done by users in a relationship with the * user identified by userId. * * @param userId the primary key of the user * @return the number of matching activities */ @Override public int getRelationActivitiesCount(long userId) { return _socialActivityLocalService.getRelationActivitiesCount(userId); } /** * Returns the number of activities done by users in a relationship of type * type
with the user identified byuserId
. This * method only counts activities without mirrors. * * @param userId the primary key of the user * @param type the relationship type * @return the number of matching activities */ @Override public int getRelationActivitiesCount(long userId, int type) { return _socialActivityLocalService.getRelationActivitiesCount(userId, type); } /** * Returns a range of all the social activities. * ** Useful when paginating results. Returns a maximum of
* * @param start the lower bound of the range of social activities * @param end the upper bound of the range of social activities (not inclusive) * @return the range of social activities */ @Override public java.util.Listend - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent and pagination is required (start
andend
are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If bothorderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *getSocialActivities( int start, int end) { return _socialActivityLocalService.getSocialActivities(start, end); } /** * Returns the number of social activities. * * @return the number of social activities */ @Override public int getSocialActivitiesCount() { return _socialActivityLocalService.getSocialActivitiesCount(); } /** * Returns the social activity with the primary key. * * @param activityId the primary key of the social activity * @return the social activity * @throws PortalException if a social activity with the primary key could not be found */ @Override public com.liferay.social.kernel.model.SocialActivity getSocialActivity( long activityId) throws com.liferay.portal.kernel.exception.PortalException { return _socialActivityLocalService.getSocialActivity(activityId); } /** * Returns a range of all the activities done by the user. * * * Useful when paginating results. Returns a maximum of
* * @param userId the primary key of the user * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getUserActivities( long userId, int start, int end) { return _socialActivityLocalService.getUserActivities(userId, start, end); } /** * Returns the number of activities done by the user. * * @param userId the primary key of the user * @return the number of matching activities */ @Override public int getUserActivitiesCount(long userId) { return _socialActivityLocalService.getUserActivitiesCount(userId); } /** * Returns a range of all the activities done in the user's groups. This * method only finds activities without mirrors. * * * Useful when paginating results. Returns a maximum of
* * @param userId the primary key of the user * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getUserGroupsActivities( long userId, int start, int end) { return _socialActivityLocalService.getUserGroupsActivities(userId, start, end); } /** * Returns the number of activities done in user's groups. This method only * counts activities without mirrors. * * @param userId the primary key of the user * @return the number of matching activities */ @Override public int getUserGroupsActivitiesCount(long userId) { return _socialActivityLocalService.getUserGroupsActivitiesCount(userId); } /** * Returns a range of all the activities done in the user's groups and * organizations. This method only finds activities without mirrors. * * * Useful when paginating results. Returns a maximum of
* * @param userId the primary key of the user * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getUserGroupsAndOrganizationsActivities( long userId, int start, int end) { return _socialActivityLocalService.getUserGroupsAndOrganizationsActivities(userId, start, end); } /** * Returns the number of activities done in user's groups and organizations. * This method only counts activities without mirrors. * * @param userId the primary key of the user * @return the number of matching activities */ @Override public int getUserGroupsAndOrganizationsActivitiesCount(long userId) { return _socialActivityLocalService.getUserGroupsAndOrganizationsActivitiesCount(userId); } /** * Returns a range of all activities done in the user's organizations. This * method only finds activities without mirrors. * * * Useful when paginating results. Returns a maximum of
* * @param userId the primary key of the user * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching activities */ @Override public java.util.Listend - * start
instances.start
andend
are not * primary keys, they are indexes in the result set. Thus,0
* refers to the first result in the set. Setting bothstart
* andend
to {@link QueryUtil#ALL_POS} will return the full * result set. *getUserOrganizationsActivities( long userId, int start, int end) { return _socialActivityLocalService.getUserOrganizationsActivities(userId, start, end); } /** * Returns the number of activities done in the user's organizations. This * method only counts activities without mirrors. * * @param userId the primary key of the user * @return the number of matching activities */ @Override public int getUserOrganizationsActivitiesCount(long userId) { return _socialActivityLocalService.getUserOrganizationsActivitiesCount(userId); } /** * Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param socialActivity the social activity * @return the social activity that was updated */ @Override public com.liferay.social.kernel.model.SocialActivity updateSocialActivity( com.liferay.social.kernel.model.SocialActivity socialActivity) { return _socialActivityLocalService.updateSocialActivity(socialActivity); } @Override public SocialActivityLocalService getWrappedService() { return _socialActivityLocalService; } @Override public void setWrappedService( SocialActivityLocalService socialActivityLocalService) { _socialActivityLocalService = socialActivityLocalService; } private SocialActivityLocalService _socialActivityLocalService; }