use of com.liferay.portal.model.Subscription in project liferay-ide by liferay.
the class KBArticleLocalServiceImpl method deleteGroupKBArticles.
@Override
public void deleteGroupKBArticles(long groupId) throws PortalException, SystemException {
// KB articles
deleteKBArticles(groupId, KBFolderConstants.DEFAULT_PARENT_FOLDER_ID);
// Subscriptions
Group group = groupLocalService.getGroup(groupId);
List<Subscription> subscriptions = subscriptionLocalService.getSubscriptions(group.getCompanyId(), KBArticle.class.getName(), groupId);
for (Subscription subscription : subscriptions) {
unsubscribeGroupKBArticles(subscription.getUserId(), groupId);
}
}
Aggregations