Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.io.impl
Class DocumentTranslationMapImpl

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.DocumentTranslationMapImpl
All Implemented Interfaces:
DocumentTranslationMap

public class DocumentTranslationMapImpl
extends java.lang.Object
implements DocumentTranslationMap


Constructor Summary
DocumentTranslationMapImpl(java.lang.String oldServerName, java.lang.String newServerName)
           
DocumentTranslationMapImpl(java.lang.String oldServerName, java.lang.String newServerName, java.util.Map<DocumentRef,DocumentRef> map)
           
 
Method Summary
 java.util.Map<DocumentRef,DocumentRef> getDocRefMap()
          Returns the unmodifiable map of document references.
 java.lang.String getNewServerName()
          Returns the new documents server name.
 java.lang.String getOldServerName()
          Returns the old documents server name.
static DocumentTranslationMap merge(java.util.List<DocumentTranslationMap> maps)
           
 void put(DocumentRef oldRef, DocumentRef newRef)
           
 void putAll(java.util.Map<DocumentRef,DocumentRef> refs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentTranslationMapImpl

public DocumentTranslationMapImpl(java.lang.String oldServerName,
                                  java.lang.String newServerName)

DocumentTranslationMapImpl

public DocumentTranslationMapImpl(java.lang.String oldServerName,
                                  java.lang.String newServerName,
                                  java.util.Map<DocumentRef,DocumentRef> map)
Method Detail

getDocRefMap

public java.util.Map<DocumentRef,DocumentRef> getDocRefMap()
Description copied from interface: DocumentTranslationMap
Returns the unmodifiable map of document references.

Specified by:
getDocRefMap in interface DocumentTranslationMap

getNewServerName

public java.lang.String getNewServerName()
Description copied from interface: DocumentTranslationMap
Returns the new documents server name.

Specified by:
getNewServerName in interface DocumentTranslationMap

getOldServerName

public java.lang.String getOldServerName()
Description copied from interface: DocumentTranslationMap
Returns the old documents server name.

Specified by:
getOldServerName in interface DocumentTranslationMap

put

public void put(DocumentRef oldRef,
                DocumentRef newRef)
Specified by:
put in interface DocumentTranslationMap

putAll

public void putAll(java.util.Map<DocumentRef,DocumentRef> refs)
Specified by:
putAll in interface DocumentTranslationMap

merge

public static DocumentTranslationMap merge(java.util.List<DocumentTranslationMap> maps)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.