|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.social.service.SocialActivityLocalServiceUtil
public class SocialActivityLocalServiceUtil
The utility for the social activity local service. This utility wraps com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.
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,
com.liferay.portlet.social.service.base.SocialActivityLocalServiceBaseImpl,
com.liferay.portlet.social.service.impl.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)
Returns 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 String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
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 PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
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)
Returns a range of all the social activities. |
static int |
getSocialActivitiesCount()
Returns the number of social activities. |
static SocialActivity |
getSocialActivity(long activityId)
Returns 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)
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setService(SocialActivityLocalService service)
|
static SocialActivity |
updateSocialActivity(SocialActivity socialActivity)
Updates the social activity in the database or adds it if it does not yet exist. |
static SocialActivity |
updateSocialActivity(SocialActivity socialActivity,
boolean merge)
Updates the social activity in the database or adds it if it does not yet exist. |
| 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
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
PortalException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred
public static void deleteSocialActivity(SocialActivity socialActivity)
throws SystemException
socialActivity - the social activity
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public 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 querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
public 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 querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static SocialActivity getSocialActivity(long activityId)
throws PortalException,
SystemException
activityId - the primary key of the social activity
PortalException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
PortalException
SystemException
public 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 activitiesend - the upper bound of the range of social activities (not inclusive)
SystemException - if a system exception occurred
public static int getSocialActivitiesCount()
throws SystemException
SystemException - if a system exception occurred
public static SocialActivity updateSocialActivity(SocialActivity socialActivity)
throws SystemException
socialActivity - the social activity
SystemException - if a system exception occurred
public static SocialActivity updateSocialActivity(SocialActivity socialActivity,
boolean merge)
throws SystemException
socialActivity - the social activitymerge - 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 String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier - the Spring bean ID for this bean
public 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
SystemExceptionpublic static SocialActivityLocalService getService()
public void setService(SocialActivityLocalService service)
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||