public interface SubscriptionsPersistentStore
Modifier and Type | Field and Description |
---|---|
static String |
SUBSCRIPTIONS_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
addEmail(String id,
String email)
Associate an email address with an ID.
|
void |
addEmails(String id,
Set<String> emails)
Associate a set of email addresses with an ID.
|
Set<String> |
getEmails(String id)
Get the set of emails that have been associated with an ID.
|
Set<String> |
getSubscriptions(String email)
Get the set of subscription ids that have been associated with an email.
|
void |
removeAllEmails(String id)
Remove all emails that have been associated with an ID.
|
void |
removeEmail(String id,
String email)
Remove an email that has been associated with an ID.
|
void |
removeEmails(String id,
Set<String> emails)
Remove a set of emails that have been associated with an ID.
|
static final String SUBSCRIPTIONS_TYPE
void addEmails(String id, Set<String> emails)
id
- must be non-null and non-blankemails
- must be non-null and elements must be non-blankvoid addEmail(String id, String email)
id
- must be non-null and non-blankemail
- must be non-null and non-blankvoid removeAllEmails(String id)
id
- must be non-null and non-blankvoid removeEmails(String id, Set<String> emails)
id
- must be non-null and non-blankemails
- must be non-null and elements must be non-blankvoid removeEmail(String id, String email)
id
- must be non-null and non-blankemail
- must be non-nullSet<String> getEmails(String id)
id
- must be non-null and non-blankThis work is licensed under a Creative Commons Attribution 4.0 International License.