Interface SocialActivitySetLocalService
- All Superinterfaces:
BaseLocalService
,CTService<SocialActivitySet>
,PersistedModelLocalService
- All Known Implementing Classes:
SocialActivitySetLocalServiceWrapper
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddActivitySet
(long activityId) addSocialActivitySet
(SocialActivitySet socialActivitySet) Adds the social activity set to the database.createPersistedModel
(Serializable primaryKeyObj) createSocialActivitySet
(long activitySetId) Creates a new social activity set with the primary key.void
decrementActivityCount
(long activitySetId) void
decrementActivityCount
(long classNameId, long classPK) deletePersistedModel
(PersistedModel persistedModel) deleteSocialActivitySet
(long activitySetId) Deletes the social activity set with the primary key from the database.deleteSocialActivitySet
(SocialActivitySet socialActivitySet) Deletes the social activity set from the database.<T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.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.fetchSocialActivitySet
(long activitySetId) getClassActivitySet
(long classNameId, long classPK, int type) getClassActivitySet
(long userId, long classNameId, long classPK, int type) getGroupActivitySets
(long groupId, int start, int end) int
getGroupActivitySetsCount
(long groupId) getOrganizationActivitySets
(long organizationId, int start, int end) int
getOrganizationActivitySetsCount
(long organizationId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getRelationActivitySets
(long userId, int start, int end) getRelationActivitySets
(long userId, int type, int start, int end) int
getRelationActivitySetsCount
(long userId) int
getRelationActivitySetsCount
(long userId, int type) getSocialActivitySet
(long activitySetId) Returns the social activity set with the primary key.getSocialActivitySets
(int start, int end) Returns a range of all the social activity sets.int
Returns the number of social activity sets.getUserActivitySet
(long groupId, long userId, int type) getUserActivitySet
(long groupId, long userId, long classNameId, int type) getUserActivitySets
(long userId, int start, int end) int
getUserActivitySetsCount
(long userId) getUserGroupsActivitySets
(long userId, int start, int end) int
getUserGroupsActivitySetsCount
(long userId) getUserViewableActivitySets
(long userId, int start, int end) int
getUserViewableActivitySetsCount
(long userId) void
incrementActivityCount
(long activitySetId, long activityId) updateSocialActivitySet
(SocialActivitySet socialActivitySet) Updates the social activity set in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivitySet>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addActivitySet
- Throws:
PortalException
-
addSocialActivitySet
@Indexable(type=REINDEX) SocialActivitySet addSocialActivitySet(SocialActivitySet socialActivitySet) Adds the social activity set to the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySetLocalServiceImpl 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.
- Parameters:
socialActivitySet
- the social activity set- Returns:
- the social activity set that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
createSocialActivitySet
Creates a new social activity set with the primary key. Does not add the social activity set to the database.- Parameters:
activitySetId
- the primary key for the new social activity set- Returns:
- the new social activity set
-
decrementActivityCount
- Throws:
PortalException
-
decrementActivityCount
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
deleteSocialActivitySet
@Indexable(type=DELETE) SocialActivitySet deleteSocialActivitySet(long activitySetId) throws PortalException Deletes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySetLocalServiceImpl 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.
- Parameters:
activitySetId
- the primary key of the social activity set- Returns:
- the social activity set that was removed
- Throws:
PortalException
- if a social activity set with the primary key could not be found
-
deleteSocialActivitySet
@Indexable(type=DELETE) SocialActivitySet deleteSocialActivitySet(SocialActivitySet socialActivitySet) Deletes the social activity set from the database. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySetLocalServiceImpl 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.
- Parameters:
socialActivitySet
- the social activity set- Returns:
- the social activity set that was removed
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivitySetModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivitySetModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchSocialActivitySet
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet fetchSocialActivitySet(long activitySetId) -
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery() -
getClassActivitySet
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getClassActivitySet(long classNameId, long classPK, int type) -
getClassActivitySet
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getClassActivitySet(long userId, long classNameId, long classPK, int type) -
getGroupActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getGroupActivitySets(long groupId, int start, int end) -
getGroupActivitySetsCount
-
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOrganizationActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getOrganizationActivitySets(long organizationId, int start, int end) -
getOrganizationActivitySetsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getOrganizationActivitySetsCount(long organizationId) -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException - Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
getRelationActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getRelationActivitySets(long userId, int start, int end) -
getRelationActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getRelationActivitySets(long userId, int type, int start, int end) -
getRelationActivitySetsCount
-
getRelationActivitySetsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getRelationActivitySetsCount(long userId, int type) -
getSocialActivitySet
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getSocialActivitySet(long activitySetId) throws PortalException Returns the social activity set with the primary key.- Parameters:
activitySetId
- the primary key of the social activity set- Returns:
- the social activity set
- Throws:
PortalException
- if a social activity set with the primary key could not be found
-
getSocialActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getSocialActivitySets(int start, int end) Returns a range of all the social activity sets.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.social.model.impl.SocialActivitySetModelImpl
.- Parameters:
start
- the lower bound of the range of social activity setsend
- the upper bound of the range of social activity sets (not inclusive)- Returns:
- the range of social activity sets
-
getSocialActivitySetsCount
Returns the number of social activity sets.- Returns:
- the number of social activity sets
-
getUserActivitySet
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getUserActivitySet(long groupId, long userId, int type) -
getUserActivitySet
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getUserActivitySet(long groupId, long userId, long classNameId, int type) -
getUserActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getUserActivitySets(long userId, int start, int end) -
getUserActivitySetsCount
-
getUserGroupsActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getUserGroupsActivitySets(long userId, int start, int end) -
getUserGroupsActivitySetsCount
-
getUserViewableActivitySets
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getUserViewableActivitySets(long userId, int start, int end) -
getUserViewableActivitySetsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserViewableActivitySetsCount(long userId) -
incrementActivityCount
- Throws:
PortalException
-
updateSocialActivitySet
@Indexable(type=REINDEX) SocialActivitySet updateSocialActivitySet(SocialActivitySet socialActivitySet) Updates the social activity set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect SocialActivitySetLocalServiceImpl 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.
- Parameters:
socialActivitySet
- the social activity set- Returns:
- the social activity set that was updated
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<SocialActivitySet>
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<SocialActivitySet>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<SocialActivitySet>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<SocialActivitySet>
- Throws:
E extends Throwable
-