Class PageSubscriptionXSLTHelper
java.lang.Object
org.ametys.plugins.pagesubscription.helpers.PageSubscriptionXSLTHelper
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
public class PageSubscriptionXSLTHelper
extends Object
implements Component, Contextualizable, Serviceable
Helper component to be used from XSL stylesheets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) static boolean
isPageSubscriber
(String email) Determines is the given email is registered as subscriber on current pagestatic boolean
isPageSubscriber
(String pageId, String email) Determines is the given email is registered as subscriber on the given pagevoid
service
(ServiceManager smanager)
-
Constructor Details
-
PageSubscriptionXSLTHelper
public PageSubscriptionXSLTHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
isPageSubscriber
Determines is the given email is registered as subscriber on current page- Parameters:
email
- The email- Returns:
- true if the given email is registered as subscriber on current page
- Throws:
IllegalArgumentException
- if the current page does not support subscription
-
isPageSubscriber
Determines is the given email is registered as subscriber on the given page- Parameters:
pageId
- the id of pageemail
- The email- Returns:
- true if the given email is registered as subscriber on current page
- Throws:
IllegalArgumentException
- if the current page does not support subscription
-