public class PageSubscriptionXSLTHelper extends Object implements LogEnabled, Component, Contextualizable
Modifier and Type | Field and Description |
---|---|
private static Context |
_context |
private static Logger |
_logger |
static String |
SUBSCRIBERS_PROPERTY_NAME
Constant for the attachment node name.
|
Constructor and Description |
---|
PageSubscriptionXSLTHelper() |
Modifier and Type | Method and Description |
---|---|
protected static Set<String> |
_getSubscribers(JCRAmetysObject page)
Get the page's subscribers
|
void |
contextualize(Context context) |
void |
enableLogging(Logger logger) |
static boolean |
isPageSubscriber(String email)
Determines is the given email is registered as subscriber on current page
|
public static final String SUBSCRIBERS_PROPERTY_NAME
public PageSubscriptionXSLTHelper()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
public static boolean isPageSubscriber(String email) throws IllegalArgumentException
email
- The emailIllegalArgumentException
- if the current page is not a JCRPageprotected static Set<String> _getSubscribers(JCRAmetysObject page)
page
- the page