|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.cm.mailbox.MailboxImpl
public class MailboxImpl
Mailbox implementation using a document model as backend.
Constructor Summary | |
---|---|
MailboxImpl(org.nuxeo.ecm.core.api.DocumentModel doc)
|
Method Summary | |
---|---|
void |
addMailingList(MailingList ml)
|
void |
addParticipantList(ParticipantsList mailinglist)
Add the given mailing list to this mailbox |
int |
compareTo(Mailbox other)
|
String |
getAffiliatedMailboxId()
|
List<String> |
getAllUsers()
Gets the list of member users of this mailbox. |
List<String> |
getAllUsersAndGroups()
|
List<String> |
getChildrenIds(org.nuxeo.ecm.core.api.CoreSession session)
Returns the children ids of this mailbox |
Integer |
getConfidentiality()
|
String |
getDescription()
Returns description of the mailbox. |
org.nuxeo.ecm.core.api.DocumentModel |
getDocument()
Returns the document model representing this mailbox. |
List<String> |
getFavorites()
Gets the list of mailbox ids used as favorites |
List<String> |
getGroups()
Gets the list of member groups of this mailbox. |
String |
getId()
Returns the mailbox identifier. |
Calendar |
getLastSyncUpdate()
|
List<String> |
getMailingListIds()
|
List<MailingList> |
getMailingLists()
Gets the list of MailingList objects of this mailbox. |
MailingList |
getMailingListTemplate()
Returns a new bare mailing list |
List<String> |
getNotifiedUsers()
Gets a users sublist of delegates that should be notified when new casemanagement has arrived in this mailbox. |
String |
getOrigin()
|
String |
getOwner()
Returns owner of the mailbox. |
String |
getParentId(org.nuxeo.ecm.core.api.CoreSession session)
Returns the parentId of this mailbox |
List<String> |
getParticipantListIds()
Gets the id list of mailing lists of this mailbox. |
List<ParticipantsList> |
getParticipantLists()
Gets the list of ParticipantsList objects of this mailbox. |
ParticipantsList |
getParticipantListTemplate()
Returns a new bare mailing list. |
List<String> |
getProfiles()
Gets profiles for this mailbox |
String |
getSynchronizerId()
|
String |
getSynchronizeState()
|
String |
getTitle()
Returns title of the mailbox. |
String |
getType()
Returns type of the mailbox. |
List<String> |
getUsers()
Gets the list of users (delegates) of this mailbox. |
boolean |
hasProfile(String profile)
Returns true if mailbox has given profile. |
Boolean |
isSynchronized()
|
void |
removeMailingList(String mailingListId)
Removes mailing list with given id from this mailbox. |
void |
removeParticipantList(String mailinglistId)
Removes mailing list with given id from this mailbox. |
void |
save(org.nuxeo.ecm.core.api.CoreSession session)
Persist the Mailbox |
void |
setAffiliatedMailboxId(String mbid)
Sets the affiliated mailbox id. |
void |
setConfidentiality(Integer confidentiality)
Sets the default confidentiality for icoming mails for this mailbox. |
void |
setDescription(String description)
Sets description of the mailbox. |
void |
setFavorites(List<String> favorites)
Sets the list of mailbox ids used as favorites |
void |
setGroups(List<String> groups)
Sets the list of member groups for this mailbox. |
void |
setId(String id)
Sets id of the mailbox. |
void |
setLastSyncUpdate(Calendar now)
Sets the last time this mailbox has been updated by the synchronziation service. |
void |
setNotifiedUsers(List<String> users)
Sets a users sublist of delegates that should be notified when new casemanagement has arrived in this mailbox. |
void |
setOrigin(String origin)
Sets the origin of the Mailbox. |
void |
setOwner(String owner)
Sets owner of the mailbox. |
void |
setProfiles(List<String> profiles)
Sets profiles for this mailbox |
void |
setSynchronizerId(String synchronizerId)
Set the given string parameter as mailbox's synchronizer ID. |
void |
setSynchronizeState(String state)
Sets synchronize state of the mailbox |
void |
setTitle(String title)
Sets title of the mailbox. |
void |
setType(String type)
Sets type of the mailbox. |
void |
setUsers(List<String> users)
Sets the list of users for this mailbox. |
Mailbox |
updateMailingList(MailingList currentMailingList)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailboxImpl(org.nuxeo.ecm.core.api.DocumentModel doc)
Method Detail |
---|
public org.nuxeo.ecm.core.api.DocumentModel getDocument()
Mailbox
getDocument
in interface Mailbox
public MailingList getMailingListTemplate()
Mailbox
getMailingListTemplate
in interface Mailbox
public void addMailingList(MailingList ml)
addMailingList
in interface Mailbox
public List<String> getUsers()
Mailbox
getUsers
in interface Mailbox
public String getDescription()
Mailbox
getDescription
in interface Mailbox
public List<String> getFavorites() throws CaseManagementException
Mailbox
getFavorites
in interface Mailbox
CaseManagementException
public List<String> getGroups()
Mailbox
getGroups
in interface Mailbox
public String getId()
Mailbox
getId
in interface Mailbox
public void setId(String id)
Mailbox
setId
in interface Mailbox
public List<String> getMailingListIds()
getMailingListIds
in interface Mailbox
public List<MailingList> getMailingLists()
Mailbox
MailingList
objects of this mailbox.
getMailingLists
in interface Mailbox
public Mailbox updateMailingList(MailingList currentMailingList)
updateMailingList
in interface Mailbox
public List<String> getNotifiedUsers()
Mailbox
getNotifiedUsers
in interface Mailbox
public String getOwner()
Mailbox
getOwner
in interface Mailbox
public List<String> getProfiles()
Mailbox
getProfiles
in interface Mailbox
public String getTitle()
Mailbox
getTitle
in interface Mailbox
public String getType()
Mailbox
getType
in interface Mailbox
public List<String> getAllUsers()
Mailbox
Contains delegates and owner.
getAllUsers
in interface Mailbox
public boolean hasProfile(String profile)
Mailbox
hasProfile
in interface Mailbox
public void removeMailingList(String mailingListId)
Mailbox
removeMailingList
in interface Mailbox
public void setUsers(List<String> users)
Mailbox
setUsers
in interface Mailbox
public void setDescription(String description)
Mailbox
setDescription
in interface Mailbox
public void setFavorites(List<String> favorites) throws CaseManagementException
Mailbox
setFavorites
in interface Mailbox
CaseManagementException
public void setGroups(List<String> groups)
Mailbox
setGroups
in interface Mailbox
public void setNotifiedUsers(List<String> users)
Mailbox
setNotifiedUsers
in interface Mailbox
public void setOwner(String owner)
Mailbox
setOwner
in interface Mailbox
public void setProfiles(List<String> profiles)
Mailbox
setProfiles
in interface Mailbox
public void setTitle(String title)
Mailbox
setTitle
in interface Mailbox
public void setType(String type)
Mailbox
setType
in interface Mailbox
public void setConfidentiality(Integer confidentiality)
Mailbox
setConfidentiality
in interface Mailbox
public Integer getConfidentiality()
getConfidentiality
in interface Mailbox
public int compareTo(Mailbox other)
compareTo
in interface Comparable<Mailbox>
public void save(org.nuxeo.ecm.core.api.CoreSession session)
Mailbox
save
in interface Mailbox
public String getParentId(org.nuxeo.ecm.core.api.CoreSession session)
Mailbox
getParentId
in interface Mailbox
public List<String> getChildrenIds(org.nuxeo.ecm.core.api.CoreSession session)
Mailbox
getChildrenIds
in interface Mailbox
public List<String> getAllUsersAndGroups()
getAllUsersAndGroups
in interface Mailbox
public String getAffiliatedMailboxId()
getAffiliatedMailboxId
in interface Mailbox
public void setAffiliatedMailboxId(String mbid)
Mailbox
setAffiliatedMailboxId
in interface Mailbox
public String getSynchronizeState()
getSynchronizeState
in interface Mailbox
public void setSynchronizeState(String state)
Mailbox
setSynchronizeState
in interface Mailbox
public Boolean isSynchronized()
isSynchronized
in interface Mailbox
public String getSynchronizerId()
getSynchronizerId
in interface Mailbox
public void setSynchronizerId(String synchronizerId)
Mailbox
setSynchronizerId
in interface Mailbox
public Calendar getLastSyncUpdate()
getLastSyncUpdate
in interface Mailbox
public void setLastSyncUpdate(Calendar now)
Mailbox
setLastSyncUpdate
in interface Mailbox
public String getOrigin()
getOrigin
in interface Mailbox
public void setOrigin(String origin)
Mailbox
setOrigin
in interface Mailbox
public List<String> getParticipantListIds()
Mailbox
getParticipantListIds
in interface Mailbox
public List<ParticipantsList> getParticipantLists()
Mailbox
ParticipantsList
objects of this mailbox.
getParticipantLists
in interface Mailbox
public ParticipantsList getParticipantListTemplate()
Mailbox
getParticipantListTemplate
in interface Mailbox
public void addParticipantList(ParticipantsList mailinglist)
Mailbox
addParticipantList
in interface Mailbox
mailinglist
- the mailing list to addpublic void removeParticipantList(String mailinglistId)
Mailbox
removeParticipantList
in interface Mailbox
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |