Details
-
Enhancement
-
Resolution: Done
-
Major
-
EAP 6.1.0.Alpha (7.2.0.Final)
-
None
Description
There are cases when we want to have attribute only present on resource but want them excluded from add operations.
current implementation of DefaultResourceAddDescriptionProvider adds all attributes on resource also to Add operation
We should add an extra flag to AttributeDefinitionBuilder as a signal to DefaultResourceAddDescriptionProvider to not include the parameter, e.g.:
public static final AttributeDefinition NAME = SimpleAttributeDefinitionBuilder.create(ModelDescriptionConstants.NAME, ModelType.STRING, false)
.resourceOnly()
.build();
this would not appear in the model, simply be a field in AttributeDefinition.