Class WebDavServiceImpl

java.lang.Object
org.craftercms.studio.impl.v1.service.webdav.WebDavServiceImpl
All Implemented Interfaces:
WebDavService

@Deprecated public class WebDavServiceImpl extends Object implements WebDavService
Deprecated.
This service has been replaced by WebDavServiceImpl
Default implementation of WebDavService.
Author:
joseross
  • Field Details

  • Constructor Details

    • WebDavServiceImpl

      public WebDavServiceImpl()
      Deprecated.
  • Method Details

    • setProfileLoader

      public void setProfileLoader(SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> profileLoader)
      Deprecated.
    • getProfile

      protected org.craftercms.commons.config.profiles.webdav.WebDavProfile getProfile(String site, String profileId) throws WebDavException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
      Deprecated.
      Throws:
      WebDavException
      org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
    • list

      public 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.
      Specified by:
      list in interface WebDavService
      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
    • getUrl

      protected String getUrl(com.github.sardine.DavResource resource, String baseUrl, String deliveryUrl, String basePath)
      Deprecated.
    • getName

      protected String getName(com.github.sardine.DavResource resource)
      Deprecated.
    • upload

      public 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.
      Specified by:
      upload in interface WebDavService
      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