Nuxeo Enterprise Platform 5.4

org.nuxeo.correspondence.core.link
Class MailToMailLinkImpl

java.lang.Object
  extended by org.nuxeo.correspondence.core.link.AbstractLink
      extended by org.nuxeo.correspondence.core.link.MailToMailLinkImpl
All Implemented Interfaces:
CommonLink, MailToMailLink

public class MailToMailLinkImpl
extends AbstractLink
implements MailToMailLink

Author:
ldoguin

Constructor Summary
MailToMailLinkImpl(org.nuxeo.ecm.core.api.DocumentModel doc)
           
 
Method Summary
 void addAllMailToMailLink(List<CorrespondenceLink> links)
          Add the list of given mail to mail links.
 void addMailToMailLink(CorrespondenceLink link)
          Add the given mail to mail link.
 CorrespondenceLink getLink(String targetDocId)
           
 List<CorrespondenceLink> getMailToMailLink()
           
 void removeMailToMailLink(CorrespondenceLink link)
          remove the given link.
 void resetMailToMailLink()
          Remove all mail to mail links.
 
Methods inherited from class org.nuxeo.correspondence.core.link.AbstractLink
removeCorrespondenceLink, save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.correspondence.link.CommonLink
save
 

Constructor Detail

MailToMailLinkImpl

public MailToMailLinkImpl(org.nuxeo.ecm.core.api.DocumentModel doc)
Method Detail

getMailToMailLink

public List<CorrespondenceLink> getMailToMailLink()
Specified by:
getMailToMailLink in interface MailToMailLink
Returns:
the list of mail to mail CorrespondenceLink.

resetMailToMailLink

public void resetMailToMailLink()
Description copied from interface: MailToMailLink
Remove all mail to mail links.

Specified by:
resetMailToMailLink in interface MailToMailLink

addMailToMailLink

public void addMailToMailLink(CorrespondenceLink link)
Description copied from interface: MailToMailLink
Add the given mail to mail link.

Specified by:
addMailToMailLink in interface MailToMailLink

addAllMailToMailLink

public void addAllMailToMailLink(List<CorrespondenceLink> links)
Description copied from interface: MailToMailLink
Add the list of given mail to mail links.

Specified by:
addAllMailToMailLink in interface MailToMailLink

getLink

public CorrespondenceLink getLink(String targetDocId)
Specified by:
getLink in interface CommonLink
Parameters:
targetDocId - is the linked mail doc id.
Returns:
the existing link or null if it doesn't exist.

removeMailToMailLink

public void removeMailToMailLink(CorrespondenceLink link)
Description copied from interface: MailToMailLink
remove the given link.

Specified by:
removeMailToMailLink in interface MailToMailLink

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.