Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13918

CLI support for not operator for boolean values

XMLWordPrintable

      Book: Management CLI Guide
      Chapter: Probably new chapter

      In EAP 7.1 cli has new ability to use not (!) operator to for the boolean atributes. It is no longer required to set up true/false value of the attribute, instead boolean atribute is evaluated as true if present in the command, and as false if !attribute is present in the command.

      Example:

      [standalone@localhost:9990 /] /subsystem=undertow:read-resource(!resolve-expressions)
      {
          "outcome" => "success",
          "result" => {
              "default-security-domain" => "other",
              "default-server" => "default-server",
              "default-servlet-container" => "default",
              "default-virtual-host" => "default-host",
              "instance-id" => expression "${jboss.node.name}",
              "statistics-enabled" => false,
              "application-security-domain" => undefined,
              "buffer-cache" => {"default" => undefined},
              "configuration" => {
                  "filter" => undefined,
                  "handler" => undefined
              },
              "server" => {"default-server" => undefined},
              "servlet-container" => {"default" => undefined}
          }
      }
      [standalone@localhost:9990 /] /subsystem=undertow:read-resource(resolve-expressions)
      {
          "outcome" => "success",
          "result" => {
              "default-security-domain" => "other",
              "default-server" => "default-server",
              "default-servlet-container" => "default",
              "default-virtual-host" => "default-host",
              "instance-id" => "localhost",
              "statistics-enabled" => false,
              "application-security-domain" => undefined,
              "buffer-cache" => {"default" => undefined},
              "configuration" => {
                  "filter" => undefined,
                  "handler" => undefined
              },
              "server" => {"default-server" => undefined},
              "servlet-container" => {"default" => undefined}
          }
      }
      

              rhn-support-ahoffer Andrea Hoffer
              kanovotn Katerina Odabasi
              Marek Kopecky Marek Kopecky
              Marek Kopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: