Package se.conciliate.extensions.store
Interface MTSubscriber
public interface MTSubscriber
Interface for subscriber. A subscriber has a unique e-mail
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMember
(MTSubscriber subscriber) getEmail()
Returns this users first name.Returns this subscribers first name.Returns this subscribers full name, i.e.long
getId()
Returns this subscribers last name.default boolean
boolean
isGroup()
default boolean
isMemberOfGroup
(MTSubscriber group) boolean
isUser()
void
remove()
Removes a subscriber.void
removeFromGroup
(MTSubscriber group) void
removeMember
(MTSubscriber subscriber) void
save()
Saves changes to a subscriber.void
void
setFirstName
(String firstName) void
setLastName
(String lastName) void
Deprecated.This method should only be called to keep the UI up-to-date, the changes will not be persisted when the model is saved.
-
Method Details
-
getId
long getId() -
isUser
boolean isUser() -
isGroup
boolean isGroup() -
isExternal
default boolean isExternal() -
getAvatar24
Icon getAvatar24() -
setEmail
-
getEmail
String getEmail()Returns this users first name.- Returns:
- this users first name.
-
getFirstName
Returns this subscribers first name.- Returns:
- this users first name.
-
setFirstName
-
getLastName
Returns this subscribers last name.- Returns:
- this users last name.
-
setLastName
-
getFullName
Returns this subscribers full name, i.e. first name + last name.- Returns:
- The users full name.
-
remove
Removes a subscriber.- Throws:
MTAccessException
-
save
Saves changes to a subscriber.- Throws:
MTAccessException
-
getMembers
Collection<Long> getMembers() -
addMember
-
removeMember
-
getGroups
Collection<Map.Entry<Long,String>> getGroups() -
removeFromGroup
-
getModels
Collection<Long> getModels() -
isMemberOfGroup
-
setModels
Deprecated.This method should only be called to keep the UI up-to-date, the changes will not be persisted when the model is saved.Sets the subscriptions for this subscriber.- Parameters:
models
- The new models for this model.
-