public interface FileServiceProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addOrUpdateResources(FileWorkArea workArea,
List<File> files,
boolean removeFilesFromWorkArea)
Deprecated.
|
List<String> |
addOrUpdateResourcesForPaths(FileWorkArea workArea,
List<File> files,
boolean removeFilesFromWorkArea)
Adds all of the given files and returns the resource names of all of them suitable for invoking
getResource(String) and/or removeResource(String) |
File |
getResource(String url)
Returns a File representing the passed in url.
|
File |
getResource(String url,
FileApplicationType fileApplicationType)
Returns a File representing the passed in name and application type.
|
boolean |
removeResource(String name)
Removes the resource from the file service.
|
File getResource(String url)
name - - fully qualified path to the resourceFile getResource(String url, FileApplicationType fileApplicationType)
url - - the URL-representation of the resource. This means that paths should always have / separators rather than
system-specific valuesfileApplicationType - applicationType@Deprecated void addOrUpdateResources(FileWorkArea workArea, List<File> files, boolean removeFilesFromWorkArea)
addOrUpdateResourcesForPaths(FileWorkArea, List, boolean)workArea - files - the files that should be copiedList<String> addOrUpdateResourcesForPaths(FileWorkArea workArea, List<File> files, boolean removeFilesFromWorkArea)
getResource(String) and/or removeResource(String)workArea - files - removeFilesFromWorkArea - boolean removeResource(String name)
name - - fully qualified path to the resourceCopyright © 2022. All rights reserved.