public interface AccessDb<G extends Group>
| Modifier and Type | Field and Description |
|---|---|
static String |
kCreateOperation |
static String |
kDeleteOperation |
static String |
kReadOperation |
static String |
kWriteOperation |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUser(String id,
Resource resource,
String operation)
Can the given user perform the requested access?
|
AccessControlList |
getAclFor(Resource resource)
load an ACL for a resource
|
G |
loadGroup(String id)
Get a group by its identifier.
|
static final String kCreateOperation
static final String kReadOperation
static final String kWriteOperation
static final String kDeleteOperation
G loadGroup(String id) throws IamSvcException
id - the group's IDIamSvcException - if there's a problem in the IAM serviceAccessControlList getAclFor(Resource resource) throws IamSvcException
resource - the resource for which you want the ACLIamSvcException - if there's a problem in the IAM serviceboolean canUser(String id, Resource resource, String operation) throws IamSvcException
id - the identity/subject making the requestresource - the resource on which access is requestedoperation - the operationIamSvcException - if there's a problem in the IAM serviceCopyright © 2022 continual.io. All rights reserved.