@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface SocialActivitySetLocalService extends BaseLocalService, PersistedModelLocalService
SocialActivitySetLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
SocialActivitySet |
addActivitySet(long activityId)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
SocialActivitySet |
addSocialActivitySet(SocialActivitySet socialActivitySet)
Adds the social activity set to the database.
|
SocialActivitySet |
createSocialActivitySet(long activitySetId)
Creates a new social activity set with the primary key.
|
void |
decrementActivityCount(long activitySetId) |
void |
decrementActivityCount(long classNameId,
long classPK) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
SocialActivitySet |
deleteSocialActivitySet(long activitySetId)
Deletes the social activity set with the primary key from the database.
|
SocialActivitySet |
deleteSocialActivitySet(SocialActivitySet socialActivitySet)
Deletes the social activity set 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.
|
SocialActivitySet |
fetchSocialActivitySet(long activitySetId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
SocialActivitySet |
getClassActivitySet(long classNameId,
long classPK,
int type) |
SocialActivitySet |
getClassActivitySet(long userId,
long classNameId,
long classPK,
int type) |
List<SocialActivitySet> |
getGroupActivitySets(long groupId,
int start,
int end) |
int |
getGroupActivitySetsCount(long groupId) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
List<SocialActivitySet> |
getOrganizationActivitySets(long organizationId,
int start,
int end) |
int |
getOrganizationActivitySetsCount(long organizationId) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
List<SocialActivitySet> |
getRelationActivitySets(long userId,
int start,
int end) |
List<SocialActivitySet> |
getRelationActivitySets(long userId,
int type,
int start,
int end) |
int |
getRelationActivitySetsCount(long userId) |
int |
getRelationActivitySetsCount(long userId,
int type) |
SocialActivitySet |
getSocialActivitySet(long activitySetId)
Returns the social activity set with the primary key.
|
List<SocialActivitySet> |
getSocialActivitySets(int start,
int end)
Returns a range of all the social activity sets.
|
int |
getSocialActivitySetsCount()
Returns the number of social activity sets.
|
SocialActivitySet |
getUserActivitySet(long groupId,
long userId,
int type) |
SocialActivitySet |
getUserActivitySet(long groupId,
long userId,
long classNameId,
int type) |
List<SocialActivitySet> |
getUserActivitySets(long userId,
int start,
int end) |
int |
getUserActivitySetsCount(long userId) |
List<SocialActivitySet> |
getUserGroupsActivitySets(long userId,
int start,
int end) |
int |
getUserGroupsActivitySetsCount(long userId) |
List<SocialActivitySet> |
getUserViewableActivitySets(long userId,
int start,
int end) |
int |
getUserViewableActivitySetsCount(long userId) |
void |
incrementActivityCount(long activitySetId,
long activityId) |
SocialActivitySet |
updateSocialActivitySet(SocialActivitySet socialActivitySet)
Updates the social activity set in the database or adds it if it does not yet exist.
|
SocialActivitySet addActivitySet(long activityId) throws PortalException
SocialActivitySetLocalServiceUtil
to access the social activity set local service. Add custom service methods to com.liferay.portlet.social.service.impl.SocialActivitySetLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
@Indexable(type=REINDEX) SocialActivitySet addSocialActivitySet(SocialActivitySet socialActivitySet)
socialActivitySet
- the social activity set@Transactional(enabled=false) SocialActivitySet createSocialActivitySet(long activitySetId)
activitySetId
- the primary key for the new social activity setvoid decrementActivityCount(long activitySetId) throws PortalException
PortalException
void decrementActivityCount(long classNameId, long classPK) throws PortalException
PortalException
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
@Indexable(type=DELETE) SocialActivitySet deleteSocialActivitySet(long activitySetId) throws PortalException
activitySetId
- the primary key of the social activity setPortalException
- if a social activity set with the primary key could not be found@Indexable(type=DELETE) SocialActivitySet deleteSocialActivitySet(SocialActivitySet socialActivitySet)
socialActivitySet
- the social activity set@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl
. 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.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl
. 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.
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
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet fetchSocialActivitySet(long activitySetId)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getClassActivitySet(long classNameId, long classPK, int type)
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getClassActivitySet(long userId, long classNameId, long classPK, int type)
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getGroupActivitySets(long groupId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupActivitySetsCount(long groupId)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getOrganizationActivitySets(long organizationId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getOrganizationActivitySetsCount(long organizationId)
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getRelationActivitySets(long userId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getRelationActivitySets(long userId, int type, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getRelationActivitySetsCount(long userId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getRelationActivitySetsCount(long userId, int type)
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getSocialActivitySet(long activitySetId) throws PortalException
activitySetId
- the primary key of the social activity setPortalException
- if a social activity set with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getSocialActivitySets(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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl
. 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.
start
- the lower bound of the range of social activity setsend
- the upper bound of the range of social activity sets (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) int getSocialActivitySetsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getUserActivitySet(long groupId, long userId, int type)
@Transactional(propagation=SUPPORTS, readOnly=true) SocialActivitySet getUserActivitySet(long groupId, long userId, long classNameId, int type)
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getUserActivitySets(long userId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserActivitySetsCount(long userId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getUserGroupsActivitySets(long userId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserGroupsActivitySetsCount(long userId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<SocialActivitySet> getUserViewableActivitySets(long userId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserViewableActivitySetsCount(long userId)
void incrementActivityCount(long activitySetId, long activityId) throws PortalException
PortalException
@Indexable(type=REINDEX) SocialActivitySet updateSocialActivitySet(SocialActivitySet socialActivitySet)
socialActivitySet
- the social activity set