[
https://issues.jboss.org/browse/WFLY-2915?page=com.atlassian.jira.plugin....
]
Brian Stansberry updated WFLY-2915:
-----------------------------------
Fix Version/s: 9.0.0.CR1
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)
Components: Domain Management
Affects Versions: 8.0.0.Final
Reporter: Pedro Igor
Fix For: 9.0.0.CR1
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