Example usage for Java com.liferay.portal.kernel.service SubscriptionLocalServiceUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
com.liferay.portal.kernel.model.Subscription | addSubscription(long userId, long groupId, String className, long classPK) Subscribes the user to the entity, notifying him the instant the entity is created, deleted, or modified. |
com.liferay.portal.kernel.model.Subscription | addSubscription(long userId, long groupId, String className, long classPK, String frequency) Subscribes the user to the entity, notifying him at the given frequency. |
void | deleteSubscription(long userId, String className, long classPK) Deletes the user's subscription to the entity. |
java.util.List | getUserSubscriptions(long userId, String className) Returns all the subscriptions of the user to the entities with the class name. |
int | getUserSubscriptionsCount(long userId) Returns the number of subscriptions of the user. |
boolean | isSubscribed(long companyId, long userId, String className, long classPK) Returns true if the user is subscribed to the entity. |
boolean | isSubscribed(long companyId, long userId, String className, long[] classPKs) Returns true if the user is subscribed to any of the entities. |