Package org.nuxeo.ecm.core.io.impl
Class DocumentTranslationMapImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.DocumentTranslationMapImpl
-
- All Implemented Interfaces:
DocumentTranslationMap
public class DocumentTranslationMapImpl extends Object implements DocumentTranslationMap
-
-
Constructor Summary
Constructors Constructor Description DocumentTranslationMapImpl(String oldServerName, String newServerName)DocumentTranslationMapImpl(String oldServerName, String newServerName, Map<DocumentRef,DocumentRef> map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<DocumentRef,DocumentRef>getDocRefMap()Returns the unmodifiable map of document references.StringgetNewServerName()Returns the new documents server name.StringgetOldServerName()Returns the old documents server name.static DocumentTranslationMapmerge(List<DocumentTranslationMap> maps)voidput(DocumentRef oldRef, DocumentRef newRef)voidputAll(Map<DocumentRef,DocumentRef> refs)
-
-
-
Constructor Detail
-
DocumentTranslationMapImpl
public DocumentTranslationMapImpl(String oldServerName, String newServerName)
-
DocumentTranslationMapImpl
public DocumentTranslationMapImpl(String oldServerName, String newServerName, Map<DocumentRef,DocumentRef> map)
-
-
Method Detail
-
getDocRefMap
public Map<DocumentRef,DocumentRef> getDocRefMap()
Description copied from interface:DocumentTranslationMapReturns the unmodifiable map of document references.- Specified by:
getDocRefMapin interfaceDocumentTranslationMap
-
getNewServerName
public String getNewServerName()
Description copied from interface:DocumentTranslationMapReturns the new documents server name.- Specified by:
getNewServerNamein interfaceDocumentTranslationMap
-
getOldServerName
public String getOldServerName()
Description copied from interface:DocumentTranslationMapReturns the old documents server name.- Specified by:
getOldServerNamein interfaceDocumentTranslationMap
-
put
public void put(DocumentRef oldRef, DocumentRef newRef)
- Specified by:
putin interfaceDocumentTranslationMap
-
putAll
public void putAll(Map<DocumentRef,DocumentRef> refs)
- Specified by:
putAllin interfaceDocumentTranslationMap
-
merge
public static DocumentTranslationMap merge(List<DocumentTranslationMap> maps)
-
-