[jboss-jira] [JBoss JIRA] (WFCORE-314) Kernel validation of cardinality of resources as specified in their ResourceDefinition
Brian Stansberry (JIRA)
issues at jboss.org
Fri Aug 12 11:41:01 EDT 2016
[ https://issues.jboss.org/browse/WFCORE-314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFCORE-314:
------------------------------------
Summary: Kernel validation of cardinality of resources as specified in their ResourceDefinition (was: Configure child resources as mandatory or its cardinality in ResourceDefinition)
> Kernel validation of cardinality of resources as specified in their ResourceDefinition
> --------------------------------------------------------------------------------------
>
> Key: WFCORE-314
> URL: https://issues.jboss.org/browse/WFCORE-314
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Domain Management
> Reporter: Pedro Igor
>
> Currently, the ResourceDefinition does not provide a good way to configure a child resource as mandatory or even its cardinality. Instead of that, manual validations are required inside handlers.
> The idea is remove manual validations and let it be done automatically by the model.
> Considering the following example:
> {code:xml}
> <parent-resource>
> <child-resource/>
> </parent-resource>
> {code}
> Would be useful if we could mark the 'child-resource' above as mandatory. Or even:
> {code:xml}
> <parent-resource>
> <child-resource/>
> <child-resource/>
> <child-resource/>
> <child-resource/> <!-- This is invalid. Only 3 childs are supported. -->
> </parent-resource>
> {code}
> Where we can specify the cardinality for a child-resource so we can configure the min/max occurrences.
> I think the latter approach is more flexible and can be used to get a resource as mandatory or specify its number of occurrence.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list