Class WebdavProjectResourceURIResolver
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.transformation.AbstractURIResolver
-
- org.ametys.cms.transformation.ResourceURIResolver
-
- org.ametys.web.editor.ResourceURIResolver
-
- org.ametys.plugins.workspaces.documents.ProjectResourceURIResolver
-
- org.ametys.plugins.workspaces.documents.WebdavProjectResourceURIResolver
-
- All Implemented Interfaces:
URIResolver
,PluginAware
,Contextualizable
,LogEnabled
,Serviceable
public class WebdavProjectResourceURIResolver extends ProjectResourceURIResolver
URIResolver
for webdav "project-resource".
These links point to a file from the resources of a project through webdav
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticationTokenManager
_authenticationTokenManager
The authentication token managerprotected CurrentUserProvider
_currentUserProvider
Current User Provider-
Fields inherited from class org.ametys.web.editor.ResourceURIResolver
_webPrefixHandler
-
Fields inherited from class org.ametys.cms.transformation.ResourceURIResolver
_context, _prefixHandler, _resolver
-
-
Constructor Summary
Constructors Constructor Description WebdavProjectResourceURIResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getPath(AmetysObject resource)
Get the path of aResource
or aResourceCollection
protected String
getRealPrefix(Resource resource, String prefix)
Get the real prefixString
getType()
Returns the type of links handled by thisURIResolver
.protected String
getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
Get the URI prefixvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.plugins.workspaces.documents.ProjectResourceURIResolver
_getProject, _getSiteName, getLabel, setPluginInfo
-
Methods inherited from class org.ametys.web.editor.ResourceURIResolver
getResourcePath
-
Methods inherited from class org.ametys.cms.transformation.ResourceURIResolver
_resolve, checkLink, contextualize, resolveImageAsBase64
-
Methods inherited from class org.ametys.cms.transformation.AbstractURIResolver
resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_authenticationTokenManager
protected AuthenticationTokenManager _authenticationTokenManager
The authentication token manager
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
Current User Provider
-
-
Constructor Detail
-
WebdavProjectResourceURIResolver
public WebdavProjectResourceURIResolver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classResourceURIResolver
- Throws:
ServiceException
-
getType
public String getType()
Description copied from interface:URIResolver
Returns the type of links handled by thisURIResolver
.- Specified by:
getType
in interfaceURIResolver
- Overrides:
getType
in classProjectResourceURIResolver
- Returns:
- the type of links handled by this
URIResolver
.
-
getUriPrefix
protected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
Description copied from class:ResourceURIResolver
Get the URI prefix- Overrides:
getUriPrefix
in classProjectResourceURIResolver
- Parameters:
object
- The objectdownload
- true if the pointed resource is to be downloaded.absolute
- true to get an internal URI.internal
- true if the url must be absolute- Returns:
- the URI prefix
-
getPath
protected String getPath(AmetysObject resource)
Get the path of aResource
or aResourceCollection
- Parameters:
resource
- the resource to work with- Returns:
- the path
-
getRealPrefix
protected String getRealPrefix(Resource resource, String prefix)
Description copied from class:ResourceURIResolver
Get the real prefix- Overrides:
getRealPrefix
in classResourceURIResolver
- Parameters:
resource
- the resourceprefix
- the initial prefix- Returns:
- the real prefix
-
-