Uses of Class javax.management.relation.RoleList (Java Platform SE 8 )
Date: 2026-04-22

## Uses of Class
javax.management.relation.RoleList

- Packages that use RoleList
  Package | Description
  --- | ---
  javax.management.relation | Provides the definition of the Relation Service.

- - ### Uses of RoleList in javax.management.relation

    Methods in javax.management.relation that return RoleList
    Modifier and Type | Method and Description
    --- | ---
    `RoleList` | RoleResult.`getRoles()` Retrieves list of roles successfully accessed.
    `RoleList` | RelationSupport.`retrieveAllRoles()` Returns all roles in the relation without checking read mode.
    `RoleList` | Relation.`retrieveAllRoles()` Returns all roles in the relation without checking read mode.

    Methods in javax.management.relation with parameters of type RoleList
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | RoleList.`addAll(int index, RoleList roleList)` Inserts all of the elements in the RoleList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleList specified.
    `boolean` | RoleList.`addAll(RoleList roleList)` Appends all the elements in the RoleList specified to the end of the list, in the order in which they are returned by the Iterator of the RoleList specified.
    `void` | RelationServiceMBean.`createRelation(String relationId, String relationTypeName, RoleList roleList)` Creates a simple relation (represented by a RelationSupport object) of given relation type, and adds it in the Relation Service.
    `void` | RelationService.`createRelation(String relationId, String relationTypeName, RoleList roleList)` Creates a simple relation (represented by a RelationSupport object) of given relation type, and adds it in the Relation Service.
    `RoleResult` | RelationSupport.`setRoles(RoleList list)` Sets the given roles.
    `void` | RoleResult.`setRoles(RoleList list)` Sets list of roles successfully accessed.
    `RoleResult` | Relation.`setRoles(RoleList roleList)` Sets the given roles.
    `RoleResult` | RelationServiceMBean.`setRoles(String relationId, RoleList roleList)` Sets the given roles in given relation.
    `RoleResult` | RelationService.`setRoles(String relationId, RoleList roleList)` Sets the given roles in given relation.

    Constructors in javax.management.relation with parameters of type RoleList
    Constructor and Description
    `RelationSupport(String relationId, ObjectName relationServiceName, MBeanServer relationServiceMBeanServer, String relationTypeName, RoleList list)` Creates a `RelationSupport` object.
    `RelationSupport(String relationId, ObjectName relationServiceName, String relationTypeName, RoleList list)` Creates a `RelationSupport` object.
    `RoleResult(RoleList list, RoleUnresolvedList unresolvedList)` Constructor.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.