Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5480

Add option to exclude attribute from add operation

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            tomazcerar Tomaž Cerar (Inactive)
            tomazcerar Tomaž Cerar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: