Package com.axemble.vdoc.sdk.interfaces
Interface IMailingList
- All Superinterfaces:
IDeletionSupport
,IElement
,IProtocolSupport
,ISecuritySupport
,Serializable
public interface IMailingList
extends IElement, IProtocolSupport, IDeletionSupport, ISecuritySupport
This interface represents a mailing list.
- Author:
- fsalque
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
This interface represents the various status the mailing list can have.static interface
This interface represents the various types the mailing list can have. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an email address to the mailing list.void
Adds a group to the mailing list.void
addProfile
(IContext context, IProfile profile) Adds a profile to the mailing list.Collection
<? extends IUser> Gets the creation date of the mailing list.Gets the creator of the mailing list.Gets all the emails.Collection
<? extends IGroup> Gets all the groups.getLabel()
getLink()
Gets the resource associated with the mailing list.getName()
Gets the organization object.Collection
<? extends IProfile> Gets all the profiles.int
getType()
Gets the mailing list type.Collection
<? extends IUser> 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
Removes all emails from the mailing list.void
removeGroup
(IGroup group) Removes a group from the mailing list.void
Removes all groups from the mailing list.void
removeProfile
(IProfile profile) Removes a profile from the mailing list.void
Removes all profiles from the mailing list.void
removeUser
(IUser user) Permanently removes a user from the mailing listvoid
Permanently removes all users from the mailing listvoid
setDescription
(String description) Sets the description of the mailing list.void
Sets the label of the mailing list.void
setLink
(IProtocolSupport link) Sets the resource associated with the mailing list.void
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.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
delete
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Method Details
-
getName
String getName()- Returns:
- the name of the mailing list.
-
setName
Sets the name of the mailing list.- Parameters:
name
- the new name to set.
-
getLabel
String getLabel()- Returns:
- the label of the mailing list.
-
setLabel
Sets the label of the mailing list.- Parameters:
label
- the new label to set.
-
getDescription
String getDescription()- Returns:
- the description of the mailing list.
-
setDescription
Sets the description of the mailing list.- Parameters:
description
- the new description to set.
-
getType
int getType()Gets the mailing list type.- Returns:
- the type of the mailing list.
-
setType
void setType(int type) Sets the type of the mailing list.- Parameters:
type
- the type to set.
-
getCreator
IUser getCreator()Gets the creator of the mailing list.- Returns:
- A
IUser
the creator of the mailing list.
-
getCreationDate
Date getCreationDate()Gets the creation date of the mailing list.- Returns:
- the creation date of the mailing list.
-
getOrganization
IOrganization getOrganization()Gets the organization object.- Returns:
- A
IOrganization
object.
-
setOrganization
Sets the mailing list organization.- Parameters:
organization
- the newIOrganization
to set.
-
getUsers
Collection<? extends IUser> getUsers()Gets all the users with an ACTIVE status.- Returns:
- a java.util.Collection of
IUser
objects.
-
getUnsubscribedUsers
Collection<? extends IUser> getUnsubscribedUsers()Gets all the users with an INACTIVE status.- Returns:
- a Collection object of
IUser
.
-
subscribeUser
Subscribes a user to the mailing list.- Parameters:
context
- the execution context.user
- theIUser
to be subscribed.- Throws:
PortalModuleException
- default module exception.
-
unsubscribeUser
Unsubscribes a user to the mailing list.- Parameters:
user
- theIUser
to be unsubscribed.- Throws:
PortalModuleException
- default module exception.
-
removeUser
Permanently removes a user from the mailing list- Parameters:
user
- theIUser
to be removed.- Throws:
PortalModuleException
- default module exception.
-
removeUsers
void removeUsers()Permanently removes all users from the mailing list- Throws:
PortalModuleException
- default module exception.
-
getGroups
Collection<? extends IGroup> getGroups()Gets all the groups.- Returns:
- a java.util.Collection of
IGroup
objects.
-
addGroup
Adds a group to the mailing list.- Parameters:
context
- the execution context.group
- theIGroup
to be added.- Throws:
PortalModuleException
- default module exception.
-
removeGroup
Removes a group from the mailing list.- Parameters:
group
- theIGroup
to be removed.- Throws:
PortalModuleException
- default module exception.
-
removeGroups
void removeGroups()Removes all groups from the mailing list.- Throws:
PortalModuleException
- default module exception.
-
getProfiles
Collection<? extends IProfile> getProfiles()Gets all the profiles.- Returns:
- a java.util.Collection of
IProfile
objects.
-
addProfile
Adds a profile to the mailing list.- Parameters:
context
- the execution context.profile
- theIProfile
to be added.- Throws:
PortalModuleException
- default module exception.
-
removeProfile
Removes a profile from the mailing list.- Parameters:
profile
- theIProfile
to be removed.- Throws:
PortalModuleException
- default module exception.
-
removeProfiles
void removeProfiles()Removes all profiles from the mailing list.- Throws:
PortalModuleException
- default module exception.
-
getAllUsers
Collection<? extends IUser> getAllUsers()- Returns:
- all users who are in groups and the profiles
-
getAllEmails
Collection<String> getAllEmails()- Returns:
- all users' mail who are in groups and the profiles
-
getEmails
Collection<String> getEmails()Gets all the emails.- Returns:
- a java.util.Collection of java.lang.String objects.
-
addEmail
Adds an email address to the mailing list.- Parameters:
context
- the execution context.email
- the email address to be added.- Throws:
PortalModuleException
- default module exception.
-
removeEmail
Removes an email address from the mailing list.- Parameters:
email
- the email address to be removed.context
- the execution context.- Throws:
PortalModuleException
- default module exception.
-
removeEmails
void removeEmails()Removes all emails from the mailing list.- Parameters:
context
- the execution context.- Throws:
PortalModuleException
- default module exception.
-
setLink
Sets the resource associated with the mailing list.- Parameters:
link
-IProtocolSupport
to associate with the mailing list.
-
getLink
Gets the resource associated with the mailing list.- Returns:
- the
IProtocolSupport
associated with the mailing list. - Throws:
PortalModuleException
- default module exception.
-