Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.3)

Part Number E13941-03

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.

Copyright 1996, 2010, 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.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.3 API Reference
11g Release 1 (10.3.3)

Part Number E13941-03