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
URIResolver
for webdav "project-resource". These links point to a file from the resources of a project through webdav
-
Field Summary
Modifier and TypeFieldDescriptionprotected AuthenticationTokenManager
The authentication token managerprotected CurrentUserProvider
Current User ProviderFields inherited from class org.ametys.web.editor.ResourceURIResolver
_webPrefixHandler
Fields inherited from class org.ametys.cms.transformation.ResourceURIResolver
_context, _prefixHandler, _resolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getPath
(AmetysObject resource) Get the path of aResource
or aResourceCollection
protected String
getRealPrefix
(Resource resource, String prefix) Get the real prefixgetType()
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 Details
-
_authenticationTokenManager
The authentication token manager -
_currentUserProvider
Current User Provider
-
-
Constructor Details
-
WebdavProjectResourceURIResolver
public WebdavProjectResourceURIResolver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classResourceURIResolver
- Throws:
ServiceException
-
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
Get the path of aResource
or aResourceCollection
- Parameters:
resource
- the resource to work with- Returns:
- the path
-
getRealPrefix
Description copied from class:ResourceURIResolver
Get the real prefix- Overrides:
getRealPrefix
in classResourceURIResolver
- Parameters:
resource
- the resourceprefix
- the initial prefix- Returns:
- the real prefix
-