Package org.openxava.util
Class EmailNotifications
- java.lang.Object
-
- org.openxava.util.EmailNotifications
-
public class EmailNotifications extends java.lang.Object
- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description EmailNotifications()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
currentUserHasEmail()
static boolean
isEnabled(java.lang.String module)
static boolean
isSubscribedCurrentUserToModule(java.lang.String module)
static void
setModuleInfo(java.lang.String applicationName, java.lang.String moduleName, java.lang.String moduleURL)
static void
setRefiner(java.lang.Object newRefiner)
static void
subscribeCurrentUserToEntity(java.lang.String module, java.util.Map key)
static void
subscribeCurrentUserToModule(java.lang.String module)
static void
subscribeToEntity(java.lang.String email, java.lang.String module, java.util.Map key)
static void
subscribeToModule(java.lang.String email, java.lang.String module)
static int
unsubscribeAllEntitiesOfModule(java.lang.String email, java.lang.String module)
static void
unsubscribeCurrentUserFromModule(java.lang.String module)
static boolean
unsubscribeFromEntity(java.lang.String email, java.lang.String module, java.lang.String key)
static boolean
unsubscribeFromModule(java.lang.String email, java.lang.String module)
-
-
-
Method Detail
-
setRefiner
public static void setRefiner(java.lang.Object newRefiner)
-
setModuleInfo
public static void setModuleInfo(java.lang.String applicationName, java.lang.String moduleName, java.lang.String moduleURL)
-
subscribeToModule
public static void subscribeToModule(java.lang.String email, java.lang.String module)
-
subscribeCurrentUserToModule
public static void subscribeCurrentUserToModule(java.lang.String module)
-
subscribeCurrentUserToEntity
public static void subscribeCurrentUserToEntity(java.lang.String module, java.util.Map key)
-
subscribeToEntity
public static void subscribeToEntity(java.lang.String email, java.lang.String module, java.util.Map key)
-
unsubscribeCurrentUserFromModule
public static void unsubscribeCurrentUserFromModule(java.lang.String module)
-
unsubscribeAllEntitiesOfModule
public static int unsubscribeAllEntitiesOfModule(java.lang.String email, java.lang.String module)
-
unsubscribeFromEntity
public static boolean unsubscribeFromEntity(java.lang.String email, java.lang.String module, java.lang.String key)
-
unsubscribeFromModule
public static boolean unsubscribeFromModule(java.lang.String email, java.lang.String module)
-
isSubscribedCurrentUserToModule
public static boolean isSubscribedCurrentUserToModule(java.lang.String module)
-
isEnabled
public static boolean isEnabled(java.lang.String module)
-
currentUserHasEmail
public static boolean currentUserHasEmail()
-
-