org.appng.cli.commands.applicationrole

## Class AddRole

- java.lang.Object
- - org.appng.cli.commands.applicationrole.AddRole

- All Implemented Interfaces:
    ExecutableCliCommand

      public class AddRole
      extends Object
      implements ExecutableCliCommand

  Adds a application role to a group.

       Usage: appng add-role [options]
         Options:
           -c
              Clear existing application role of the group.
              Default: false
         * -g
              The group name.
         * -a
              The application name.
         * -r
              A application role name. Multiple values can be provided (separated by space).

  Author:
    Matthias Herlitzius

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AddRole()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(CliEnvironment cle)` Executes the command.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AddRole

          public AddRole()

  - ### Method Detail

    - #### execute

          public void execute(CliEnvironment cle)
                       throws BusinessException

      Description copied from interface: `ExecutableCliCommand`
      Executes the command.
      Specified by:
        `execute` in interface `ExecutableCliCommand`
      Parameters:
        `cle` - the `CliEnvironment` to use
      Throws:
        `BusinessException` - if on error occurs while executing the command

Copyright © 2011–2023 aiticon GmbH. All rights reserved.