Hi Jason,

On Wed, Oct 3, 2018 at 2:44 PM Jason E Bailey <j...@apache.org> wrote:
> ...A resource can have a sling:resourceType which defines the process which 
> processes the resource. That is the default process, however
> you can apply other resourceTypes to that resource so it's  processed 
> differently based on your need....

Not sure what you mean by "apply other resourceTypes", do you mean by
changing the sling:resourceType property?

Then ok, you can do that now and as you say the scripts and servlets
wired to the new resource type will do their best to handle it.

> ...By assigning types to the resourceType  you can define required/optional 
> fields and the types of actions that can occur on that resource...

Yes that's the idea.

>
> This will then give you the ability to do the following
> 1. generate meta data about the resource for use with a UI
> 2. potentially used as a field validation if someone attempts to create a 
> resource type without the proper fields
> 3. Will generate an error if they use something like sling:include to 
> override the default resourceType and the new resourceType requires 
> properties that the resource doesn't have....

Yes, sounds reasonable!

-Bertrand

Reply via email to