Package org.ametys.web.editor
Class MetadataURIResolver
- java.lang.Object
-
- org.ametys.cms.transformation.MetadataURIResolver
-
- org.ametys.web.editor.MetadataURIResolver
-
- All Implemented Interfaces:
URIResolver
,Contextualizable
,Serviceable
- Direct Known Subclasses:
Metadata2FlipbookUriResolver
public class MetadataURIResolver extends MetadataURIResolver
URIResolver
for type "metadata".
These links or images point to a file from the metadata of the current Content.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.transformation.MetadataURIResolver
MetadataURIResolver.MetaInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected URIPrefixHandler
_prefixHandler
The URI prefix handlerprivate RenderingContextHandler
_renderingContexthandler
private SiteManager
_siteManager
-
Fields inherited from class org.ametys.cms.transformation.MetadataURIResolver
_context, _resolver
-
-
Constructor Summary
Constructors Constructor Description MetadataURIResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getUri(String path, MetadataAwareAmetysObject object, boolean download, boolean absolute, boolean internal)
Get the URI prefixvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.transformation.MetadataURIResolver
_getMetaInfo, _resolveImage, checkLink, contextualize, getBinaryMetadata, getLabel, getType, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64, resolveImageAsBase64
-
-
-
-
Field Detail
-
_prefixHandler
protected URIPrefixHandler _prefixHandler
The URI prefix handler
-
_renderingContexthandler
private RenderingContextHandler _renderingContexthandler
-
_siteManager
private SiteManager _siteManager
-
-
Constructor Detail
-
MetadataURIResolver
public MetadataURIResolver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classMetadataURIResolver
- Throws:
ServiceException
-
getUri
protected String getUri(String path, MetadataAwareAmetysObject object, boolean download, boolean absolute, boolean internal)
Description copied from class:MetadataURIResolver
Get the URI prefix- Overrides:
getUri
in classMetadataURIResolver
- Parameters:
path
- the resource pathobject
- The objectdownload
- true if the pointed resource is to be downloaded.absolute
- true if the url must be absoluteinternal
- true to get an internal URI.- Returns:
- the URI prefix
-
-