public class SocialActivityAchievementLocalServiceUtil
extends Object
com.liferay.portlet.social.service.impl.SocialActivityAchievementLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. 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.SocialActivityAchievementLocalService
Constructor and Description |
---|
SocialActivityAchievementLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addActivityAchievement(long userId,
long groupId,
SocialAchievement achievement)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static SocialActivityAchievement |
addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
Adds the social activity achievement to the database.
|
static SocialActivityAchievement |
createSocialActivityAchievement(long activityAchievementId)
Creates a new social activity achievement with the primary key.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static SocialActivityAchievement |
deleteSocialActivityAchievement(long activityAchievementId)
Deletes the social activity achievement with the primary key from the database.
|
static SocialActivityAchievement |
deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
Deletes the social activity achievement from the database.
|
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> 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 matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static SocialActivityAchievement |
fetchSocialActivityAchievement(long activityAchievementId) |
static SocialActivityAchievement |
fetchUserAchievement(long userId,
long groupId,
String name) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static List<SocialActivityAchievement> |
getGroupAchievements(long groupId) |
static List<SocialActivityAchievement> |
getGroupAchievements(long groupId,
String name) |
static int |
getGroupAchievementsCount(long groupId) |
static int |
getGroupAchievementsCount(long groupId,
String name) |
static List<SocialActivityAchievement> |
getGroupFirstAchievements(long groupId) |
static int |
getGroupFirstAchievementsCount(long groupId) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static SocialActivityAchievementLocalService |
getService() |
static SocialActivityAchievement |
getSocialActivityAchievement(long activityAchievementId)
Returns the social activity achievement with the primary key.
|
static List<SocialActivityAchievement> |
getSocialActivityAchievements(int start,
int end)
Returns a range of all the social activity achievements.
|
static int |
getSocialActivityAchievementsCount()
Returns the number of social activity achievements.
|
static List<SocialActivityAchievement> |
getUserAchievements(long userId,
long groupId) |
static int |
getUserAchievementsCount(long userId,
long groupId) |
static SocialActivityAchievement |
updateSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
Updates the social activity achievement in the database or adds it if it does not yet exist.
|
public SocialActivityAchievementLocalServiceUtil()
public static void addActivityAchievement(long userId, long groupId, SocialAchievement achievement) throws PortalException
SocialActivityAchievementLocalServiceUtil
to access the social activity achievement local service. Add custom service methods to com.liferay.portlet.social.service.impl.SocialActivityAchievementLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
public static SocialActivityAchievement addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
socialActivityAchievement
- the social activity achievementpublic static SocialActivityAchievement createSocialActivityAchievement(long activityAchievementId)
activityAchievementId
- the primary key for the new social activity achievementpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static SocialActivityAchievement deleteSocialActivityAchievement(long activityAchievementId) throws PortalException
activityAchievementId
- the primary key of the social activity achievementPortalException
- if a social activity achievement with the primary key could not be foundpublic static SocialActivityAchievement deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
socialActivityAchievement
- the social activity achievementpublic static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl
.
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
)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static SocialActivityAchievement fetchSocialActivityAchievement(long activityAchievementId)
public static SocialActivityAchievement fetchUserAchievement(long userId, long groupId, String name)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static List<SocialActivityAchievement> getGroupAchievements(long groupId)
public static List<SocialActivityAchievement> getGroupAchievements(long groupId, String name)
public static int getGroupAchievementsCount(long groupId)
public static int getGroupAchievementsCount(long groupId, String name)
public static List<SocialActivityAchievement> getGroupFirstAchievements(long groupId)
public static int getGroupFirstAchievementsCount(long groupId)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static SocialActivityAchievement getSocialActivityAchievement(long activityAchievementId) throws PortalException
activityAchievementId
- the primary key of the social activity achievementPortalException
- if a social activity achievement with the primary key could not be foundpublic static List<SocialActivityAchievement> getSocialActivityAchievements(int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl
.
start
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)public static int getSocialActivityAchievementsCount()
public static List<SocialActivityAchievement> getUserAchievements(long userId, long groupId)
public static int getUserAchievementsCount(long userId, long groupId)
public static SocialActivityAchievement updateSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
socialActivityAchievement
- the social activity achievementpublic static SocialActivityAchievementLocalService getService()