Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
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://e-docs.bea.com/wls/docs92 Copyright 2006 BEA Systems Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD