Class MultiPathMapping
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.api.MultiPathMapping
-
- All Implemented Interfaces:
PathMapping
public class MultiPathMapping extends java.lang.Object implements PathMapping
Implements a path mapping that supports multiple symlinks- Since:
- 3.1.10
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.PathMapping
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description MultiPathMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiPathMapping
link(java.lang.String src, java.lang.String dst)
Creates a new link from the pathsrc
to the pathdst
java.lang.String
map(java.lang.String path)
Maps the given path to a new location.java.lang.String
map(java.lang.String path, boolean reverse)
Maps the given path to a new location.MultiPathMapping
merge(MultiPathMapping base)
Merges the links from the given base mapping
-
-
-
Method Detail
-
link
public MultiPathMapping link(@Nonnull java.lang.String src, @Nonnull java.lang.String dst)
Creates a new link from the pathsrc
to the pathdst
- Parameters:
src
- source pathdst
- destination path- Returns:
- this
-
merge
@Nonnull public MultiPathMapping merge(@Nullable MultiPathMapping base)
Merges the links from the given base mapping- Parameters:
base
- base mapping- Returns:
- this
-
map
@Nonnull public java.lang.String map(@Nonnull java.lang.String path)
Maps the given path to a new location.- Specified by:
map
in interfacePathMapping
- Parameters:
path
- the path- Returns:
- the mapped path.
-
map
@Nonnull public java.lang.String map(@Nonnull java.lang.String path, boolean reverse)
Maps the given path to a new location.- Specified by:
map
in interfacePathMapping
- Parameters:
path
- the pathreverse
- iftrue
a reverse mapping is applied- Returns:
- the mapped path.
-
-