[jboss-jira] [JBoss JIRA] (WFLY-2915) Configure child resources as mandatory or its cardinality in ResourceDefinition
Pedro Igor (JIRA)
issues at jboss.org
Wed Feb 12 10:45:29 EST 2014
Pedro Igor created WFLY-2915:
--------------------------------
Summary: Configure child resources as mandatory or its cardinality in ResourceDefinition
Key: WFLY-2915
URL: https://issues.jboss.org/browse/WFLY-2915
Project: WildFly
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Affects Versions: 8.0.0.Final
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 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
More information about the jboss-jira
mailing list