[
https://issues.apache.org/jira/browse/SLING-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649538#comment-13649538
]
Felix Meschberger commented on SLING-2853:
------------------------------------------
I have an additional comment on the content structure.
Currently the ResourceCollection is a node and the members are collected in a
child node "members".
(a) Considering that a ResourceCollection gets more attributes like descriptive
properties and thumbnail child nodes or the likes, would it make sense to
reconsider the node structure ?
(b) The properties have been namespaced. Shouldn't the "members" node be
namespaced, too ?
So, we might get:
+ <collection> # anything but maybe at least nt:hierarchyNode
+ jcr:content # anything; but not nt:hierarchyNode
- jcr:title # maybe
+- ....
+ sling:members
...
WDYT ?
> Add ResourceCollection to Sling
> -------------------------------
>
> Key: SLING-2853
> URL: https://issues.apache.org/jira/browse/SLING-2853
> Project: Sling
> Issue Type: New Feature
> Components: API
> Affects Versions: API 2.0.2
> Reporter: Amit Gupta
> Priority: Minor
> Attachments: collection_v2.zip, collection_v3.zip, collection.zip,
> resourcecollection.zip
>
>
> Creating a collection of resources has been a use case for a while and there
> has been no inherent support in SLING for the same.
> This proposal is to add a ResourceCollection interface and implementation
> that allows creation of collection of resources.
> Collection is a simple list of members, where each member contains path of
> resource it refers to. In future, we might need to store additional
> information with the member, hence following structure is proposed
> N: resourceCollection (nt:unstructured)
> + P: sling:resourceType
> + N : members (nt:unstructured)
> + N: member_res1 > nt:unstructured
> + P: path > string, reference to actual resource
> + N: member_res2 > nt:unstructured
> + P: path > string, reference to actual resource
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira