public interface IMailingList extends IElement, IProtocolSupport, IDeletionSupport, ISecuritySupport
Modifier and Type | Interface and Description |
---|---|
static interface |
IMailingList.IStatus
This interface represents the various status the mailing list can have.
|
static interface |
IMailingList.IType
This interface represents the various types the mailing list can have.
|
Modifier and Type | Method and Description |
---|---|
void |
addEmail(IContext context,
String email)
Adds an email address to the mailing list.
|
void |
addGroup(IContext context,
IGroup group)
Adds a group to the mailing list.
|
void |
addProfile(IContext context,
IProfile profile)
Adds a profile to the mailing list.
|
Collection<String> |
getAllEmails() |
Collection<? extends IUser> |
getAllUsers() |
Date |
getCreationDate()
Gets the creation date of the mailing list.
|
IUser |
getCreator()
Gets the creator of the mailing list.
|
String |
getDescription() |
Collection<String> |
getEmails()
Gets all the emails.
|
Collection<? extends IGroup> |
getGroups()
Gets all the groups.
|
String |
getLabel() |
IProtocolSupport |
getLink()
Gets the resource associated with the mailing list.
|
String |
getName() |
IOrganization |
getOrganization()
Gets the organization object.
|
Collection<? extends IProfile> |
getProfiles()
Gets all the profiles.
|
int |
getType()
Gets the mailing list type.
|
Collection<? extends IUser> |
getUnsubscribedUsers()
Gets all the users with an INACTIVE status.
|
Collection<? extends IUser> |
getUsers()
Gets all the users with an ACTIVE status.
|
void |
removeEmail(String email)
Removes an email address from the mailing list.
|
void |
removeEmails()
Removes all emails from the mailing list.
|
void |
removeGroup(IGroup group)
Removes a group from the mailing list.
|
void |
removeGroups()
Removes all groups from the mailing list.
|
void |
removeProfile(IProfile profile)
Removes a profile from the mailing list.
|
void |
removeProfiles()
Removes all profiles from the mailing list.
|
void |
removeUser(IUser user)
Permanently removes a user from the mailing list
|
void |
removeUsers()
Permanently removes all users from the mailing list
|
void |
setDescription(String description)
Sets the description of the mailing list.
|
void |
setLabel(String label)
Sets the label of the mailing list.
|
void |
setLink(IProtocolSupport link)
Sets the resource associated with the mailing list.
|
void |
setName(String name)
Sets the name of the mailing list.
|
void |
setOrganization(IOrganization organization)
Sets the mailing list organization.
|
void |
setType(int type)
Sets the type of the mailing list.
|
void |
subscribeUser(IContext context,
IUser user)
Subscribes a user to the mailing list.
|
void |
unsubscribeUser(IUser user)
Unsubscribes a user to the mailing list.
|
getId, getModule, getNativeObject, getPath, save
delete
getProtocolURI, getProtocolURI
String getName()
void setName(String name)
name
- the new name to set.String getLabel()
void setLabel(String label)
label
- the new label to set.String getDescription()
void setDescription(String description)
description
- the new description to set.int getType()
void setType(int type)
type
- the type to set.IUser getCreator()
IUser
the creator of the mailing list.Date getCreationDate()
IOrganization getOrganization()
IOrganization
object.void setOrganization(IOrganization organization)
organization
- the new IOrganization
to set.Collection<? extends IUser> getUsers()
IUser
objects.Collection<? extends IUser> getUnsubscribedUsers()
IUser
.void subscribeUser(IContext context, IUser user)
context
- the execution context.user
- the IUser
to be subscribed.PortalModuleException
- default module exception.void unsubscribeUser(IUser user)
user
- the IUser
to be unsubscribed.PortalModuleException
- default module exception.void removeUser(IUser user)
user
- the IUser
to be removed.PortalModuleException
- default module exception.void removeUsers()
PortalModuleException
- default module exception.Collection<? extends IGroup> getGroups()
IGroup
objects.void addGroup(IContext context, IGroup group)
context
- the execution context.group
- the IGroup
to be added.PortalModuleException
- default module exception.void removeGroup(IGroup group)
group
- the IGroup
to be removed.PortalModuleException
- default module exception.void removeGroups()
PortalModuleException
- default module exception.Collection<? extends IProfile> getProfiles()
IProfile
objects.void addProfile(IContext context, IProfile profile)
context
- the execution context.profile
- the IProfile
to be added.PortalModuleException
- default module exception.void removeProfile(IProfile profile)
profile
- the IProfile
to be removed.PortalModuleException
- default module exception.void removeProfiles()
PortalModuleException
- default module exception.Collection<? extends IUser> getAllUsers()
Collection<String> getAllEmails()
Collection<String> getEmails()
void addEmail(IContext context, String email) throws PortalModuleException
context
- the execution context.email
- the email address to be added.PortalModuleException
- default module exception.void removeEmail(String email)
context
- the execution context.email
- the email address to be removed.PortalModuleException
- default module exception.void removeEmails()
context
- the execution context.PortalModuleException
- default module exception.void setLink(IProtocolSupport link)
link
- IProtocolSupport
to associate with the mailing list.IProtocolSupport getLink() throws PortalModuleException
IProtocolSupport
associated with the mailing list.PortalModuleException
- default module exception.Copyright © 2022 Visiativ. All rights reserved.