-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
207 additions
and
6 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
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