|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.social.service.SocialActivityLocalServiceUtil
public class SocialActivityLocalServiceUtil
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.
SocialActivityLocalService
,
SocialActivityLocalServiceBaseImpl
,
SocialActivityLocalServiceImpl
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 |
---|
public SocialActivityLocalServiceUtil()
Method Detail |
---|
public static SocialActivity addSocialActivity(SocialActivity socialActivity) throws SystemException
socialActivity
- the social activity to add
SystemException
- if a system exception occurredpublic static SocialActivity createSocialActivity(long activityId)
activityId
- the primary key for the new social activity
public static void deleteSocialActivity(long activityId) throws PortalException, SystemException
activityId
- the primary key of the social activity to delete
PortalException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteSocialActivity(SocialActivity socialActivity) throws SystemException
socialActivity
- the social activity to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static SocialActivity getSocialActivity(long activityId) throws PortalException, SystemException
activityId
- the primary key of the social activity to get
PortalException
- if a social activity with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivity> getSocialActivities(int start, int end) throws SystemException
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.
start
- the lower bound of the range of social activities to returnend
- the upper bound of the range of social activities to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getSocialActivitiesCount() throws SystemException
SystemException
- if a system exception occurredpublic static SocialActivity updateSocialActivity(SocialActivity socialActivity) throws SystemException
socialActivity
- the social activity to update
SystemException
- if a system exception occurredpublic static SocialActivity updateSocialActivity(SocialActivity socialActivity, boolean merge) throws SystemException
socialActivity
- the social activity to updatemerge
- 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.
SystemException
- if a system exception occurredpublic static SocialActivity addActivity(long userId, long groupId, Date createDate, String className, long classPK, int type, String extraData, long receiverUserId) throws PortalException, SystemException
PortalException
SystemException
public static SocialActivity addActivity(long userId, long groupId, String className, long classPK, int type, String extraData, long receiverUserId) throws PortalException, SystemException
PortalException
SystemException
public static SocialActivity addUniqueActivity(long userId, long groupId, Date createDate, String className, long classPK, int type, String extraData, long receiverUserId) throws PortalException, SystemException
PortalException
SystemException
public static SocialActivity addUniqueActivity(long userId, long groupId, String className, long classPK, int type, String extraData, long receiverUserId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteActivities(long classNameId, long classPK) throws SystemException
SystemException
public static void deleteActivities(String className, long classPK) throws SystemException
SystemException
public static void deleteActivity(long activityId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteActivity(SocialActivity activity) throws SystemException
SystemException
public static void deleteUserActivities(long userId) throws SystemException
SystemException
public static List<SocialActivity> getActivities(long classNameId, int start, int end) throws SystemException
SystemException
public static List<SocialActivity> getActivities(long mirrorActivityId, long classNameId, long classPK, int start, int end) throws SystemException
SystemException
public static List<SocialActivity> getActivities(long mirrorActivityId, String className, long classPK, int start, int end) throws SystemException
SystemException
public static List<SocialActivity> getActivities(String className, int start, int end) throws SystemException
SystemException
public static int getActivitiesCount(long classNameId) throws SystemException
SystemException
public static int getActivitiesCount(long mirrorActivityId, long classNameId, long classPK) throws SystemException
SystemException
public static int getActivitiesCount(long mirrorActivityId, String className, long classPK) throws SystemException
SystemException
public static int getActivitiesCount(String className) throws SystemException
SystemException
public static SocialActivity getActivity(long activityId) throws PortalException, SystemException
PortalException
SystemException
public static List<SocialActivity> getGroupActivities(long groupId, int start, int end) throws SystemException
SystemException
public static int getGroupActivitiesCount(long groupId) throws SystemException
SystemException
public static List<SocialActivity> getGroupUsersActivities(long groupId, int start, int end) throws SystemException
SystemException
public static int getGroupUsersActivitiesCount(long groupId) throws SystemException
SystemException
public static SocialActivity getMirrorActivity(long mirrorActivityId) throws PortalException, SystemException
PortalException
SystemException
public static List<SocialActivity> getOrganizationActivities(long organizationId, int start, int end) throws SystemException
SystemException
public static int getOrganizationActivitiesCount(long organizationId) throws SystemException
SystemException
public static List<SocialActivity> getOrganizationUsersActivities(long organizationId, int start, int end) throws SystemException
SystemException
public static int getOrganizationUsersActivitiesCount(long organizationId) throws SystemException
SystemException
public static List<SocialActivity> getRelationActivities(long userId, int start, int end) throws SystemException
SystemException
public static List<SocialActivity> getRelationActivities(long userId, int type, int start, int end) throws SystemException
SystemException
public static int getRelationActivitiesCount(long userId) throws SystemException
SystemException
public static int getRelationActivitiesCount(long userId, int type) throws SystemException
SystemException
public static List<SocialActivity> getUserActivities(long userId, int start, int end) throws SystemException
SystemException
public static int getUserActivitiesCount(long userId) throws SystemException
SystemException
public static List<SocialActivity> getUserGroupsActivities(long userId, int start, int end) throws SystemException
SystemException
public static int getUserGroupsActivitiesCount(long userId) throws SystemException
SystemException
public static List<SocialActivity> getUserGroupsAndOrganizationsActivities(long userId, int start, int end) throws SystemException
SystemException
public static int getUserGroupsAndOrganizationsActivitiesCount(long userId) throws SystemException
SystemException
public static List<SocialActivity> getUserOrganizationsActivities(long userId, int start, int end) throws SystemException
SystemException
public static int getUserOrganizationsActivitiesCount(long userId) throws SystemException
SystemException
public static SocialActivityLocalService getService()
public void setService(SocialActivityLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |