com.liferay.subscription.service.impl.SubscriptionLocalServiceImpl@Deprecated public class SubscriptionLocalServiceWrapper extends Object implements ServiceWrapper<SubscriptionLocalService>, SubscriptionLocalService
SubscriptionLocalService.SubscriptionLocalService| Constructor and Description |
|---|
SubscriptionLocalServiceWrapper()
Deprecated.
|
SubscriptionLocalServiceWrapper(SubscriptionLocalService subscriptionLocalService)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addSubscription(long userId,
long groupId,
String className,
long classPK)
Deprecated.
Subscribes the user to the entity, notifying him the instant the entity
is created, deleted, or modified.
|
Subscription |
addSubscription(long userId,
long groupId,
String className,
long classPK,
String frequency)
Deprecated.
Subscribes the user to the entity, notifying him at the given frequency.
|
Subscription |
addSubscription(Subscription subscription)
Deprecated.
Adds the subscription to the database.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj)
Deprecated.
|
Subscription |
createSubscription(long subscriptionId)
Deprecated.
Creates a new subscription with the primary key.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
Deprecated.
|
Subscription |
deleteSubscription(long subscriptionId)
Deprecated.
Deletes the subscription with the primary key from the database.
|
void |
deleteSubscription(long userId,
String className,
long classPK)
Deprecated.
Deletes the user's subscription to the entity.
|
Subscription |
deleteSubscription(Subscription subscription)
Deprecated.
Deletes the subscription from the database.
|
void |
deleteSubscriptions(long userId)
Deprecated.
Deletes all the subscriptions of the user.
|
void |
deleteSubscriptions(long userId,
long groupId)
Deprecated.
|
void |
deleteSubscriptions(long companyId,
String className,
long classPK)
Deprecated.
Deletes all the subscriptions to the entity.
|
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
Deprecated.
|
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
Deprecated.
|
DynamicQuery |
dynamicQuery()
Deprecated.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
Performs a dynamic query on the database and returns the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
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)
Deprecated.
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Deprecated.
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Deprecated.
Returns the number of rows matching the dynamic query.
|
Subscription |
fetchSubscription(long subscriptionId)
Deprecated.
|
Subscription |
fetchSubscription(long companyId,
long userId,
String className,
long classPK)
Deprecated.
|
ActionableDynamicQuery |
getActionableDynamicQuery()
Deprecated.
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery()
Deprecated.
|
String |
getOSGiServiceIdentifier()
Deprecated.
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
Deprecated.
|
Subscription |
getSubscription(long subscriptionId)
Deprecated.
Returns the subscription with the primary key.
|
Subscription |
getSubscription(long companyId,
long userId,
String className,
long classPK)
Deprecated.
Returns the subscription of the user to the entity.
|
List<Subscription> |
getSubscriptions(int start,
int end)
Deprecated.
Returns a range of all the subscriptions.
|
List<Subscription> |
getSubscriptions(long companyId,
long userId,
String className,
long[] classPKs)
Deprecated.
Returns all the subscriptions of the user to the entities.
|
List<Subscription> |
getSubscriptions(long companyId,
String className,
long classPK)
Deprecated.
Returns all the subscriptions to the entity.
|
int |
getSubscriptionsCount()
Deprecated.
Returns the number of subscriptions.
|
List<Subscription> |
getUserSubscriptions(long userId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions of the user.
|
List<Subscription> |
getUserSubscriptions(long userId,
String className)
Deprecated.
Returns all the subscriptions of the user to the entities with the class
name.
|
int |
getUserSubscriptionsCount(long userId)
Deprecated.
Returns the number of subscriptions of the user.
|
SubscriptionLocalService |
getWrappedService()
Deprecated.
|
boolean |
isSubscribed(long companyId,
long userId,
String className,
long classPK)
Deprecated.
Returns
true if the user is subscribed to the entity. |
boolean |
isSubscribed(long companyId,
long userId,
String className,
long[] classPKs)
Deprecated.
Returns
true if the user is subscribed to any of the
entities. |
void |
setWrappedService(SubscriptionLocalService subscriptionLocalService)
Deprecated.
|
Subscription |
updateSubscription(Subscription subscription)
Deprecated.
Updates the subscription in the database or adds it if it does not yet exist.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBasePersistencepublic SubscriptionLocalServiceWrapper()
public SubscriptionLocalServiceWrapper(SubscriptionLocalService subscriptionLocalService)
public Subscription addSubscription(long userId, long groupId, String className, long classPK) throws PortalException
If there is no asset entry with the class name and class PK a new asset entry is created.
A social activity for the subscription is created using the asset entry associated with the class name and class PK, or the newly created asset entry.
addSubscription in interface SubscriptionLocalServiceuserId - the primary key of the usergroupId - the primary key of the entity's groupclassName - the entity's class nameclassPK - the primary key of the entity's instancePortalExceptionpublic Subscription addSubscription(long userId, long groupId, String className, long classPK, String frequency) throws PortalException
If there is no asset entry with the class name and class PK a new asset entry is created.
A social activity for the subscription is created using the asset entry associated with the class name and class PK, or the newly created asset entry.
addSubscription in interface SubscriptionLocalServiceuserId - the primary key of the usergroupId - the primary key of the entity's groupclassName - the entity's class nameclassPK - the primary key of the entity's instancefrequency - the frequency for notificationsPortalExceptionpublic Subscription addSubscription(Subscription subscription)
Important: Inspect SubscriptionLocalServiceImpl 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.
addSubscription in interface SubscriptionLocalServicesubscription - the subscriptionpublic PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicecreatePersistedModel in interface SubscriptionLocalServicePortalExceptionpublic Subscription createSubscription(long subscriptionId)
createSubscription in interface SubscriptionLocalServicesubscriptionId - the primary key for the new subscriptionpublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicedeletePersistedModel in interface SubscriptionLocalServicePortalExceptionpublic Subscription deleteSubscription(long subscriptionId) throws PortalException
Important: Inspect SubscriptionLocalServiceImpl 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.
deleteSubscription in interface SubscriptionLocalServicesubscriptionId - the primary key of the subscriptionPortalException - if a subscription with the primary key could not be foundpublic void deleteSubscription(long userId,
String className,
long classPK)
throws PortalException
deleteSubscription in interface SubscriptionLocalServiceuserId - the primary key of the userclassName - the entity's class nameclassPK - the primary key of the entity's instancePortalExceptionpublic Subscription deleteSubscription(Subscription subscription) throws PortalException
Important: Inspect SubscriptionLocalServiceImpl 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.
deleteSubscription in interface SubscriptionLocalServicesubscription - the subscriptionPortalExceptionpublic void deleteSubscriptions(long userId)
throws PortalException
deleteSubscriptions in interface SubscriptionLocalServiceuserId - the primary key of the userPortalExceptionpublic void deleteSubscriptions(long userId,
long groupId)
throws PortalException
deleteSubscriptions in interface SubscriptionLocalServicePortalExceptionpublic void deleteSubscriptions(long companyId,
String className,
long classPK)
throws PortalException
deleteSubscriptions in interface SubscriptionLocalServicecompanyId - the primary key of the companyclassName - the entity's class nameclassPK - the primary key of the entity's instancePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface PersistedModelLocalServicedslQuery in interface SubscriptionLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface PersistedModelLocalServicedslQueryCount in interface SubscriptionLocalServicepublic DynamicQuery dynamicQuery()
dynamicQuery in interface SubscriptionLocalServicepublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface SubscriptionLocalServicedynamicQuery - the dynamic querypublic <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.portal.model.impl.SubscriptionModelImpl.
dynamicQuery in interface SubscriptionLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <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.portal.model.impl.SubscriptionModelImpl.
dynamicQuery in interface SubscriptionLocalServicedynamicQuery - 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 long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount in interface SubscriptionLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount in interface SubscriptionLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic Subscription fetchSubscription(long subscriptionId)
fetchSubscription in interface SubscriptionLocalServicepublic Subscription fetchSubscription(long companyId, long userId, String className, long classPK)
fetchSubscription in interface SubscriptionLocalServicepublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface SubscriptionLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface SubscriptionLocalServicepublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface SubscriptionLocalServicepublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface SubscriptionLocalServicePortalExceptionpublic Subscription getSubscription(long subscriptionId) throws PortalException
getSubscription in interface SubscriptionLocalServicesubscriptionId - the primary key of the subscriptionPortalException - if a subscription with the primary key could not be foundpublic Subscription getSubscription(long companyId, long userId, String className, long classPK) throws PortalException
getSubscription in interface SubscriptionLocalServicecompanyId - the primary key of the companyuserId - the primary key of the userclassName - the entity's class nameclassPK - the primary key of the entity's instancePortalExceptionpublic List<Subscription> getSubscriptions(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.portal.model.impl.SubscriptionModelImpl.
getSubscriptions in interface SubscriptionLocalServicestart - the lower bound of the range of subscriptionsend - the upper bound of the range of subscriptions (not inclusive)public List<Subscription> getSubscriptions(long companyId, long userId, String className, long[] classPKs)
getSubscriptions in interface SubscriptionLocalServicecompanyId - the primary key of the companyuserId - the primary key of the userclassName - the entity's class nameclassPKs - the primary key of the entitiespublic List<Subscription> getSubscriptions(long companyId, String className, long classPK)
getSubscriptions in interface SubscriptionLocalServicecompanyId - the primary key of the companyclassName - the entity's class nameclassPK - the primary key of the entity's instancepublic int getSubscriptionsCount()
getSubscriptionsCount in interface SubscriptionLocalServicepublic List<Subscription> getUserSubscriptions(long userId, int start, int end, OrderByComparator<Subscription> orderByComparator)
getUserSubscriptions in interface SubscriptionLocalServiceuserId - the primary key of the userstart - the lower bound of the range of resultsend - the upper bound of the range of results (not inclusive)orderByComparator - the comparator to order the subscriptionspublic List<Subscription> getUserSubscriptions(long userId, String className)
getUserSubscriptions in interface SubscriptionLocalServiceuserId - the primary key of the userclassName - the entity's class namepublic int getUserSubscriptionsCount(long userId)
getUserSubscriptionsCount in interface SubscriptionLocalServiceuserId - the primary key of the userpublic boolean isSubscribed(long companyId,
long userId,
String className,
long classPK)
true if the user is subscribed to the entity.isSubscribed in interface SubscriptionLocalServicecompanyId - the primary key of the companyuserId - the primary key of the userclassName - the entity's class nameclassPK - the primary key of the entity's instancetrue if the user is subscribed to the entity;
false otherwisepublic boolean isSubscribed(long companyId,
long userId,
String className,
long[] classPKs)
true if the user is subscribed to any of the
entities.isSubscribed in interface SubscriptionLocalServicecompanyId - the primary key of the companyuserId - the primary key of the userclassName - the entity's class nameclassPKs - the primary key of the entitiestrue if the user is subscribed to any of the
entities; false otherwisepublic Subscription updateSubscription(Subscription subscription)
Important: Inspect SubscriptionLocalServiceImpl 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.
updateSubscription in interface SubscriptionLocalServicesubscription - the subscriptionpublic SubscriptionLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<SubscriptionLocalService>public void setWrappedService(SubscriptionLocalService subscriptionLocalService)
setWrappedService in interface ServiceWrapper<SubscriptionLocalService>