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
URIResolver for 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
FieldsFields inherited from class org.ametys.cms.transformation.AttributeURIResolver
_context, _resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetUri(String path, ModelAwareDataAwareAmetysObject 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, getMimeType, getType, resolveImageAsBase64Methods inherited from class org.ametys.cms.transformation.AbstractURIResolver
resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_prefixHandler
The URI prefix handler
-
-
Constructor Details
-
AttributeURIResolver
public AttributeURIResolver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAttributeURIResolver- Throws:
ServiceException
-
getUri
protected String getUri(String path, ModelAwareDataAwareAmetysObject 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
-