[jboss-jira] [JBoss JIRA] (AS7-5480) Add option to exclude attribute from add operation
Tomaz Cerar (JIRA)
jira-events at lists.jboss.org
Mon Sep 3 10:40:32 EDT 2012
Tomaz Cerar created AS7-5480:
--------------------------------
Summary: Add option to exclude attribute from add operation
Key: AS7-5480
URL: https://issues.jboss.org/browse/AS7-5480
Project: Application Server 7
Issue Type: Enhancement
Components: Domain Management
Affects Versions: 7.2.0.Alpha1
Reporter: Tomaz Cerar
Assignee: Tomaz Cerar
Fix For: 7.2.0.Alpha1
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.
--
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