Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weblogic.security.spi
Interface RoleCollectionHandler

    public interface RoleCollectionHandler

A role provider that wishes to consume roles implements the `RoleCollectionHandler` interface.

Method Summary
`void` | `done()` Signals the completion of the role collection.
`void` | `setRole(Resource resource, String roleName, String[] userAndGroupNames)` Set the role to give set of users and groups for the specified resource using the supplied information.

Method Detail

### setRole

    void setRole(Resource resource,
                 String roleName,
                 String[] userAndGroupNames)

  Set the role to give set of users and groups for the specified resource using the supplied information.

  Parameters:
    `resource` - the `Resource` object to which the role applies.
    `roleName` - a `String` the role name.
    `userAndGroupNames` - a `String[]` that defines what user names and group names that are to be assigned to that role for the given resource.
  Throws:
    ``ConsumptionException`` - if the roles cannot be consumed or processing of the roles fails.

### done

    void done()

  Signals the completion of the role collection.

  Throws:
    ``ConsumptionException`` - if the roles cannot be consumed or processing of the roles fail.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD