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 byWebDavServiceImpl
Default implementation ofWebDavService
.- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected Charset
charset
Deprecated.Charset used to encode paths in URLs.static String
FILTER_ALL_ITEMS
Deprecated.protected SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile>
profileLoader
Deprecated.Instance ofSiteAwareConfigProfileLoader
used to load the configuration file.protected Set<QName>
properties
Deprecated.Properties to request to the server when listing resources.static String
PROPERTY_CONTENT_TYPE
Deprecated.static String
PROPERTY_DISPLAY_NAME
Deprecated.static String
PROPERTY_RESOURCE_TYPE
Deprecated.
-
Constructor Summary
Constructors Constructor Description WebDavServiceImpl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
getName(com.github.sardine.DavResource resource)
Deprecated.protected org.craftercms.commons.config.profiles.webdav.WebDavProfile
getProfile(String site, String profileId)
Deprecated.protected String
getUrl(com.github.sardine.DavResource resource, String baseUrl, String deliveryUrl, String basePath)
Deprecated.List<WebDavItem>
list(String site, String profileId, String path, String type)
Deprecated.Lists resources in the specified path.void
setProfileLoader(SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> profileLoader)
Deprecated.String
upload(String site, String profileId, String path, String filename, InputStream content)
Deprecated.Uploads a file in the specified path.
-
-
-
Field Detail
-
PROPERTY_DISPLAY_NAME
public static final String PROPERTY_DISPLAY_NAME
Deprecated.- See Also:
- Constant Field Values
-
PROPERTY_CONTENT_TYPE
public static final String PROPERTY_CONTENT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
PROPERTY_RESOURCE_TYPE
public static final String PROPERTY_RESOURCE_TYPE
Deprecated.- See Also:
- Constant Field Values
-
FILTER_ALL_ITEMS
public static final String FILTER_ALL_ITEMS
Deprecated.- See Also:
- Constant Field Values
-
profileLoader
protected SiteAwareConfigProfileLoader<org.craftercms.commons.config.profiles.webdav.WebDavProfile> profileLoader
Deprecated.Instance ofSiteAwareConfigProfileLoader
used to load the configuration file.
-
charset
protected Charset charset
Deprecated.Charset used to encode paths in URLs.
-
-
Method Detail
-
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 interfaceWebDavService
- Parameters:
site
- the name 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 resourcesorg.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 interfaceWebDavService
- Parameters:
site
- the name 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 full URL of the uploaded file
- Throws:
WebDavException
- if there is an error connecting to the server or uploading the fileorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
- if the profile is not found
-
-