Class SocialActivityAchievementLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<SocialActivityAchievement>,PersistedModelLocalService,ServiceWrapper<SocialActivityAchievementLocalService>,SocialActivityAchievementLocalService
SocialActivityAchievementLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionSocialActivityAchievementLocalServiceWrapper(SocialActivityAchievementLocalService socialActivityAchievementLocalService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivityAchievement(long userId, long groupId, SocialAchievement achievement) addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Adds the social activity achievement to the database.createPersistedModel(Serializable primaryKeyObj) createSocialActivityAchievement(long activityAchievementId) Creates a new social activity achievement with the primary key.deletePersistedModel(PersistedModel persistedModel) deleteSocialActivityAchievement(long activityAchievementId) Deletes the social activity achievement with the primary key from the database.deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Deletes the social activity achievement from the database.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchSocialActivityAchievement(long activityAchievementId) fetchUserAchievement(long userId, long groupId, String name) getGroupAchievements(long groupId) getGroupAchievements(long groupId, String name) intgetGroupAchievementsCount(long groupId) intgetGroupAchievementsCount(long groupId, String name) getGroupFirstAchievements(long groupId) intgetGroupFirstAchievementsCount(long groupId) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getSocialActivityAchievement(long activityAchievementId) Returns the social activity achievement with the primary key.getSocialActivityAchievements(int start, int end) Returns a range of all the social activity achievements.intReturns the number of social activity achievements.getUserAchievements(long userId, long groupId) intgetUserAchievementsCount(long userId, long groupId) voidsetWrappedService(SocialActivityAchievementLocalService socialActivityAchievementLocalService) updateSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Updates the social activity achievement in the database or adds it if it does not yet exist.<R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivityAchievement>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
SocialActivityAchievementLocalServiceWrapper
public SocialActivityAchievementLocalServiceWrapper() -
SocialActivityAchievementLocalServiceWrapper
public SocialActivityAchievementLocalServiceWrapper(SocialActivityAchievementLocalService socialActivityAchievementLocalService)
-
-
Method Details
-
addActivityAchievement
public void addActivityAchievement(long userId, long groupId, SocialAchievement achievement) throws PortalException - Specified by:
addActivityAchievementin interfaceSocialActivityAchievementLocalService- Throws:
PortalException
-
addSocialActivityAchievement
public SocialActivityAchievement addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Adds the social activity achievement to the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addSocialActivityAchievementin interfaceSocialActivityAchievementLocalService- Parameters:
socialActivityAchievement- the social activity achievement- Returns:
- the social activity achievement that was added
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceSocialActivityAchievementLocalService- Throws:
PortalExceptionPortalException
-
createSocialActivityAchievement
Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.- Specified by:
createSocialActivityAchievementin interfaceSocialActivityAchievementLocalService- Parameters:
activityAchievementId- the primary key for the new social activity achievement- Returns:
- the new social activity achievement
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceSocialActivityAchievementLocalService- Throws:
PortalExceptionPortalException
-
deleteSocialActivityAchievement
public SocialActivityAchievement deleteSocialActivityAchievement(long activityAchievementId) throws PortalException Deletes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteSocialActivityAchievementin interfaceSocialActivityAchievementLocalService- Parameters:
activityAchievementId- the primary key of the social activity achievement- Returns:
- the social activity achievement that was removed
- Throws:
PortalException- if a social activity achievement with the primary key could not be foundPortalException
-
deleteSocialActivityAchievement
public SocialActivityAchievement deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Deletes the social activity achievement from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteSocialActivityAchievementin interfaceSocialActivityAchievementLocalService- Parameters:
socialActivityAchievement- the social activity achievement- Returns:
- the social activity achievement that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceSocialActivityAchievementLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceSocialActivityAchievementLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceSocialActivityAchievementLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceSocialActivityAchievementLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl.- Specified by:
dynamicQueryin interfaceSocialActivityAchievementLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl.- Specified by:
dynamicQueryin interfaceSocialActivityAchievementLocalService- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceSocialActivityAchievementLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceSocialActivityAchievementLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchSocialActivityAchievement
- Specified by:
fetchSocialActivityAchievementin interfaceSocialActivityAchievementLocalService
-
fetchUserAchievement
- Specified by:
fetchUserAchievementin interfaceSocialActivityAchievementLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceSocialActivityAchievementLocalService
-
getGroupAchievements
- Specified by:
getGroupAchievementsin interfaceSocialActivityAchievementLocalService
-
getGroupAchievements
- Specified by:
getGroupAchievementsin interfaceSocialActivityAchievementLocalService
-
getGroupAchievementsCount
public int getGroupAchievementsCount(long groupId) - Specified by:
getGroupAchievementsCountin interfaceSocialActivityAchievementLocalService
-
getGroupAchievementsCount
- Specified by:
getGroupAchievementsCountin interfaceSocialActivityAchievementLocalService
-
getGroupFirstAchievements
- Specified by:
getGroupFirstAchievementsin interfaceSocialActivityAchievementLocalService
-
getGroupFirstAchievementsCount
public int getGroupFirstAchievementsCount(long groupId) - Specified by:
getGroupFirstAchievementsCountin interfaceSocialActivityAchievementLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceSocialActivityAchievementLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceSocialActivityAchievementLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceSocialActivityAchievementLocalService- Throws:
PortalExceptionPortalException
-
getSocialActivityAchievement
public SocialActivityAchievement getSocialActivityAchievement(long activityAchievementId) throws PortalException Returns the social activity achievement with the primary key.- Specified by:
getSocialActivityAchievementin interfaceSocialActivityAchievementLocalService- Parameters:
activityAchievementId- the primary key of the social activity achievement- Returns:
- the social activity achievement
- Throws:
PortalException- if a social activity achievement with the primary key could not be foundPortalException
-
getSocialActivityAchievements
Returns a range of all the social activity achievements.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivityAchievementModelImpl.- Specified by:
getSocialActivityAchievementsin interfaceSocialActivityAchievementLocalService- Parameters:
start- the lower bound of the range of social activity achievementsend- the upper bound of the range of social activity achievements (not inclusive)- Returns:
- the range of social activity achievements
-
getSocialActivityAchievementsCount
public int getSocialActivityAchievementsCount()Returns the number of social activity achievements.- Specified by:
getSocialActivityAchievementsCountin interfaceSocialActivityAchievementLocalService- Returns:
- the number of social activity achievements
-
getUserAchievements
- Specified by:
getUserAchievementsin interfaceSocialActivityAchievementLocalService
-
getUserAchievementsCount
public int getUserAchievementsCount(long userId, long groupId) - Specified by:
getUserAchievementsCountin interfaceSocialActivityAchievementLocalService
-
updateSocialActivityAchievement
public SocialActivityAchievement updateSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement) Updates the social activity achievement in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect SocialActivityAchievementLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateSocialActivityAchievementin interfaceSocialActivityAchievementLocalService- Parameters:
socialActivityAchievement- the social activity achievement- Returns:
- the social activity achievement that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<SocialActivityAchievement>- Specified by:
getCTPersistencein interfaceSocialActivityAchievementLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<SocialActivityAchievement>- Specified by:
getModelClassin interfaceSocialActivityAchievementLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivityAchievement>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<SocialActivityAchievement>- Specified by:
updateWithUnsafeFunctionin interfaceSocialActivityAchievementLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<SocialActivityAchievementLocalService>
-
setWrappedService
public void setWrappedService(SocialActivityAchievementLocalService socialActivityAchievementLocalService) - Specified by:
setWrappedServicein interfaceServiceWrapper<SocialActivityAchievementLocalService>
-