Package se.conciliate.extensions.store
Interface MTSubscriber
public interface MTSubscriber
Interface for subscriber. A subscriber has a unique e-mail
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMember(MTSubscriber subscriber) getEmail()Returns this users first name.Returns this subscribers first name.Returns this subscribers full name, i.e.longgetId()Returns this subscribers last name.default booleanbooleanisGroup()default booleanisMemberOfGroup(MTSubscriber group) booleanisUser()voidremove()Removes a subscriber.voidremoveFromGroup(MTSubscriber group) voidremoveMember(MTSubscriber subscriber) voidsave()Saves changes to a subscriber.voidvoidsetFirstName(String firstName) voidsetLastName(String lastName) voidDeprecated.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.
-