Hello,
Thank you! I just ran across this in the docs as well - not sure how I missed
it.
-Original Message-
From: Guillaume Lucazeau [mailto:glucaz...@gmail.com]
Sent: Thursday, October 20, 2016 11:56 AM
To: users@sling.apache.org
Subject: Re: x SCR Annotations and sling-mock to get r
Hello Jordan,
You can register services in the mocked Sling context:
@Rule
public final SlingContext slingContext = new
SlingContext(ResourceResolverType.RESOURCERESOLVER_MOCK);
[...]
slingContext.registerService(ResourceResolverFactory.class, new
MockResourceResolverFactory());
Thus they will b
Hello,
I've got an OSGi component that I'm writing unit tests for using sling-mock.
The component uses the @Reference annotation to inject a
resourceResolverFactory which it then uses to call
getServiceResourceResolver(). I'm wondering if there's a way to set up the mock
SlingContext so that t
The "Superimposing Resource Provider"[0] was created for this (or a
similar) use-case. YMMV.
Regards
Julian
[0] https://github.com/apache/sling/tree/trunk/contrib/extensions/superimposing
On Thu, Oct 20, 2016 at 2:59 PM, Bertrand Delacretaz
wrote:
> Hi,
>
> On Thu, Oct 20, 2016 at 2:28 PM, Cars
Hi,
On Thu, Oct 20, 2016 at 2:28 PM, Carsten Steckel
wrote:
> ...Inheritance comes to mind where a Master website is defined and every child
> inherits its masters config, content, assets, ... but overwrites if
> necessary...
The Sling Resource Merger [1] goes in that direction but I haven't
hea
Hi Carsten,
that is imho more an AEM then sling use case. The functionality you are
describing is covered my AEMs MSM Live Copies(Multi Site Manager).
It basically allows you create a copy of an existing website and to
automatically distribute changes to the live copies. The relationship is
co
Hi all,
I am a NOOB to sling and content repositories, so be gentle.
I have 2000 very similar websites that share >95% of the structure, config,
assets, data, ... but every website has a different author user base which
need to change/adopt the remainging content (where permitted). The websites
a