public interface FilesystemStore
Modifier and Type | Method and Description |
---|---|
default void |
ensureParentExists(java.io.File file) |
P4OAuthConfig |
getConfig()
The stores must have access to the application configuration.
|
default java.io.File |
getFile(java.lang.String... paths)
Returns the path to the file based on our configured rootDirectory.
|
default <T> T |
readYamlFile(java.lang.Class<T> classType,
java.io.File file) |
default void |
writeYamlFile(java.lang.Object object,
java.io.File file) |
P4OAuthConfig getConfig()
default java.io.File getFile(java.lang.String... paths)
If there is no root directory configured in the system, we just generate a file from the indicated paths, which should become a relative path from the current working folder.
paths
- default void writeYamlFile(java.lang.Object object, java.io.File file) throws java.io.IOException
java.io.IOException
default <T> T readYamlFile(java.lang.Class<T> classType, java.io.File file) throws java.io.IOException
java.io.IOException
default void ensureParentExists(java.io.File file)