Class PageSubscriptionsDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.dao.AbstractSubscriptionsDAO
org.ametys.plugins.pagesubscription.dao.PageSubscriptionsDAO
- All Implemented Interfaces:
LogEnabled,Component,Contextualizable,Serviceable
DAO for page subscriptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PageSubscriptionTypeThe page subscription typeprotected SubscriptionTypeExtensionPointThe subscription type extension pointFields inherited from class org.ametys.plugins.pagesubscription.dao.AbstractSubscriptionsDAO
_context, _currentUserProvider, _resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPageSubscribers(Page page) Get the page subscribersgetPageSubscriptions(String pageId) Get subscriptions of a pagevoidservice(ServiceManager smanager) subscribePage(String pageId) Subscribe the current user to a pageunsubscribePage(String pageId) Unsubscribe the current user to a pageMethods inherited from class org.ametys.plugins.pagesubscription.dao.AbstractSubscriptionsDAO
contextualize, editSubscription, editSubscription, getSubscription, getSubscription, unsubscribe, unsubscribeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_subscriptionTypeEP
The subscription type extension point -
_pageSubscriptionType
The page subscription type
-
-
Constructor Details
-
PageSubscriptionsDAO
public PageSubscriptionsDAO()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractSubscriptionsDAO- Throws:
ServiceException
-
getPageSubscriptions
Get subscriptions of a page- Parameters:
pageId- the page id- Returns:
- the results
-
subscribePage
Subscribe the current user to a page- Parameters:
pageId- the page id- Returns:
- the results
-
unsubscribePage
Unsubscribe the current user to a page- Parameters:
pageId- the page id- Returns:
- the results
-
getPageSubscribers
Get the page subscribers- Parameters:
page- the page- Returns:
- the subscribers
-