Package org.ametys.web.editor
Class AttributeURIResolver
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.transformation.AbstractURIResolver
-
- org.ametys.cms.transformation.AttributeURIResolver
-
- org.ametys.web.editor.AttributeURIResolver
-
- All Implemented Interfaces:
URIResolver,Contextualizable,LogEnabled,Serviceable
- Direct Known Subclasses:
Attribute2FlipbookUriResolver
public class AttributeURIResolver extends AttributeURIResolver
URIResolverfor type "attribute".
These links or images point to a file from the attribute of the current Content.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.transformation.AttributeURIResolver
AttributeURIResolver.AttributeInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected URIPrefixHandler_prefixHandlerThe URI prefix handler-
Fields inherited from class org.ametys.cms.transformation.AttributeURIResolver
_context, _resolver
-
-
Constructor Summary
Constructors Constructor Description AttributeURIResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetUri(String path, Content object, boolean download, boolean absolute, boolean internal)Get the URI prefixvoidservice(ServiceManager manager)-
Methods inherited from class org.ametys.cms.transformation.AttributeURIResolver
_getAttributeInfo, _resolve, checkLink, contextualize, getLabel, getType, 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
-
_prefixHandler
protected URIPrefixHandler _prefixHandler
The URI prefix handler
-
-
Constructor Detail
-
AttributeURIResolver
public AttributeURIResolver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAttributeURIResolver- Throws:
ServiceException
-
getUri
protected String getUri(String path, Content object, boolean download, boolean absolute, boolean internal)
Description copied from class:AttributeURIResolverGet the URI prefix- Overrides:
getUriin classAttributeURIResolver- 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
-
-