Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.caselink
Class CaseLinkImpl

java.lang.Object
  extended by org.nuxeo.cm.caselink.CaseLinkImpl
All Implemented Interfaces:
Serializable, CaseLink, HasParticipants
Direct Known Subclasses:
ActionableCaseLinkImpl

public class CaseLinkImpl
extends Object
implements CaseLink

Author:
Alexandre Russel
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuxeo.cm.caselink.CaseLink
CaseLink.CaseLinkState, CaseLink.CaseLinkTransistion
 
Constructor Summary
CaseLinkImpl(org.nuxeo.ecm.core.api.DocumentModel doc, HasParticipants recipientAdapted)
           
 
Method Summary
 void addInitialExternalParticipants(Map<String,List<String>> recipients)
          Adds to the list of initial external recipients.
 void addInitialInternalParticipants(Map<String,List<String>> recipients)
          Adds to the list of initial internal recipients.
 void addParticipants(Map<String,List<String>> recipients)
          Adds to the list of recipients.
 Map<String,List<String>> getAllParticipants()
          Gets the list of all recipients keyed by type.
 Case getCase(org.nuxeo.ecm.core.api.CoreSession session)
          The mail envelope sent.
 String getComment()
          Gets the comment.
 Date getDate()
          Gets the date.
 org.nuxeo.ecm.core.api.DocumentModel getDocument()
          Gets the document model.
 String getId()
          Gets the id of the post.
 Map<String,List<String>> getInitialExternalParticipants()
          Gets the list of initial external recipients keyed by type.
 Map<String,List<String>> getInitialInternalParticipants()
          Gets the list of initial internal recipients keyed by type.
 String getSender()
          Gets the sender.
 String getSenderMailboxId()
          Gets the sender mailbox id.
 Date getSentDate()
          Gets the send date of the post.
 String getSubject()
          Gets the subject.
 String getType()
          Gets the type of the message.
 boolean isActionnable()
           
 boolean isDraft()
          Is it a draft?
 boolean isRead()
          Returns true if this message has been read.
 void save(org.nuxeo.ecm.core.api.CoreSession session)
          Persists the post.
 void setActionnable(boolean actionnable)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseLinkImpl

public CaseLinkImpl(org.nuxeo.ecm.core.api.DocumentModel doc,
                    HasParticipants recipientAdapted)
Method Detail

getComment

public String getComment()
Description copied from interface: CaseLink
Gets the comment.

Specified by:
getComment in interface CaseLink

getDate

public Date getDate()
Description copied from interface: CaseLink
Gets the date.

Specified by:
getDate in interface CaseLink

getCase

public Case getCase(org.nuxeo.ecm.core.api.CoreSession session)
Description copied from interface: CaseLink
The mail envelope sent.

Specified by:
getCase in interface CaseLink

getId

public String getId()
Description copied from interface: CaseLink
Gets the id of the post.

Specified by:
getId in interface CaseLink

getSender

public String getSender()
Description copied from interface: CaseLink
Gets the sender.

Specified by:
getSender in interface CaseLink

getSubject

public String getSubject()
Description copied from interface: CaseLink
Gets the subject.

Specified by:
getSubject in interface CaseLink

getSenderMailboxId

public String getSenderMailboxId()
Description copied from interface: CaseLink
Gets the sender mailbox id.

Specified by:
getSenderMailboxId in interface CaseLink

getSentDate

public Date getSentDate()
Description copied from interface: CaseLink
Gets the send date of the post.

Specified by:
getSentDate in interface CaseLink

getType

public String getType()
Description copied from interface: CaseLink
Gets the type of the message.

Specified by:
getType in interface CaseLink

isRead

public boolean isRead()
Description copied from interface: CaseLink
Returns true if this message has been read.

Specified by:
isRead in interface CaseLink

save

public void save(org.nuxeo.ecm.core.api.CoreSession session)
Description copied from interface: CaseLink
Persists the post.

Specified by:
save in interface CaseLink

getDocument

public org.nuxeo.ecm.core.api.DocumentModel getDocument()
Description copied from interface: CaseLink
Gets the document model.

Specified by:
getDocument in interface CaseLink

isDraft

public boolean isDraft()
Description copied from interface: CaseLink
Is it a draft?

Specified by:
isDraft in interface CaseLink

addInitialExternalParticipants

public void addInitialExternalParticipants(Map<String,List<String>> recipients)
Description copied from interface: HasParticipants
Adds to the list of initial external recipients.

Specified by:
addInitialExternalParticipants in interface HasParticipants
Parameters:
recipients - A map keyed with the message type and valued with a list of Mailbox

addInitialInternalParticipants

public void addInitialInternalParticipants(Map<String,List<String>> recipients)
Description copied from interface: HasParticipants
Adds to the list of initial internal recipients.

Specified by:
addInitialInternalParticipants in interface HasParticipants
Parameters:
recipients - A map keyed with the message type and valued with a list of Mailbox

addParticipants

public void addParticipants(Map<String,List<String>> recipients)
Description copied from interface: HasParticipants
Adds to the list of recipients.

Specified by:
addParticipants in interface HasParticipants
Parameters:
recipients - A map keyed with the message type and valued with a list of Mailbox

getAllParticipants

public Map<String,List<String>> getAllParticipants()
Description copied from interface: HasParticipants
Gets the list of all recipients keyed by type.

Specified by:
getAllParticipants in interface HasParticipants

getInitialExternalParticipants

public Map<String,List<String>> getInitialExternalParticipants()
Description copied from interface: HasParticipants
Gets the list of initial external recipients keyed by type.

Specified by:
getInitialExternalParticipants in interface HasParticipants

getInitialInternalParticipants

public Map<String,List<String>> getInitialInternalParticipants()
Description copied from interface: HasParticipants
Gets the list of initial internal recipients keyed by type.

Specified by:
getInitialInternalParticipants in interface HasParticipants

setActionnable

public void setActionnable(boolean actionnable)
Specified by:
setActionnable in interface CaseLink

isActionnable

public boolean isActionnable()
Specified by:
isActionnable in interface CaseLink

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.