public interface FileServiceProvider
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdateResources(FileWorkArea workArea,
List<File> files,
boolean removeFilesFromWorkArea)
Takes in a work area and application type and moves all of the files to the configured FileProvider.
|
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
- applicationTypevoid addOrUpdateResources(FileWorkArea workArea, List<File> files, boolean removeFilesFromWorkArea)
workArea
- applicationType
- boolean removeResource(String name)
name
- - fully qualified path to the resourceCopyright © 2014. All rights reserved.