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 PageSubscriptionType
The page subscription typeprotected SubscriptionTypeExtensionPoint
The 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 pagevoid
service
(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, unsubscribe
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in 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
-