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
Fields inherited from class org.ametys.cms.transformation.AttributeURIResolver
_context, _resolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getUri
(String path, ModelAwareDataAwareAmetysObject object, boolean download, boolean absolute, boolean internal) Get the URI prefixvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.transformation.AttributeURIResolver
_getAttributeInfo, _resolve, checkLink, contextualize, getLabel, getMimeType, 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 Details
-
_prefixHandler
The URI prefix handler
-
-
Constructor Details
-
AttributeURIResolver
public AttributeURIResolver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAttributeURIResolver
- Throws:
ServiceException
-
getUri
protected String getUri(String path, ModelAwareDataAwareAmetysObject object, boolean download, boolean absolute, boolean internal) Description copied from class:AttributeURIResolver
Get the URI prefix- Overrides:
getUri
in 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
-