Interface WebDavService

All Known Implementing Classes:
WebDavServiceImpl

@Deprecated public interface WebDavService
Deprecated.
This service has been replaced by WebDavService
Defines the operations available for a WebDAV server.
Author:
joseross
  • Method Details

    • list

      List<WebDavItem> list(String site, String profileId, String path, String type) throws WebDavException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
      Deprecated.
      Lists resources in the specified path.
      Parameters:
      site - the name of the site
      profileId - the id of the profile
      path - the relative path to list
      type - mime type used for filtering
      Returns:
      list of resources found
      Throws:
      WebDavException - if there is an error connecting to the server or listing the resources
      org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException - if the profile is not found
    • upload

      String upload(String site, String profileId, String path, String filename, InputStream content) throws WebDavException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
      Deprecated.
      Uploads a file in the specified path.
      Parameters:
      site - the name of the site
      profileId - the id of the profile
      path - the relative path to upload the file
      filename - the name of the file to upload
      content - stream providing the content of the file
      Returns:
      the full URL of the uploaded file
      Throws:
      WebDavException - if there is an error connecting to the server or uploading the file
      org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException - if the profile is not found