Liferay 7.0-ce-b4

com.liferay.portlet.social.service
Class SocialActivityAchievementLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.social.service.SocialActivityAchievementLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<SocialActivityAchievementLocalService>, SocialActivityAchievementLocalService

@ProviderType
public class SocialActivityAchievementLocalServiceWrapper
extends Object
implements SocialActivityAchievementLocalService, ServiceWrapper<SocialActivityAchievementLocalService>

Provides a wrapper for SocialActivityAchievementLocalService.

See Also:
SocialActivityAchievementLocalService

Constructor Summary
SocialActivityAchievementLocalServiceWrapper(SocialActivityAchievementLocalService socialActivityAchievementLocalService)
           
 
Method Summary
 void addActivityAchievement(long userId, long groupId, SocialAchievement achievement)
           
 SocialActivityAchievement addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
          Adds the social activity achievement to the database.
 SocialActivityAchievement createSocialActivityAchievement(long activityAchievementId)
          Creates a new social activity achievement with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 SocialActivityAchievement deleteSocialActivityAchievement(long activityAchievementId)
          Deletes the social activity achievement with the primary key from the database.
 SocialActivityAchievement deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
          Deletes the social activity achievement from the database.
 DynamicQuery dynamicQuery()
           
<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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 SocialActivityAchievement fetchSocialActivityAchievement(long activityAchievementId)
           
 SocialActivityAchievement fetchUserAchievement(long userId, long groupId, String name)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<SocialActivityAchievement> getGroupAchievements(long groupId)
           
 List<SocialActivityAchievement> getGroupAchievements(long groupId, String name)
           
 int getGroupAchievementsCount(long groupId)
           
 int getGroupAchievementsCount(long groupId, String name)
           
 List<SocialActivityAchievement> getGroupFirstAchievements(long groupId)
           
 int getGroupFirstAchievementsCount(long groupId)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 SocialActivityAchievement getSocialActivityAchievement(long activityAchievementId)
          Returns the social activity achievement with the primary key.
 List<SocialActivityAchievement> getSocialActivityAchievements(int start, int end)
          Returns a range of all the social activity achievements.
 int getSocialActivityAchievementsCount()
          Returns the number of social activity achievements.
 List<SocialActivityAchievement> getUserAchievements(long userId, long groupId)
           
 int getUserAchievementsCount(long userId, long groupId)
           
 SocialActivityAchievementLocalService getWrappedService()
           
 void setWrappedService(SocialActivityAchievementLocalService socialActivityAchievementLocalService)
           
 SocialActivityAchievement updateSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
          Updates the social activity achievement 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

SocialActivityAchievementLocalServiceWrapper

public SocialActivityAchievementLocalServiceWrapper(SocialActivityAchievementLocalService socialActivityAchievementLocalService)
Method Detail

addActivityAchievement

public void addActivityAchievement(long userId,
                                   long groupId,
                                   SocialAchievement achievement)
                            throws PortalException
Specified by:
addActivityAchievement in interface SocialActivityAchievementLocalService
Throws:
PortalException

addSocialActivityAchievement

public SocialActivityAchievement addSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
Adds the social activity achievement to the database. Also notifies the appropriate model listeners.

Specified by:
addSocialActivityAchievement in interface SocialActivityAchievementLocalService
Parameters:
socialActivityAchievement - the social activity achievement
Returns:
the social activity achievement that was added

createSocialActivityAchievement

public SocialActivityAchievement createSocialActivityAchievement(long activityAchievementId)
Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.

Specified by:
createSocialActivityAchievement in interface SocialActivityAchievementLocalService
Parameters:
activityAchievementId - the primary key for the new social activity achievement
Returns:
the new social activity achievement

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface SocialActivityAchievementLocalService
Throws:
PortalException

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.

Specified by:
deleteSocialActivityAchievement in interface SocialActivityAchievementLocalService
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 found

deleteSocialActivityAchievement

public SocialActivityAchievement deleteSocialActivityAchievement(SocialActivityAchievement socialActivityAchievement)
Deletes the social activity achievement from the database. Also notifies the appropriate model listeners.

Specified by:
deleteSocialActivityAchievement in interface SocialActivityAchievementLocalService
Parameters:
socialActivityAchievement - the social activity achievement
Returns:
the social activity achievement that was removed

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface SocialActivityAchievementLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface SocialActivityAchievementLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator 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.

Specified by:
dynamicQuery in interface SocialActivityAchievementLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - 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 - 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator 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.

Specified by:
dynamicQuery in interface SocialActivityAchievementLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface SocialActivityAchievementLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface SocialActivityAchievementLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchSocialActivityAchievement

public SocialActivityAchievement fetchSocialActivityAchievement(long activityAchievementId)
Specified by:
fetchSocialActivityAchievement in interface SocialActivityAchievementLocalService

fetchUserAchievement

public SocialActivityAchievement fetchUserAchievement(long userId,
                                                      long groupId,
                                                      String name)
Specified by:
fetchUserAchievement in interface SocialActivityAchievementLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface SocialActivityAchievementLocalService

getGroupAchievements

public List<SocialActivityAchievement> getGroupAchievements(long groupId)
Specified by:
getGroupAchievements in interface SocialActivityAchievementLocalService

getGroupAchievements

public List<SocialActivityAchievement> getGroupAchievements(long groupId,
                                                            String name)
Specified by:
getGroupAchievements in interface SocialActivityAchievementLocalService

getGroupAchievementsCount

public int getGroupAchievementsCount(long groupId)
Specified by:
getGroupAchievementsCount in interface SocialActivityAchievementLocalService

getGroupAchievementsCount

public int getGroupAchievementsCount(long groupId,
                                     String name)
Specified by:
getGroupAchievementsCount in interface SocialActivityAchievementLocalService

getGroupFirstAchievements

public List<SocialActivityAchievement> getGroupFirstAchievements(long groupId)
Specified by:
getGroupFirstAchievements in interface SocialActivityAchievementLocalService

getGroupFirstAchievementsCount

public int getGroupFirstAchievementsCount(long groupId)
Specified by:
getGroupFirstAchievementsCount in interface SocialActivityAchievementLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface SocialActivityAchievementLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface SocialActivityAchievementLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface SocialActivityAchievementLocalService
Throws:
PortalException

getSocialActivityAchievement

public SocialActivityAchievement getSocialActivityAchievement(long activityAchievementId)
                                                       throws PortalException
Returns the social activity achievement with the primary key.

Specified by:
getSocialActivityAchievement in interface SocialActivityAchievementLocalService
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 found

getSocialActivityAchievements

public List<SocialActivityAchievement> getSocialActivityAchievements(int start,
                                                                     int end)
Returns a range of all the social activity achievements.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityAchievementModelImpl. If both orderByComparator 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.

Specified by:
getSocialActivityAchievements in interface SocialActivityAchievementLocalService
Parameters:
start - the lower bound of the range of social activity achievements
end - 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:
getSocialActivityAchievementsCount in interface SocialActivityAchievementLocalService
Returns:
the number of social activity achievements

getUserAchievements

public List<SocialActivityAchievement> getUserAchievements(long userId,
                                                           long groupId)
Specified by:
getUserAchievements in interface SocialActivityAchievementLocalService

getUserAchievementsCount

public int getUserAchievementsCount(long userId,
                                    long groupId)
Specified by:
getUserAchievementsCount in interface SocialActivityAchievementLocalService

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.

Specified by:
updateSocialActivityAchievement in interface SocialActivityAchievementLocalService
Parameters:
socialActivityAchievement - the social activity achievement
Returns:
the social activity achievement that was updated

getWrappedService

public SocialActivityAchievementLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<SocialActivityAchievementLocalService>

setWrappedService

public void setWrappedService(SocialActivityAchievementLocalService socialActivityAchievementLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<SocialActivityAchievementLocalService>

Liferay 7.0-ce-b4