public interface PolicyCollectionHandler
PolicyCollectionHandler
interface.Modifier and Type | Method | Description |
---|---|---|
void |
done() |
Signals the completion of the policy collection.
|
void |
setPolicy(Resource resource,
java.lang.String[] roleNames) |
Set a policy for the specified resource using the supplied roles names.
|
void |
setUncheckedPolicy(Resource resource) |
Set a policy which always grants access to the specified resource.
|
void setPolicy(Resource resource, java.lang.String[] roleNames) throws ConsumptionException
resource
- the Resource
object to
which the policy applies.roleNames
- a String
array of roles
that defines the policy.ConsumptionException
void setUncheckedPolicy(Resource resource) throws ConsumptionException
resource
- the Resource
object to
which the policy applies.ConsumptionException
void done() throws ConsumptionException
ConsumptionException