Package org.ametys.web.editor
Class AttachmentURIResolver
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.transformation.AbstractURIResolver
org.ametys.cms.transformation.AttachmentURIResolver
org.ametys.web.editor.AttachmentURIResolver
- All Implemented Interfaces:
URIResolver,Contextualizable,LogEnabled,Serviceable
- Direct Known Subclasses:
Attachment2FlipbookUriResolver,PageAttachmentURIResolver
URIResolver for type "attachment-content".These links point to a file from the attachments of the current Content.
-
Field Summary
FieldsFields inherited from class org.ametys.cms.transformation.AttachmentURIResolver
__PLUGIN_CONTENT_PATTERN, _context, _prefixHandler, _resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) protected StringgetUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal) Get the URI prefixvoidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.transformation.AttachmentURIResolver
_resolve, checkLink, 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
-
_webPrefixHandler
The URI prefix handler
-
-
Constructor Details
-
AttachmentURIResolver
public AttachmentURIResolver()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Overrides:
contextualizein classAttachmentURIResolver- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAttachmentURIResolver- Throws:
ServiceException
-
getUriPrefix
protected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal) Description copied from class:AttachmentURIResolverGet the URI prefix- Overrides:
getUriPrefixin classAttachmentURIResolver- 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
-