Nuxeo Enterprise Platform 5.4

org.nuxeo.correspondence.core.link
Class EnvelopeToMailLinkImpl

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

public class EnvelopeToMailLinkImpl
extends AbstractLink
implements EnvelopeToMailLink

Author:
ldoguin

Constructor Summary
EnvelopeToMailLinkImpl(org.nuxeo.ecm.core.api.DocumentModel doc)
           
 
Method Summary
 void addAllEnvelopeToMailLink(List<CorrespondenceLink> links)
          Add the list of given envelope to mail links.
 void addEnvelopeToMailLink(CorrespondenceLink link)
          Add the given envelope to mail link.
 List<CorrespondenceLink> getEnvelopeToMailLink()
           
 CorrespondenceLink getLink(String targetDocId)
           
 void resetEnvelopeToMailLink()
          Remove all envelope 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

EnvelopeToMailLinkImpl

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

getEnvelopeToMailLink

public List<CorrespondenceLink> getEnvelopeToMailLink()
Specified by:
getEnvelopeToMailLink in interface EnvelopeToMailLink
Returns:
the list of envelope to mail CorrespondenceLink.

resetEnvelopeToMailLink

public void resetEnvelopeToMailLink()
Description copied from interface: EnvelopeToMailLink
Remove all envelope to mail links.

Specified by:
resetEnvelopeToMailLink in interface EnvelopeToMailLink

addEnvelopeToMailLink

public void addEnvelopeToMailLink(CorrespondenceLink link)
Description copied from interface: EnvelopeToMailLink
Add the given envelope to mail link.

Specified by:
addEnvelopeToMailLink in interface EnvelopeToMailLink

addAllEnvelopeToMailLink

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

Specified by:
addAllEnvelopeToMailLink in interface EnvelopeToMailLink

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.

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.