-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from permitio/asaf/cto-121-java-sdk-more-checks
Advanced permission checks: bulk check, check in all tenants, get user permissions
- Loading branch information
Showing
10 changed files
with
577 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.permit.sdk.enforcement; | ||
|
||
import io.permit.sdk.util.Context; | ||
|
||
import java.util.HashMap; | ||
|
||
/** | ||
* The {@code CheckQuery} class represents a single permit.check() request (query) | ||
* It is used by the bulk APIs to call many checks at once. | ||
*/ | ||
public final class CheckQuery extends EnforcerInput { | ||
public CheckQuery(User user, String action, Resource resource, Context context) { | ||
super(user, action, resource, context); | ||
} | ||
|
||
public CheckQuery(User user, String action, Resource resource) { | ||
this(user, action, resource, new Context()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.