Package io.continual.iam.access
Interface AccessDb<G extends Group>
- All Known Subinterfaces:
AccessManager<G>,IamDb<I,G>
- All Known Implementing Classes:
CommonJsonDb,JsonDocDb,MultiSourceDb
public interface AccessDb<G extends Group>
A database view for access queries.
-
Field Details
-
kCreateOperation
- See Also:
-
kReadOperation
- See Also:
-
kWriteOperation
- See Also:
-
kDeleteOperation
- See Also:
-
-
Method Details
-
loadGroup
Get a group by its identifier.- Parameters:
id- the group's ID- Returns:
- a group, or null if it does not exist
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getAclFor
load an ACL for a resource- Parameters:
resource- the resource for which you want the ACL- Returns:
- an ACL, or null if there is none
- Throws:
IamSvcException- if there's a problem in the IAM service
-
canUser
Can the given user perform the requested access?- Parameters:
id- the identity/subject making the requestresource- the resource on which access is requestedoperation- the operation- Returns:
- true if the user is allowed to perform the operation, false otherwise
- Throws:
IamSvcException- if there's a problem in the IAM service
-