Class FileStoreHomePathPlaceholderResolver
java.lang.Object
com.atlassian.confluence.impl.filestore.FileStoreHomePathPlaceholderResolver
- All Implemented Interfaces:
HomePathPlaceholderResolver
public final class FileStoreHomePathPlaceholderResolver
extends Object
implements HomePathPlaceholderResolver
Provides a mechanism to substitute placeholders representing the various Confluence home directories.
Performs the same job as
VelocityUtil.replaceConfluenceConstants(String, File, File)
,
but returns the results as a FilesystemPath
.- Since:
- 7.14
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileStoreHomePathPlaceholderResolver
(com.atlassian.dc.filestore.api.compat.FilesystemPath localHome, com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome) -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.atlassian.dc.filestore.api.compat.FilesystemPath>
resolveFileStorePlaceHolders
(String directoryLocation) Attempt to replace any directory placeholder prefixes in the given location, resolving them against the coresponding base directory.
-
Constructor Details
-
FileStoreHomePathPlaceholderResolver
public FileStoreHomePathPlaceholderResolver(com.atlassian.dc.filestore.api.compat.FilesystemPath localHome, com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome)
-
-
Method Details
-
resolveFileStorePlaceHolders
public Optional<com.atlassian.dc.filestore.api.compat.FilesystemPath> resolveFileStorePlaceHolders(String directoryLocation) Attempt to replace any directory placeholder prefixes in the given location, resolving them against the coresponding base directory.- Specified by:
resolveFileStorePlaceHolders
in interfaceHomePathPlaceholderResolver
-