it.sistematica.isharedoc.model.mbox
Class MessageBox

java.lang.Object
  extended by it.sistematica.isharedoc.model.mbox.MessageBox
All Implemented Interfaces:
it.neverworks.application.data.tracking.Loggable, it.neverworks.application.model.CreationAuditable, it.neverworks.application.model.ModificationAuditable, PartitionAttribute, java.io.Serializable

public class MessageBox
extends java.lang.Object
implements java.io.Serializable, it.neverworks.application.model.ModificationAuditable, PartitionAttribute, it.neverworks.application.data.tracking.Loggable

See Also:
Serialized Form

Nested Class Summary
static class MessageBox.InteroperabilityType
           
static class MessageBox.SecureType
           
static class MessageBox.ServerType
           
static class MessageBox.TransportType
           
 
Field Summary
static java.lang.String ARCHIVES
           
protected  java.lang.Long attachmentMbLimit
           
static java.lang.String ATTACHMENTS
           
protected  java.util.Date created
           
protected  it.neverworks.security.User createdBy
           
protected  File defaultFolder
           
protected  java.lang.String description
           
(package private)  DocumentManager documentManager
           
static java.lang.String DRAFT
           
protected  java.lang.String email
           
(package private)  it.neverworks.data.EntityManager entities
           
protected  java.lang.String fullName
           
protected  java.lang.Long id
           
protected  Storyboard inboundStoryboard
           
static java.lang.String INBOX
           
protected  java.lang.String inPassword
           
protected  java.lang.String inServer
           
protected  java.lang.Integer inServerPort
           
protected  MessageBox.SecureType inServerSecure
           
protected  MessageBox.ServerType inServerType
           
protected  MessageBox.InteroperabilityType interoperabilityType
           
protected  java.lang.String inUsername
           
protected  java.lang.Integer mailCheckSeconds
           
protected  java.lang.Integer maxOnlineMessagesCount
           
protected  java.util.Date modified
           
protected  it.neverworks.security.User modifiedBy
           
protected  java.lang.String name
           
static java.lang.String OUTBOX
           
protected  java.lang.String outPassword
           
protected  java.lang.String outServer
           
protected  java.lang.Integer outServerPort
           
protected  MessageBox.SecureType outServerSecure
           
protected  java.lang.String outUsername
           
protected  it.neverworks.security.User owner
           
protected  Partition partition
           
protected  java.util.List<MessageBoxPermission> permissions
           
protected  java.lang.Long recipientsLimit
           
static java.lang.String SERVICEMESSAGES
           
protected  java.util.List<Organization> sharingOrganizations
           
protected  java.util.List<Signature> signatures
           
protected  java.util.List<SmartRule> smartrules
           
protected  FileSpecial specialFolder
           
protected  java.util.List<Storyboard> storyboards
           
protected  java.util.List<MailTemplate> templates
           
protected  MessageBox.TransportType transportType
           
static java.lang.String TRASH
           
static java.lang.String UNSENTOUTBOX
           
 
Constructor Summary
MessageBox()
           
 
Method Summary
 void addChange(java.lang.String key, java.lang.Object change)
           
 void addMultiChange(java.lang.String key, java.lang.Object change)
           
 void addPermission(MessageBoxPermission permission)
           
 void addSharingOrganization(Organization organization)
           
 void addSignature(Signature signature)
           
 void addStoryboard(Storyboard storyboard)
           
 void addTemplates(MailTemplate template)
           
 void checkValidity()
           
 void createMessageBox()
           
 void deleteMessageBox()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getAttachmentMbLimit()
           
 java.util.Map<java.lang.String,java.lang.Object> getChanges()
           
 java.util.Date getCreated()
           
 it.neverworks.security.User getCreatedBy()
           
 File getDefaultFolder()
           
 java.lang.String getDescription()
           
 java.lang.String getEmail()
           
 File getFolderArchives()
           
 File getFolderAttachments()
           
 File getFolderDraft()
           
 File getFolderInbox()
           
 File getFolderOutbox()
           
 File getFolderServiceMessages()
           
 File getFolderTrash()
           
 File getFolderUnsentOutbox()
           
 java.lang.String getFullName()
           
 java.lang.Boolean getHtmlEnabled()
           
 java.lang.Long getId()
           
 Storyboard getInboundStoryboard()
           
 java.lang.String getInPassword()
           
 java.lang.String getInServer()
           
 java.lang.Integer getInServerPort()
           
 MessageBox.SecureType getInServerSecure()
           
 MessageBox.ServerType getInServerType()
           
 MessageBox.InteroperabilityType getInteroperabilityType()
           
 java.lang.String getInUsername()
           
 java.lang.Integer getMailCheckSeconds()
           
 java.lang.Boolean getMailEnabled()
           
 java.lang.Boolean getMailPollingEnabled()
           
 java.lang.Boolean getMainAttachmentEnabled()
           
 java.lang.Integer getMaxOnlineMessagesCount()
           
 java.lang.Boolean getMergeSubjectBody()
           
 AccessModeItem getMessageInstanceAcl(it.neverworks.security.User user)
           
 java.util.Date getModified()
           
 it.neverworks.security.User getModifiedBy()
           
 java.lang.String getName()
           
 java.lang.Boolean getNeddRebuildPermissions()
           
 java.lang.Boolean getOutAttachmentMandatory()
           
 java.lang.String getOutPassword()
           
 java.lang.String getOutServer()
           
 java.lang.Integer getOutServerPort()
           
 MessageBox.SecureType getOutServerSecure()
           
 java.lang.String getOutUsername()
           
 it.neverworks.security.User getOwner()
           
 Partition getPartition()
           
 java.lang.Boolean getPec()
           
 java.util.List<MessageBoxPermission> getPermissions()
           
 java.lang.Long getRecipientsLimit()
           
 java.lang.Boolean getShared()
           
 java.util.List<Organization> getSharingOrganizations()
           
 java.lang.Boolean getShowInAccount()
           
 java.util.List<Signature> getSignatures()
           
 java.util.List<SmartRule> getSmartrules()
           
 FileSpecial getSpecialFolder()
           
 Storyboard getStoryboardByCode(java.lang.String storyboardCode)
           
 java.util.List<Storyboard> getStoryboards()
           
 java.util.List<MailTemplate> getTemplates()
           
 java.lang.Boolean getToMandatory()
           
 MessageBox.TransportType getTransportType()
           
 int hashCode()
           
 boolean isEnabledTo(it.neverworks.security.User user)
           
 boolean isPecEmailEnabled()
           
 boolean isSharedTo(it.neverworks.security.User user)
           
 boolean isValid()
           
 void removePermission(MessageBoxPermission permission)
           
 void removeSharingOrganization(Organization organization)
           
 void removeStoryboard(Storyboard storyboard)
           
 void saveMessageBox()
           
 void setAttachmentMbLimit(java.lang.Long attachmentMbLimit)
           
 void setChanges(java.util.Map<java.lang.String,java.lang.Object> changes)
           
 void setCreated(java.util.Date created)
           
 void setCreatedBy(it.neverworks.security.User createdBy)
           
 void setDefaultFolder(File defaultFolder)
           
 void setDescription(java.lang.String description)
           
 void setDocumentManager(DocumentManager documentManager)
           
 void setEmail(java.lang.String email)
           
 void setEntities(it.neverworks.data.EntityManager entities)
           
 void setFullName(java.lang.String fullName)
           
 void setHtmlEnabled(java.lang.Boolean htmlEnabled)
           
 void setId(java.lang.Long id)
           
 void setInboundStoryboard(Storyboard inboundStoryboard)
           
 void setInPassword(java.lang.String inPassword)
           
 void setInServer(java.lang.String inServer)
           
 void setInServerPort(java.lang.Integer inServerPort)
           
 void setInServerSecure(MessageBox.SecureType inServerSecure)
           
 void setInServerType(MessageBox.ServerType inServerType)
           
 void setInteroperabilityType(MessageBox.InteroperabilityType interoperabilityType)
           
 void setInUsername(java.lang.String inUsername)
           
 void setMailCheckSeconds(java.lang.Integer mailCheckSeconds)
           
 void setMailPollingEnabled(java.lang.Boolean mailPollingEnabled)
           
 void setMainAttachmentEnabled(java.lang.Boolean mainAttachmentEnabled)
           
 void setMaxOnlineMessagesCount(java.lang.Integer maxOnlineMessagesCount)
           
 void setMergeSubjectBody(java.lang.Boolean mergeSubjectBody)
           
 void setModified(java.util.Date modified)
           
 void setModifiedBy(it.neverworks.security.User modifiedBy)
           
 void setName(java.lang.String name)
           
 void setNeddRebuildPermissions(java.lang.Boolean neddRebuildPermissions)
           
 void setOutAttachmentMandatory(java.lang.Boolean outAttachmentMandatory)
           
 void setOutPassword(java.lang.String outPassword)
           
 void setOutServer(java.lang.String outServer)
           
 void setOutServerPort(java.lang.Integer outServerPort)
           
 void setOutServerSecure(MessageBox.SecureType outServerSecure)
           
 void setOutUsername(java.lang.String outUsername)
           
 void setOwner(it.neverworks.security.User owner)
           
 void setPartition(Partition partition)
           
 void setPec(java.lang.Boolean pec)
           
 void setPermissions(java.util.List<MessageBoxPermission> permissions)
           
 void setRecipientsLimit(java.lang.Long recipientsLimit)
           
 void setShared(java.lang.Boolean shared)
           
 void setSharingOrganizations(java.util.List<Organization> sharingOrganizations)
           
 void setShowInAccount(java.lang.Boolean showInAccount)
           
 void setSignatures(java.util.List<Signature> signatures)
           
 void setSmartrules(java.util.List<SmartRule> smartrules)
           
 void setSpecialFolder(FileSpecial specialFolder)
           
 void setStoryboards(java.util.List<Storyboard> storyboards)
           
 void setTemplates(java.util.List<MailTemplate> templates)
           
 void setToMandatory(java.lang.Boolean toMandatory)
           
 void setTransportType(MessageBox.TransportType transportType)
           
 it.neverworks.application.data.tracking.Log toLog()
           
 java.lang.String toString()
           
 java.lang.String validityMessage()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAFT

public static final java.lang.String DRAFT
See Also:
Constant Field Values

INBOX

public static final java.lang.String INBOX
See Also:
Constant Field Values

OUTBOX

public static final java.lang.String OUTBOX
See Also:
Constant Field Values

UNSENTOUTBOX

public static final java.lang.String UNSENTOUTBOX
See Also:
Constant Field Values

TRASH

public static final java.lang.String TRASH
See Also:
Constant Field Values

ATTACHMENTS

public static final java.lang.String ATTACHMENTS
See Also:
Constant Field Values

ARCHIVES

public static final java.lang.String ARCHIVES
See Also:
Constant Field Values

SERVICEMESSAGES

public static final java.lang.String SERVICEMESSAGES
See Also:
Constant Field Values

id

protected java.lang.Long id

created

protected java.util.Date created

createdBy

protected it.neverworks.security.User createdBy

modified

protected java.util.Date modified

modifiedBy

protected it.neverworks.security.User modifiedBy

partition

protected Partition partition

name

protected java.lang.String name

fullName

protected java.lang.String fullName

description

protected java.lang.String description

transportType

protected MessageBox.TransportType transportType

attachmentMbLimit

protected java.lang.Long attachmentMbLimit

recipientsLimit

protected java.lang.Long recipientsLimit

inServer

protected java.lang.String inServer

inServerPort

protected java.lang.Integer inServerPort

inServerType

protected MessageBox.ServerType inServerType

inServerSecure

protected MessageBox.SecureType inServerSecure

inUsername

protected java.lang.String inUsername

inPassword

protected java.lang.String inPassword

email

protected java.lang.String email

mailCheckSeconds

protected java.lang.Integer mailCheckSeconds

outServer

protected java.lang.String outServer

outServerPort

protected java.lang.Integer outServerPort

outServerSecure

protected MessageBox.SecureType outServerSecure

outUsername

protected java.lang.String outUsername

outPassword

protected java.lang.String outPassword

interoperabilityType

protected MessageBox.InteroperabilityType interoperabilityType

owner

protected it.neverworks.security.User owner

defaultFolder

protected File defaultFolder

specialFolder

protected FileSpecial specialFolder

storyboards

protected java.util.List<Storyboard> storyboards

signatures

protected java.util.List<Signature> signatures

templates

protected java.util.List<MailTemplate> templates

inboundStoryboard

protected Storyboard inboundStoryboard

permissions

protected java.util.List<MessageBoxPermission> permissions

smartrules

protected java.util.List<SmartRule> smartrules

sharingOrganizations

protected java.util.List<Organization> sharingOrganizations

maxOnlineMessagesCount

protected java.lang.Integer maxOnlineMessagesCount

entities

it.neverworks.data.EntityManager entities

documentManager

DocumentManager documentManager
Constructor Detail

MessageBox

public MessageBox()
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getCreated

public java.util.Date getCreated()
Specified by:
getCreated in interface it.neverworks.application.model.CreationAuditable

setCreated

public void setCreated(java.util.Date created)
Specified by:
setCreated in interface it.neverworks.application.model.CreationAuditable

getCreatedBy

public it.neverworks.security.User getCreatedBy()
Specified by:
getCreatedBy in interface it.neverworks.application.model.CreationAuditable

setCreatedBy

public void setCreatedBy(it.neverworks.security.User createdBy)
Specified by:
setCreatedBy in interface it.neverworks.application.model.CreationAuditable

getModified

public java.util.Date getModified()
Specified by:
getModified in interface it.neverworks.application.model.ModificationAuditable

setModified

public void setModified(java.util.Date modified)
Specified by:
setModified in interface it.neverworks.application.model.ModificationAuditable

getModifiedBy

public it.neverworks.security.User getModifiedBy()
Specified by:
getModifiedBy in interface it.neverworks.application.model.ModificationAuditable

setModifiedBy

public void setModifiedBy(it.neverworks.security.User modifiedBy)
Specified by:
setModifiedBy in interface it.neverworks.application.model.ModificationAuditable

getPartition

public Partition getPartition()
Specified by:
getPartition in interface PartitionAttribute

setPartition

public void setPartition(Partition partition)
Specified by:
setPartition in interface PartitionAttribute

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getFullName

public java.lang.String getFullName()

setFullName

public void setFullName(java.lang.String fullName)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getMailEnabled

public java.lang.Boolean getMailEnabled()

getHtmlEnabled

public java.lang.Boolean getHtmlEnabled()

setHtmlEnabled

public void setHtmlEnabled(java.lang.Boolean htmlEnabled)

getToMandatory

public java.lang.Boolean getToMandatory()

setToMandatory

public void setToMandatory(java.lang.Boolean toMandatory)

getTransportType

public MessageBox.TransportType getTransportType()

setTransportType

public void setTransportType(MessageBox.TransportType transportType)

getMailPollingEnabled

public java.lang.Boolean getMailPollingEnabled()

setMailPollingEnabled

public void setMailPollingEnabled(java.lang.Boolean mailPollingEnabled)

getPec

public java.lang.Boolean getPec()

setPec

public void setPec(java.lang.Boolean pec)

getAttachmentMbLimit

public java.lang.Long getAttachmentMbLimit()

setAttachmentMbLimit

public void setAttachmentMbLimit(java.lang.Long attachmentMbLimit)

getShared

public java.lang.Boolean getShared()

setShared

public void setShared(java.lang.Boolean shared)

getNeddRebuildPermissions

public java.lang.Boolean getNeddRebuildPermissions()

setNeddRebuildPermissions

public void setNeddRebuildPermissions(java.lang.Boolean neddRebuildPermissions)

getShowInAccount

public java.lang.Boolean getShowInAccount()

setShowInAccount

public void setShowInAccount(java.lang.Boolean showInAccount)

getMergeSubjectBody

public java.lang.Boolean getMergeSubjectBody()

setMergeSubjectBody

public void setMergeSubjectBody(java.lang.Boolean mergeSubjectBody)

getMainAttachmentEnabled

public java.lang.Boolean getMainAttachmentEnabled()

setMainAttachmentEnabled

public void setMainAttachmentEnabled(java.lang.Boolean mainAttachmentEnabled)

getInServer

public java.lang.String getInServer()

setInServer

public void setInServer(java.lang.String inServer)

getInServerPort

public java.lang.Integer getInServerPort()

setInServerPort

public void setInServerPort(java.lang.Integer inServerPort)

getInServerType

public MessageBox.ServerType getInServerType()

setInServerType

public void setInServerType(MessageBox.ServerType inServerType)

getInServerSecure

public MessageBox.SecureType getInServerSecure()

setInServerSecure

public void setInServerSecure(MessageBox.SecureType inServerSecure)

getInUsername

public java.lang.String getInUsername()

setInUsername

public void setInUsername(java.lang.String inUsername)

getInPassword

public java.lang.String getInPassword()

setInPassword

public void setInPassword(java.lang.String inPassword)

getRecipientsLimit

public java.lang.Long getRecipientsLimit()

setRecipientsLimit

public void setRecipientsLimit(java.lang.Long recipientsLimit)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getMailCheckSeconds

public java.lang.Integer getMailCheckSeconds()

setMailCheckSeconds

public void setMailCheckSeconds(java.lang.Integer mailCheckSeconds)

getOutServer

public java.lang.String getOutServer()

setOutServer

public void setOutServer(java.lang.String outServer)

getOutServerPort

public java.lang.Integer getOutServerPort()

setOutServerPort

public void setOutServerPort(java.lang.Integer outServerPort)

getOutServerSecure

public MessageBox.SecureType getOutServerSecure()

setOutServerSecure

public void setOutServerSecure(MessageBox.SecureType outServerSecure)

getOutUsername

public java.lang.String getOutUsername()

setOutUsername

public void setOutUsername(java.lang.String outUsername)

getOutPassword

public java.lang.String getOutPassword()

setOutPassword

public void setOutPassword(java.lang.String outPassword)

getOutAttachmentMandatory

public java.lang.Boolean getOutAttachmentMandatory()

setOutAttachmentMandatory

public void setOutAttachmentMandatory(java.lang.Boolean outAttachmentMandatory)

getInteroperabilityType

public MessageBox.InteroperabilityType getInteroperabilityType()

setInteroperabilityType

public void setInteroperabilityType(MessageBox.InteroperabilityType interoperabilityType)

getOwner

public it.neverworks.security.User getOwner()

setOwner

public void setOwner(it.neverworks.security.User owner)

getDefaultFolder

public File getDefaultFolder()

setDefaultFolder

public void setDefaultFolder(File defaultFolder)

getSpecialFolder

public FileSpecial getSpecialFolder()

setSpecialFolder

public void setSpecialFolder(FileSpecial specialFolder)

getStoryboards

public java.util.List<Storyboard> getStoryboards()

setStoryboards

public void setStoryboards(java.util.List<Storyboard> storyboards)

addStoryboard

public void addStoryboard(Storyboard storyboard)

removeStoryboard

public void removeStoryboard(Storyboard storyboard)

getStoryboardByCode

public Storyboard getStoryboardByCode(java.lang.String storyboardCode)

getSignatures

public java.util.List<Signature> getSignatures()

addSignature

public void addSignature(Signature signature)

setSignatures

public void setSignatures(java.util.List<Signature> signatures)

getTemplates

public java.util.List<MailTemplate> getTemplates()

addTemplates

public void addTemplates(MailTemplate template)

setTemplates

public void setTemplates(java.util.List<MailTemplate> templates)

getInboundStoryboard

public Storyboard getInboundStoryboard()

setInboundStoryboard

public void setInboundStoryboard(Storyboard inboundStoryboard)

getPermissions

public java.util.List<MessageBoxPermission> getPermissions()

setPermissions

public void setPermissions(java.util.List<MessageBoxPermission> permissions)

addPermission

public void addPermission(MessageBoxPermission permission)

removePermission

public void removePermission(MessageBoxPermission permission)

getSmartrules

public java.util.List<SmartRule> getSmartrules()

setSmartrules

public void setSmartrules(java.util.List<SmartRule> smartrules)

getSharingOrganizations

public java.util.List<Organization> getSharingOrganizations()

setSharingOrganizations

public void setSharingOrganizations(java.util.List<Organization> sharingOrganizations)

addSharingOrganization

public void addSharingOrganization(Organization organization)

removeSharingOrganization

public void removeSharingOrganization(Organization organization)

getMaxOnlineMessagesCount

public java.lang.Integer getMaxOnlineMessagesCount()

setMaxOnlineMessagesCount

public void setMaxOnlineMessagesCount(java.lang.Integer maxOnlineMessagesCount)

getChanges

public java.util.Map<java.lang.String,java.lang.Object> getChanges()

setChanges

public void setChanges(java.util.Map<java.lang.String,java.lang.Object> changes)

addChange

public void addChange(java.lang.String key,
                      java.lang.Object change)

addMultiChange

public void addMultiChange(java.lang.String key,
                           java.lang.Object change)

validityMessage

public java.lang.String validityMessage()

checkValidity

public void checkValidity()

isValid

public boolean isValid()

isSharedTo

public boolean isSharedTo(it.neverworks.security.User user)

isEnabledTo

public boolean isEnabledTo(it.neverworks.security.User user)

getMessageInstanceAcl

public AccessModeItem getMessageInstanceAcl(it.neverworks.security.User user)

getFolderDraft

public File getFolderDraft()

getFolderTrash

public File getFolderTrash()

getFolderInbox

public File getFolderInbox()

getFolderOutbox

public File getFolderOutbox()

getFolderUnsentOutbox

public File getFolderUnsentOutbox()

getFolderAttachments

public File getFolderAttachments()

getFolderArchives

public File getFolderArchives()

getFolderServiceMessages

public File getFolderServiceMessages()

isPecEmailEnabled

public boolean isPecEmailEnabled()

createMessageBox

public void createMessageBox()

saveMessageBox

public void saveMessageBox()

deleteMessageBox

public void deleteMessageBox()

setEntities

public void setEntities(it.neverworks.data.EntityManager entities)

setDocumentManager

public void setDocumentManager(DocumentManager documentManager)

toLog

public it.neverworks.application.data.tracking.Log toLog()
Specified by:
toLog in interface it.neverworks.application.data.tracking.Loggable

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object