Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Neutral
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.3
-
Component/s: content2bean, core
-
Epic Link:
-
Sprint:5.3 Sprint 3, 5.3 Sprint 4, 5.3 Sprint 5
Description
Several places could benefit from configuring MediaType objects. Rather than reinventing parsing and matching via regular expressions or other mechanism, we could just use com.google.common.net.MediaType, which is a very convenient class to manipulate mime types.
eg: MediaType.parse("image/png").is(MediaType.parse("image/*")) // returns true
From the below, one can easily figure out why it'd be beneficial to configure stuff (e.g someFileMediaType.is(configuredMT) to query whether this file can be treated by a configured component), and how to implement a Node2Bean converter.
Attachments
Issue Links
- depends upon
-
MAGNOLIA-4847 Upgrade to newer version of guava
-
- Closed
-
- is depended upon by
-
MGNLDAM-389 Cleanup DAM API and split into sub modules
-
- Closed
-
-
MGNLDAM-391 Finalize the DAM API review
-
- Closed
-
- relates to
-
MAGNOLIA-5713 Node2Bean should support Lists or Maps of types with a converter
-
- Closed
-
- mentioned in
-
Wiki Page Loading...