Class DefaultOperationDescriptionProvider

    • Method Detail

      • getModelDescription

        public org.jboss.dmr.ModelNode getModelDescription​(Locale locale)
        Description copied from interface: DescriptionProvider
        Gets the descriptive information (human-friendly description, list of attributes, list of children) describing a single model node or operation.

        The implementation must assume that the caller intends to modify the returned ModelNode so it should not hand out a reference to any internal data structures.

        Specified by:
        getModelDescription in interface DescriptionProvider
        Parameters:
        locale - the locale to use to generate any localized text used in the description. May be null, in which case Locale.getDefault() should be used
        Returns:
        ModelNode describing the model node's structure
      • isAddAccessConstraints

        protected boolean isAddAccessConstraints()
        Hook for subclasses like DefaultResourceRemoveDescriptionProvider to not add the access constraints
        Returns:
        whether to add the access constraints
      • getReplyValueTypeDescription

        protected org.jboss.dmr.ModelNode getReplyValueTypeDescription​(ResourceDescriptionResolver descriptionResolver,
                                                                       Locale locale,
                                                                       ResourceBundle bundle)
        Hook for subclasses to provide a description object for any complex "value-type" description of the operation reply.

        This default implementation throws an IllegalStateException; it is the responsibility of subclasses to override this method if a complex "value-type" description is required.

        Parameters:
        descriptionResolver - resolver for localizing any text in the description
        locale - locale for any text description
        bundle - resource bundle previously obtained from the description resolver
        Returns:
        a node describing the reply's "value-type"
        Throws:
        IllegalStateException - if not overridden by an implementation that does not