com.liferay.portal.service.impl
Class SubscriptionLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portal.service.base.SubscriptionLocalServiceBaseImpl
com.liferay.portal.service.impl.SubscriptionLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, SubscriptionLocalService
public class SubscriptionLocalServiceImpl
- extends SubscriptionLocalServiceBaseImpl
Provides the local service for accessing, adding, and deleting notification
subscriptions to entities. It handles subscriptions to entities found in many
different places in the portal, including message boards, blogs, and
documents and media.
Fields inherited from class com.liferay.portal.service.base.SubscriptionLocalServiceBaseImpl |
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, backgroundTaskLocalService, backgroundTaskPersistence, backgroundTaskService, browserTrackerLocalService, browserTrackerPersistence, classNameLocalService, classNamePersistence, classNameService, clusterGroupLocalService, clusterGroupPersistence, cmisRepositoryLocalService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, countryPersistence, countryService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, layoutBranchLocalService, layoutBranchPersistence, layoutBranchService, layoutFinder, layoutFriendlyURLLocalService, layoutFriendlyURLPersistence, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutRevisionLocalService, layoutRevisionPersistence, layoutRevisionService, layoutService, layoutSetBranchLocalService, layoutSetBranchPersistence, layoutSetBranchService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, lockFinder, lockLocalService, lockPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionService, persistedModelLocalServiceRegistry, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalPreferencesLocalService, portalPreferencesPersistence, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, repositoryEntryLocalService, repositoryEntryPersistence, repositoryLocalService, repositoryPersistence, repositoryService, resourceActionLocalService, resourceActionPersistence, resourceBlockFinder, resourceBlockLocalService, resourceBlockPermissionLocalService, resourceBlockPermissionPersistence, resourceBlockPersistence, resourceBlockService, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, resourceTypePermissionFinder, resourceTypePermissionLocalService, resourceTypePermissionPersistence, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, shardLocalService, shardPersistence, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, stagingLocalService, stagingService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, teamFinder, teamLocalService, teamPersistence, teamService, themeLocalService, themeService, ticketLocalService, ticketPersistence, userFinder, userGroupFinder, userGroupGroupRoleLocalService, userGroupGroupRolePersistence, userGroupGroupRoleService, userGroupLocalService, userGroupPersistence, userGroupRoleFinder, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userNotificationDeliveryLocalService, userNotificationDeliveryPersistence, userNotificationEventLocalService, userNotificationEventPersistence, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, virtualHostLocalService, virtualHostPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
Method Summary |
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. |
Subscription |
addSubscription(long userId,
long groupId,
String className,
long classPK,
String frequency)
Subscribes the user to the entity, notifying him at the given frequency. |
Subscription |
deleteSubscription(long subscriptionId)
Deletes the subscription with the primary key. |
void |
deleteSubscription(long userId,
String className,
long classPK)
Deletes the user's subscription to the entity. |
Subscription |
deleteSubscription(Subscription subscription)
Deletes the subscription. |
void |
deleteSubscriptions(long userId)
Deletes all the subscriptions of the user. |
void |
deleteSubscriptions(long companyId,
String className,
long classPK)
Deletes all the subscriptions to the entity. |
Subscription |
getSubscription(long companyId,
long userId,
String className,
long classPK)
Returns the subscription of the user to the entity. |
List<Subscription> |
getSubscriptions(long companyId,
long userId,
String className,
long[] classPKs)
Returns all the subscriptions of the user to the entities. |
List<Subscription> |
getSubscriptions(long companyId,
String className,
long classPK)
Returns all the subscriptions to the entity. |
List<Subscription> |
getUserSubscriptions(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the subscriptions of the user. |
List<Subscription> |
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. |
Methods inherited from class com.liferay.portal.service.base.SubscriptionLocalServiceBaseImpl |
addSubscription, afterPropertiesSet, createSubscription, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchSubscription, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBackgroundTaskLocalService, getBackgroundTaskPersistence, getBackgroundTaskService, getBeanIdentifier, getBrowserTrackerLocalService, getBrowserTrackerPersistence, getClassNameLocalService, getClassNamePersistence, getClassNameService, getClusterGroupLocalService, getClusterGroupPersistence, getCMISRepositoryLocalService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCountryPersistence, getCountryService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayoutBranchLocalService, getLayoutBranchPersistence, getLayoutBranchService, getLayoutFinder, getLayoutFriendlyURLLocalService, getLayoutFriendlyURLPersistence, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutRevisionLocalService, getLayoutRevisionPersistence, getLayoutRevisionService, getLayoutService, getLayoutSetBranchLocalService, getLayoutSetBranchPersistence, getLayoutSetBranchService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getLockFinder, getLockLocalService, getLockPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionService, getPersistedModel, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalPreferencesLocalService, getPortalPreferencesPersistence, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getRepositoryEntryLocalService, getRepositoryEntryPersistence, getRepositoryLocalService, getRepositoryPersistence, getRepositoryService, getResourceActionLocalService, getResourceActionPersistence, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPermissionLocalService, getResourceBlockPermissionPersistence, getResourceBlockPersistence, getResourceBlockService, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getResourceTypePermissionFinder, getResourceTypePermissionLocalService, getResourceTypePermissionPersistence, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getStagingLocalService, getStagingService, getSubscription, getSubscriptionLocalService, getSubscriptionPersistence, getSubscriptions, getSubscriptionsCount, getSystemEventLocalService, getSystemEventPersistence, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserNotificationDeliveryLocalService, getUserNotificationDeliveryPersistence, getUserNotificationEventLocalService, getUserNotificationEventPersistence, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getVirtualHostLocalService, getVirtualHostPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBackgroundTaskLocalService, setBackgroundTaskPersistence, setBackgroundTaskService, setBeanIdentifier, setBrowserTrackerLocalService, setBrowserTrackerPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setClusterGroupLocalService, setClusterGroupPersistence, setCMISRepositoryLocalService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCountryPersistence, setCountryService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setLayoutBranchLocalService, setLayoutBranchPersistence, setLayoutBranchService, setLayoutFinder, setLayoutFriendlyURLLocalService, setLayoutFriendlyURLPersistence, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutRevisionLocalService, setLayoutRevisionPersistence, setLayoutRevisionService, setLayoutService, setLayoutSetBranchLocalService, setLayoutSetBranchPersistence, setLayoutSetBranchService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setLockFinder, setLockLocalService, setLockPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionService, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalPreferencesLocalService, setPortalPreferencesPersistence, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setRepositoryEntryLocalService, setRepositoryEntryPersistence, setRepositoryLocalService, setRepositoryPersistence, setRepositoryService, setResourceActionLocalService, setResourceActionPersistence, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPermissionLocalService, setResourceBlockPermissionPersistence, setResourceBlockPersistence, setResourceBlockService, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setResourceTypePermissionFinder, setResourceTypePermissionLocalService, setResourceTypePermissionPersistence, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setShardLocalService, setShardPersistence, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setStagingLocalService, setStagingService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setThemeLocalService, setThemeService, setTicketLocalService, setTicketPersistence, setUserFinder, setUserGroupFinder, setUserGroupGroupRoleLocalService, setUserGroupGroupRolePersistence, setUserGroupGroupRoleService, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleFinder, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserNotificationDeliveryLocalService, setUserNotificationDeliveryPersistence, setUserNotificationEventLocalService, setUserNotificationEventPersistence, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setVirtualHostLocalService, setVirtualHostPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateSubscription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionLocalServiceImpl
public SubscriptionLocalServiceImpl()
addSubscription
public Subscription addSubscription(long userId,
long groupId,
String className,
long classPK)
throws PortalException,
SystemException
- Subscribes the user to the entity, notifying him the instant the entity
is created, deleted, or modified.
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.
- Parameters:
userId
- 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 instance
- Returns:
- the subscription
- Throws:
PortalException
- if a matching user or group could not be found
SystemException
- if a system exception occurred
addSubscription
public Subscription addSubscription(long userId,
long groupId,
String className,
long classPK,
String frequency)
throws PortalException,
SystemException
- Subscribes the user to the entity, notifying him at the given frequency.
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.
- Parameters:
userId
- 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 notifications
- Returns:
- the subscription
- Throws:
PortalException
- if a matching user or group could not be found
SystemException
- if a system exception occurred
deleteSubscription
public Subscription deleteSubscription(long subscriptionId)
throws PortalException,
SystemException
- Deletes the subscription with the primary key. A social activity with the
unsubscribe action is created.
- Specified by:
deleteSubscription
in interface SubscriptionLocalService
- Overrides:
deleteSubscription
in class SubscriptionLocalServiceBaseImpl
- Parameters:
subscriptionId
- the primary key of the subscription
- Returns:
- the subscription that was removed
- Throws:
PortalException
- if a portal exception occurred
SystemException
- if a system exception occurred
deleteSubscription
public void deleteSubscription(long userId,
String className,
long classPK)
throws PortalException,
SystemException
- Deletes the user's subscription to the entity. A social activity with the
unsubscribe action is created.
- Parameters:
userId
- the primary key of the userclassName
- the entity's class nameclassPK
- the primary key of the entity's instance
- Throws:
PortalException
- if a matching user or subscription could not be
found
SystemException
- if a system exception occurred
deleteSubscription
public Subscription deleteSubscription(Subscription subscription)
throws PortalException,
SystemException
- Deletes the subscription. A social activity with the unsubscribe action
is created.
- Specified by:
deleteSubscription
in interface SubscriptionLocalService
- Overrides:
deleteSubscription
in class SubscriptionLocalServiceBaseImpl
- Parameters:
subscription
- the subscription
- Returns:
- the subscription that was removed
- Throws:
PortalException
- if a portal exception occurred
SystemException
- if a system exception occurred
deleteSubscriptions
public void deleteSubscriptions(long userId)
throws PortalException,
SystemException
- Deletes all the subscriptions of the user.
- Parameters:
userId
- the primary key of the user
- Throws:
PortalException
- if a portal exception occurred
SystemException
- if a system exception occurred
deleteSubscriptions
public void deleteSubscriptions(long companyId,
String className,
long classPK)
throws PortalException,
SystemException
- Deletes all the subscriptions to the entity.
- Parameters:
companyId
- the primary key of the companyclassName
- the entity's class nameclassPK
- the primary key of the entity's instance
- Throws:
PortalException
- if a portal exception occurred
SystemException
- if a system exception occurred
getSubscription
public Subscription getSubscription(long companyId,
long userId,
String className,
long classPK)
throws PortalException,
SystemException
- Returns the subscription of the user to the entity.
- Parameters:
companyId
- the primary key of the companyuserId
- the primary key of the userclassName
- the entity's class nameclassPK
- the primary key of the entity's instance
- Returns:
- the subscription of the user to the entity
- Throws:
PortalException
- if a matching subscription could not be found
SystemException
- if a system exception occurred
getSubscriptions
public List<Subscription> getSubscriptions(long companyId,
long userId,
String className,
long[] classPKs)
throws SystemException
- Returns all the subscriptions of the user to the entities.
- Parameters:
companyId
- the primary key of the companyuserId
- the primary key of the userclassName
- the entity's class nameclassPKs
- the primary key of the entities
- Returns:
- the subscriptions of the user to the entities
- Throws:
SystemException
- if a system exception occurred
getSubscriptions
public List<Subscription> getSubscriptions(long companyId,
String className,
long classPK)
throws SystemException
- Returns all the subscriptions to the entity.
- Parameters:
companyId
- the primary key of the companyclassName
- the entity's class nameclassPK
- the primary key of the entity's instance
- Returns:
- the subscriptions to the entity
- Throws:
SystemException
- if a system exception occurred
getUserSubscriptions
public List<Subscription> getUserSubscriptions(long userId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Returns an ordered range of all the subscriptions of the user.
- Parameters:
userId
- 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 subscriptions
- Returns:
- the range of subscriptions of the user
- Throws:
SystemException
- if a system exception occurred
getUserSubscriptions
public List<Subscription> getUserSubscriptions(long userId,
String className)
throws SystemException
- Returns all the subscriptions of the user to the entities with the class
name.
- Parameters:
userId
- the primary key of the userclassName
- the entity's class name
- Returns:
- the subscriptions of the user to the entities with the class name
- Throws:
SystemException
- if a system exception occurred
getUserSubscriptionsCount
public int getUserSubscriptionsCount(long userId)
throws SystemException
- Returns the number of subscriptions of the user.
- Parameters:
userId
- the primary key of the user
- Returns:
- the number of subscriptions of the user
- Throws:
SystemException
- if a system exception occurred
isSubscribed
public boolean isSubscribed(long companyId,
long userId,
String className,
long classPK)
throws SystemException
- Returns
true
if the user is subscribed to the entity.
- Parameters:
companyId
- the primary key of the companyuserId
- the primary key of the userclassName
- the entity's class nameclassPK
- the primary key of the entity's instance
- Returns:
true
if the user is subscribed to the entity;
false
otherwise
- Throws:
SystemException
- if a system exception occurred
isSubscribed
public boolean isSubscribed(long companyId,
long userId,
String className,
long[] classPKs)
throws SystemException
- Returns
true
if the user is subscribed to any of the
entities.
- Parameters:
companyId
- the primary key of the companyuserId
- the primary key of the userclassName
- the entity's class nameclassPKs
- the primary key of the entities
- Returns:
true
if the user is subscribed to any of the
entities; false
otherwise
- Throws:
SystemException
- if a system exception occurred