Blue Mind
Release 1.0

net.bluemind.core.api.mailshare
Class Mailshare

java.lang.Object
  extended by net.bluemind.core.api.Entity
      extended by net.bluemind.core.api.mailshare.Mailshare
All Implemented Interfaces:
java.io.Serializable, IEntity, IHasEmails, IMailbox

public class Mailshare
extends Entity
implements IMailbox, IHasEmails

See Also:
Serialized Form

Constructor Summary
Mailshare()
           
 
Method Summary
 void addEmail(java.lang.String string, Email email)
           
 java.lang.String getBoxName()
          The SMTP mailbox. login@domain except if MailRouting.EXTERNAL
 java.lang.String getDelegation()
           
 java.lang.String getDescription()
           
 Domain getDomain()
           
 java.util.Map<java.lang.String,Email> getEmails()
           
 MailboxType getMailboxType()
           
 MailRouting getMailRouting()
           
 Host getMailServer()
           
 java.lang.String getName()
           
 java.lang.String getNamespace()
          Returns the IMAP namespace for the mailbox
 java.lang.Integer getQuota()
          null means no quota. 0 means no quota too.
 java.lang.String getReservedBoxName()
          The mandatory mailbox in the mailbox store.
 java.lang.String getVirtualPrefix()
           
 boolean isArchived()
           
 boolean isHidden()
           
 void setArchive(boolean archive)
           
 void setDelegation(java.lang.String delegation)
           
 void setDescription(java.lang.String description)
           
 void setDomain(Domain domain)
           
 void setEmails(java.util.Map<java.lang.String,Email> emails)
           
 void setHidden(boolean hidden)
           
 void setMailRouting(MailRouting mailRouting)
           
 void setMailServer(Host mailServer)
           
 void setName(java.lang.String name)
           
 void setQuota(java.lang.Integer quota)
           
 
Methods inherited from class net.bluemind.core.api.Entity
equals, getCustomProperties, getEntityId, getId, getTimeCreate, getTimeUpdate, getUserCreateId, getUserUpdateId, hashCode, setCustomProperties, setEntityId, setId, setTimeCreate, setTimeUpdate, setUserCreateId, setUserUpdateId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailshare

public Mailshare()
Method Detail

setDomain

public void setDomain(Domain domain)

getDomain

public Domain getDomain()
Specified by:
getDomain in interface IMailbox

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setArchive

public void setArchive(boolean archive)

isArchived

public boolean isArchived()
Specified by:
isArchived in interface IMailbox

setQuota

public void setQuota(java.lang.Integer quota)

getQuota

public java.lang.Integer getQuota()
Description copied from interface: IMailbox
null means no quota. 0 means no quota too.

Specified by:
getQuota in interface IMailbox
Returns:
quota value in KB

getDelegation

public java.lang.String getDelegation()

setDelegation

public void setDelegation(java.lang.String delegation)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getEmails

public java.util.Map<java.lang.String,Email> getEmails()
Specified by:
getEmails in interface IHasEmails
Specified by:
getEmails in interface IMailbox

getMailServer

public Host getMailServer()
Specified by:
getMailServer in interface IMailbox

setMailServer

public void setMailServer(Host mailServer)

setEmails

public void setEmails(java.util.Map<java.lang.String,Email> emails)

addEmail

public void addEmail(java.lang.String string,
                     Email email)
Specified by:
addEmail in interface IHasEmails

getBoxName

public java.lang.String getBoxName()
Description copied from interface: IMailbox
The SMTP mailbox. login@domain except if MailRouting.EXTERNAL

Specified by:
getBoxName in interface IMailbox
Returns:
login@domain

getNamespace

public java.lang.String getNamespace()
Description copied from interface: IMailbox
Returns the IMAP namespace for the mailbox

Specified by:
getNamespace in interface IMailbox
Returns:
"user/" or ""

getVirtualPrefix

public java.lang.String getVirtualPrefix()
Specified by:
getVirtualPrefix in interface IMailbox
Returns:
"+" for mailshares, "" for users

getMailRouting

public MailRouting getMailRouting()
Specified by:
getMailRouting in interface IMailbox

setMailRouting

public void setMailRouting(MailRouting mailRouting)

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean hidden)

getMailboxType

public MailboxType getMailboxType()
Specified by:
getMailboxType in interface IMailbox

getReservedBoxName

public java.lang.String getReservedBoxName()
Description copied from interface: IMailbox
The mandatory mailbox in the mailbox store. Always login@domain

Specified by:
getReservedBoxName in interface IMailbox
Returns:
login@domain

Blue Mind
Release 1.0