public interface OwncloudResourceService
| Modifier and Type | Method and Description |
|---|---|
OwncloudResource |
createDirectory(URI directory)
Create a new Directory
|
void |
delete(OwncloudResource resource)
Delete a Resource.
|
Optional<OwncloudResource> |
find(URI path)
Find a specific
OwncloudResource specified by the Path of the URI |
InputStream |
getInputStream(OwncloudFileResource resource)
Get the Content of a File Resource
|
OutputStream |
getOutputStream(OwncloudFileResource resource)
Overwrite the Content of an existing File Resource
|
OutputStream |
getOutputStream(URI path,
org.springframework.http.MediaType mediaType)
Create a new File Resource or overwrite the Content of an existing File Resource
|
OwncloudQuota |
getQuota()
Get the actual Quota Information of the authenticated User
|
List<OwncloudResource> |
list(URI relativeTo)
Get all Files and Directories relative to the given Path of the URI
|
default List<OwncloudResource> |
listRoot()
Get all Files and Directories of the Root Directory of the User
|
default List<OwncloudResource> listRoot()
List<OwncloudResource> list(URI relativeTo)
relativeTo - Path relative to the User Root DirectoryOptional<OwncloudResource> find(URI path)
OwncloudResource specified by the Path of the URIpath - Path to a specific Resource (File or Directory)Optional.empty() when the Resource has not been foundOwncloudResource createDirectory(URI directory)
directory - Path of the new Directory relative to the User Root Directoryvoid delete(OwncloudResource resource)
resource - Directory or File Resource returned by listRoot(), list(URI) or find(URI)listRoot(),
list(URI),
find(URI)InputStream getInputStream(OwncloudFileResource resource)
resource - File Resource returned by listRoot(), list(URI) or find(URI)listRoot(),
list(URI),
find(URI),
OwncloudUtils.toOwncloudFileResource(OwncloudResource)OutputStream getOutputStream(OwncloudFileResource resource)
resource - existing File Resource returned by listRoot(), list(URI) or find(URI)listRoot(),
list(URI),
find(URI),
OwncloudUtils.toOwncloudFileResource(OwncloudResource)OutputStream getOutputStream(URI path, org.springframework.http.MediaType mediaType)
path - Path of the new or existing File ResourcemediaType - Media Type of the new File ResourceOwncloudQuota getQuota()
Copyright © 2016–2020 coolstuff.software. All rights reserved.