Interface WebDavService
-
- All Known Implementing Classes:
WebDavServiceImpl
public interface WebDavServiceDefines the operations available for a WebDAV server.- Since:
- 3.1.4
- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<WebDavItem>list(String siteId, String profileId, String path, String type)Lists resources in the specified path.WebDavItemupload(String siteId, String profileId, String path, String filename, InputStream content)Uploads a file in the specified path.
-
-
-
Method Detail
-
list
List<WebDavItem> list(String siteId, String profileId, String path, String type) throws WebDavException, SiteNotFoundException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
Lists resources in the specified path.- Parameters:
siteId- the id of the siteprofileId- the id of the profilepath- the relative path to listtype- mime type used for filtering- Returns:
- list of resources found
- Throws:
WebDavException- if there is an error connecting to the server or listing the resourcesSiteNotFoundException- if the site is not foundorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException- if the profile is not found
-
upload
WebDavItem upload(String siteId, String profileId, String path, String filename, InputStream content) throws WebDavException, SiteNotFoundException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
Uploads a file in the specified path.- Parameters:
siteId- the id of the siteprofileId- the id of the profilepath- the relative path to upload the filefilename- the name of the file to uploadcontent- stream providing the content of the file- Returns:
- the uploaded item
- Throws:
WebDavException- if there is an error connecting to the server or uploading the fileSiteNotFoundException- if the site is not foundorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException- if the profile is not found
-
-