Class WebdavProjectResourceURIResolver
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- 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 manager-
Fields inherited from class org.ametys.plugins.workspaces.documents.ProjectResourceURIResolver
_pluginName
-
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
_resolve(String uri, boolean download, boolean absolute, boolean internal, String prefix, String suffix)
Creates a full uriprotected 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, getLabel, setPluginInfo
-
Methods inherited from class org.ametys.web.editor.ResourceURIResolver
_getSiteName, contextualize, getResourcePath
-
Methods inherited from class org.ametys.cms.transformation.ResourceURIResolver
checkLink, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64, 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
-
-
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
.
-
_resolve
protected String _resolve(String uri, boolean download, boolean absolute, boolean internal, String prefix, String suffix)
Description copied from class:ResourceURIResolver
Creates a full uri- Overrides:
_resolve
in classResourceURIResolver
- Parameters:
uri
- the base uri, ie the resource iddownload
- true to create a forced download uriabsolute
- true to create an absolute uri (if internal is false)internal
- true to create an internal uriprefix
- Prefix on the urisuffix
- Suffix on the uri- Returns:
- The created uri
-
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
-
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
-
-