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
URIResolverfor 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_authenticationTokenManagerThe authentication token managerprotected CurrentUserProvider_currentUserProviderCurrent 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 StringgetPath(AmetysObject resource)Get the path of aResourceor aResourceCollectionprotected StringgetRealPrefix(Resource resource, String prefix)Get the real prefixStringgetType()Returns the type of links handled by thisURIResolver.protected StringgetUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)Get the URI prefixvoidservice(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:
servicein interfaceServiceable- Overrides:
servicein classResourceURIResolver- Throws:
ServiceException
-
getType
public String getType()
Description copied from interface:URIResolverReturns the type of links handled by thisURIResolver.- Specified by:
getTypein interfaceURIResolver- Overrides:
getTypein 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:ResourceURIResolverGet the URI prefix- Overrides:
getUriPrefixin 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 aResourceor aResourceCollection- Parameters:
resource- the resource to work with- Returns:
- the path
-
getRealPrefix
protected String getRealPrefix(Resource resource, String prefix)
Description copied from class:ResourceURIResolverGet the real prefix- Overrides:
getRealPrefixin classResourceURIResolver- Parameters:
resource- the resourceprefix- the initial prefix- Returns:
- the real prefix
-
-