public class CustomPersistanceServiceHandler extends Object
| Constructor and Description |
|---|
CustomPersistanceServiceHandler() |
| Modifier and Type | Method and Description |
|---|---|
static AHContact |
addContact(String contactForename,
String contactSurname,
String contactMail,
String contactTel)
Add (or receive an existing) contact address
|
static AHSubscription |
addSubscription(NewsletterForm data)
Add a subscription - according to a form object
|
static AHSubscription |
addSubscription(String mail,
long[] categories,
String uuid,
E_SubscriptionStatus status) |
static AHCatEntries |
deleteCategoryEntryById(long entryId)
Clear all dependencies for a specified category entry from offers and subscriptions and delete the category entry afterwards
|
static Map<Long,String> |
getDataList(E_CategoryType type,
boolean includeEmpty)
Receive a data-list from storage
|
static int |
getSubscriptionsSize(String email)
Gets the number of subscriptions for a given email address
|
static byte[] |
getUsersAsCsv()
Get all users (that is: newsletter subscribers) in CSV-format (UTF-8)
|
public static AHContact addContact(String contactForename, String contactSurname, String contactMail, String contactTel)
contactForename - the contact forenamecontactSurname - the contact surnamecontactMail - the contact email addresscontactTel - the contact telephone or mobile numberpublic static AHSubscription addSubscription(NewsletterForm data)
data - the form objectpublic static AHSubscription addSubscription(String mail, long[] categories, String uuid, E_SubscriptionStatus status)
public static AHCatEntries deleteCategoryEntryById(long entryId)
entryId - the category entry IDnull if not foundpublic static Map<Long,String> getDataList(E_CategoryType type, boolean includeEmpty)
type - the data-list typeincludeEmpty - whether to include an empty entry (-1,'-') on top of the mappublic static int getSubscriptionsSize(String email)
email - the email addresspublic static byte[] getUsersAsCsv()
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.