public class DocumentTranslationMapImpl extends Object implements DocumentTranslationMap
Constructor and Description |
---|
DocumentTranslationMapImpl(String oldServerName,
String newServerName) |
DocumentTranslationMapImpl(String oldServerName,
String newServerName,
Map<DocumentRef,DocumentRef> map) |
Modifier and Type | Method and Description |
---|---|
Map<DocumentRef,DocumentRef> |
getDocRefMap()
Returns the unmodifiable map of document references.
|
String |
getNewServerName()
Returns the new documents server name.
|
String |
getOldServerName()
Returns the old documents server name.
|
static DocumentTranslationMap |
merge(List<DocumentTranslationMap> maps) |
void |
put(DocumentRef oldRef,
DocumentRef newRef) |
void |
putAll(Map<DocumentRef,DocumentRef> refs) |
public DocumentTranslationMapImpl(String oldServerName, String newServerName)
public DocumentTranslationMapImpl(String oldServerName, String newServerName, Map<DocumentRef,DocumentRef> map)
public Map<DocumentRef,DocumentRef> getDocRefMap()
DocumentTranslationMap
getDocRefMap
in interface DocumentTranslationMap
public String getNewServerName()
DocumentTranslationMap
getNewServerName
in interface DocumentTranslationMap
public String getOldServerName()
DocumentTranslationMap
getOldServerName
in interface DocumentTranslationMap
public void put(DocumentRef oldRef, DocumentRef newRef)
put
in interface DocumentTranslationMap
public void putAll(Map<DocumentRef,DocumentRef> refs)
putAll
in interface DocumentTranslationMap
public static DocumentTranslationMap merge(List<DocumentTranslationMap> maps)
Copyright © 2017 Nuxeo. All rights reserved.