public class PathMapper extends Object
This class caches results and is thread-safe.
Constructor and Description |
---|
PathMapper()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPathMap(String sourcePath,
String targetPath)
Add a path mapping.
|
void |
clear() |
<V> Map<String,V> |
convertMap(Map<String,V> valueMap) |
Set<String> |
getMappedPaths(String sourcePath)
Gets the remapped paths for the given source path, excluding any derivative
paths i.e.
|
Set<String> |
getMappedPathsWithPartialMatch(String sourcePath)
Gets the remapped paths for the given source path, including any derivative
paths i.e.
|
boolean |
isEmpty() |
void |
lock()
Locks the instance against further modifications.
|
public void lock()
public void clear()
public void addPathMap(String sourcePath, String targetPath)
sourcePath
- the source pathtargetPath
- the target pathpublic Set<String> getMappedPaths(String sourcePath)
sourcePath
- the source pathpublic Set<String> getMappedPathsWithPartialMatch(String sourcePath)
sourcePath
- the source pathpublic boolean isEmpty()
Copyright © 2005–2020 Alfresco Software. All rights reserved.