@PermitAll public class PermissionCheckerImpl extends Object implements PermissionChecker
PermissionChecker. Consumers should get an instance of
this via CDI. This class should not be directly instantiated by the consumers.| Constructor and Description |
|---|
PermissionCheckerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowedTo(Operation operation,
Resource resource)
|
boolean |
isAllowedTo(Operation operation,
Resource resource,
Persona persona)
|
boolean |
isAllowedTo(Operation operation,
String resourceId)
|
boolean |
isAllowedTo(Operation operation,
String resourceId,
Persona persona)
|
public boolean isAllowedTo(Operation operation, Resource resource, Persona persona)
PermissionCheckerisAllowedTo in interface PermissionCheckeroperation - the operation that is to be performed. Example: "create-metric".resource - the resource onto which the operation is to be performed. Example: "cpu-usage".persona - the persona that is about to perform the operation. Example: "jdoe".public boolean isAllowedTo(Operation operation, String resourceId, Persona persona)
PermissionCheckerPersona has access to perform Operation on the given Resource.
Resource here is referenced by its ID.isAllowedTo in interface PermissionCheckeroperation - the operation that is to be performed. Example: "create-metric".resourceId - the ID for the resource onto which the operation is to be performed. Example: "cpu-usage".persona - the persona that is about to perform the operation. Example: "jdoe".PermissionChecker.isAllowedTo(Operation, Resource, Persona)public boolean isAllowedTo(Operation operation, Resource resource)
PermissionCheckerisAllowedTo in interface PermissionCheckeroperation - the operation that is to be performed. Example: "create-metric".resource - the resource onto which the operation is to be performed. Example: "cpu-usage".PermissionChecker.isAllowedTo(Operation, Resource, Persona)public boolean isAllowedTo(Operation operation, String resourceId)
PermissionCheckerPersona has access to perform Operation on the given
Resource. Resource here is referenced by its ID.isAllowedTo in interface PermissionCheckeroperation - the operation that is to be performed. Example: "create-metric".resourceId - the ID for the resource onto which the operation is to be performed. Example: "cpu-usage".PermissionChecker.isAllowedTo(Operation, Resource, Persona)Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.