[MGNLUI-4496] Infer field definition type from 'type' property Created: 04/Jul/17 Updated: 17/Apr/19 Resolved: 17/Jul/18 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Ilgun Ilgun | Assignee: | Ngoc Nguyenthanh |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 2d | ||
| Original Estimate: | 2d | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Epic Link: | Content types foundation | ||||||||||||||||
| Sprint: | Saigon 149 | ||||||||||||||||
| Story Points: | 5 | ||||||||||||||||
| Description |
|
Currently, we define a class property in the content type model for specifying a concrete field type definition e.g. It will be (@see All those ways above let's 2Bean mechanisms to instantiate a field definition for you and you get the type for free if it's not being set explicitly. |
| Comments |
| Comment by Antti Hietala [ 31/Aug/17 ] |
|
Blocked due to |
| Comment by Ngoc Nguyenthanh [ 09/Jul/18 ] |
|
Using JCR Property Type for our property defined in the content type model. Supported types - https://docs.adobe.com/docs/en/spec/jsr170/javadocs/jcr-2.0/javax/jcr/nodetype/PropertyDefinition.html (Property Definition)
As discussed, the mapping will be hardened. Predefined mapping of type to fieldType
|
| Comment by Oanh Thai Hoang [ 12/Jul/18 ] |
|
For more detailed, we currently support those JCR described #isKnownJcrTypeName Others like Name, Path, URI... will be automatically stored as String type |
| Comment by Maxime Michel [ 16/Apr/19 ] |
|
Can we please get a fixVersion (and close the open PR if obsolete, while at it)? |