org.keycloak.models

## Interface RoleContainerModel

- All Known Subinterfaces:
    ClientModel, RealmModel
  All Known Implementing Classes:
    ClientAdapter, ClientAdapter, ClientAdapter, RealmAdapter, RealmAdapter, RealmAdapter

      public interface RoleContainerModel

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `RoleContainerModel.RoleRemovedEvent`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addDefaultRole(String name)`
    `RoleModel` | `addRole(String name)`
    `RoleModel` | `addRole(String id, String name)`
    `List<String>` | `getDefaultRoles()`
    `String` | `getId()`
    `RoleModel` | `getRole(String name)`
    `Set<RoleModel>` | `getRoles()`
    `void` | `removeDefaultRoles(String... defaultRoles)`
    `boolean` | `removeRole(RoleModel role)`
    `void` | `updateDefaultRoles(String... defaultRoles)`

- - ### Method Detail

    - #### getId

          String getId()

    - #### getRole

          RoleModel getRole(String name)

    - #### addRole

          RoleModel addRole(String name)

    - #### addRole

          RoleModel addRole(String id,
                            String name)

    - #### removeRole

          boolean removeRole(RoleModel role)

    - #### getRoles

          Set<RoleModel> getRoles()

    - #### getDefaultRoles

          List<String> getDefaultRoles()

    - #### addDefaultRole

          void addDefaultRole(String name)

    - #### updateDefaultRoles

          void updateDefaultRoles(String... defaultRoles)

    - #### removeDefaultRoles

          void removeDefaultRoles(String... defaultRoles)

Copyright © 2016 JBoss by Red Hat. All rights reserved.