com.liferay.portal.service
Interface SubscriptionLocalService
- All Known Implementing Classes:
- SubscriptionLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface SubscriptionLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.SubscriptionLocalServiceImpl
}.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
- Author:
- Brian Wing Shun Chan
- See Also:
SubscriptionLocalServiceUtil
- Generated:
Method Summary |
Subscription |
addSubscription(long userId,
java.lang.String className,
long classPK)
|
Subscription |
addSubscription(long userId,
java.lang.String className,
long classPK,
java.lang.String frequency)
|
Subscription |
addSubscription(Subscription subscription)
|
Subscription |
createSubscription(long subscriptionId)
|
void |
deleteSubscription(long subscriptionId)
|
void |
deleteSubscription(long userId,
java.lang.String className,
long classPK)
|
void |
deleteSubscription(Subscription subscription)
|
void |
deleteSubscriptions(long userId)
|
void |
deleteSubscriptions(long companyId,
java.lang.String className,
long classPK)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
Subscription |
getSubscription(long subscriptionId)
|
Subscription |
getSubscription(long companyId,
long userId,
java.lang.String className,
long classPK)
|
java.util.List<Subscription> |
getSubscriptions(int start,
int end)
|
java.util.List<Subscription> |
getSubscriptions(long companyId,
java.lang.String className,
long classPK)
|
int |
getSubscriptionsCount()
|
java.util.List<Subscription> |
getUserSubscriptions(long userId,
java.lang.String className)
|
boolean |
isSubscribed(long companyId,
long userId,
java.lang.String className,
long classPK)
|
Subscription |
updateSubscription(Subscription subscription)
|
Subscription |
updateSubscription(Subscription subscription,
boolean merge)
|
addSubscription
Subscription addSubscription(Subscription subscription)
throws SystemException
- Throws:
SystemException
createSubscription
Subscription createSubscription(long subscriptionId)
deleteSubscription
void deleteSubscription(long subscriptionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteSubscription
void deleteSubscription(Subscription subscription)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getSubscription
@Transactional(propagation=SUPPORTS,
readOnly=true)
Subscription getSubscription(long subscriptionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSubscriptions
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Subscription> getSubscriptions(int start,
int end)
throws SystemException
- Throws:
SystemException
getSubscriptionsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getSubscriptionsCount()
throws SystemException
- Throws:
SystemException
updateSubscription
Subscription updateSubscription(Subscription subscription)
throws SystemException
- Throws:
SystemException
updateSubscription
Subscription updateSubscription(Subscription subscription,
boolean merge)
throws SystemException
- Throws:
SystemException
addSubscription
Subscription addSubscription(long userId,
java.lang.String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addSubscription
Subscription addSubscription(long userId,
java.lang.String className,
long classPK,
java.lang.String frequency)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteSubscription
void deleteSubscription(long userId,
java.lang.String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteSubscriptions
void deleteSubscriptions(long userId)
throws SystemException
- Throws:
SystemException
deleteSubscriptions
void deleteSubscriptions(long companyId,
java.lang.String className,
long classPK)
throws SystemException
- Throws:
SystemException
getSubscription
@Transactional(propagation=SUPPORTS,
readOnly=true)
Subscription getSubscription(long companyId,
long userId,
java.lang.String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSubscriptions
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Subscription> getSubscriptions(long companyId,
java.lang.String className,
long classPK)
throws SystemException
- Throws:
SystemException
getUserSubscriptions
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Subscription> getUserSubscriptions(long userId,
java.lang.String className)
throws SystemException
- Throws:
SystemException
isSubscribed
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean isSubscribed(long companyId,
long userId,
java.lang.String className,
long classPK)
throws SystemException
- Throws:
SystemException