Class PageSubscriptionXSLTHelper
java.lang.Object
org.ametys.plugins.pagesubscription.page.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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) static booleanisPageSubscriber(String email) Determines is the given email is registered as subscriber on current pagestatic booleanisPageSubscriber(String pageId, String email) Determines is the given email is registered as subscriber on the given pagevoidservice(ServiceManager smanager)  
- 
Constructor Details
- 
PageSubscriptionXSLTHelper
public PageSubscriptionXSLTHelper() 
 - 
 - 
Method Details
- 
contextualize
- Specified by:
 contextualizein interfaceContextualizable- Throws:
 ContextException
 - 
service
- Specified by:
 servicein 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
 
 -