You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Nicolas Peltier <np...@adobe.com.INVALID> on 2020/09/01 08:42:58 UTC

Re: [caconfig] best way to have an ordered list of CA configurations

Thanks Stefan!

Figured out also that sling UT were having quite a lot of them, with persistence examples, so I'm good! thanks

On 31/08/2020 09:36, "Stefan Seifert" <ss...@pro-vision.de> wrote:

    hello nicolas.

    both configuration collection entries as well es nested configuration items should always return in the order they where entered/are stored in the repository.

    this is a sample application we always keep up to date and contains most special usages and edge cases [1].

    stefan

    [1] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwcm-io%2Fwcm-io-caconfig%2Ftree%2Fdevelop%2Fsample-app&amp;data=02%7C01%7Cnpeltier%40adobe.com%7C480f60a9cb6246c164a308d84d808b05%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637344561769103748&amp;sdata=WWql%2FCTfnXJ6fvZBVtW9mmoyzLwXA6WKWdPAFOKNFOU%3D&amp;reserved=0


    >-----Original Message-----
    >From: Nicolas Peltier <pe...@gmail.com>
    >Sent: Friday, August 28, 2020 7:03 PM
    >To: users@sling.apache.org
    >Subject: [caconfig] best way to have an ordered list of CA configurations
    >
    >Hey,
    >
    >am wondering what is the best way to get an ordered list of configuration:
    >- setting my configuration to be a collection, but the API seems to use
    >Collection which is not supposed to be ordered,
    >- using nested configuration, like here [0], but i have troubles seeing
    >working examples (this one included :-))
    >
    >Nicolas
    >
    >[0]
    >https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefanseifert%2Fsling-contextaware-config-aem-&amp;data=02%7C01%7Cnpeltier%40adobe.com%7C480f60a9cb6246c164a308d84d808b05%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637344561769103748&amp;sdata=UrgpKi5DaSqUTdLdk3q%2FWFtLpUrQCe83PA4cIAf0kzQ%3D&amp;reserved=0
    >sample/blob/63f46e3a8a1006c3c7e5af0fc03d0eaf5df8acde/bundles/base/src/main/
    >java/io/wcm/caconfig/sample/config/ConfigSampleNested.java#L23