mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-07 13:38:26 +00:00
converted permissions to biconsumer
This commit is contained in:
parent
1c318aac1e
commit
fe77a23e39
@ -21,6 +21,9 @@ package ca.uhn.fhir.rest.server.interceptor.auth;
|
||||
*/
|
||||
|
||||
import ca.uhn.fhir.rest.api.server.bulk.BulkDataExportOptions;
|
||||
import org.hl7.fhir.instance.model.api.IBaseResource;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
||||
public final class OperationRuleTestUtil {
|
||||
private OperationRuleTestUtil() {}
|
||||
@ -33,14 +36,26 @@ public final class OperationRuleTestUtil {
|
||||
return ((OperationRule)theRule).isAppliesToServer();
|
||||
}
|
||||
|
||||
public static boolean isAllowAllResponses(IAuthRule theRule) {
|
||||
return ((OperationRule)theRule).isAllowAllResponses();
|
||||
}
|
||||
|
||||
public static boolean isAppliesToAnyType(IAuthRule theRule) {
|
||||
return ((OperationRule)theRule).isAppliesToAnyType();
|
||||
}
|
||||
|
||||
public static boolean isAppliesToAnyInstance(IAuthRule theRule) {
|
||||
return ((OperationRule)theRule).isAppliesToAnyInstance();
|
||||
}
|
||||
|
||||
public static HashSet<Class<? extends IBaseResource>> getAppliesToTypes(IAuthRule theRule) {
|
||||
return ((OperationRule)theRule).getAppliesToTypes();
|
||||
}
|
||||
|
||||
public static HashSet<Class<? extends IBaseResource>> getAppliesToInstancesOfType(IAuthRule theRule) {
|
||||
return ((OperationRule)theRule).getAppliesToInstancesOfType();
|
||||
}
|
||||
|
||||
public static boolean isAllowAllResponses(IAuthRule theRule) {
|
||||
return ((OperationRule)theRule).isAllowAllResponses();
|
||||
}
|
||||
|
||||
public static String getGroupId(IAuthRule theRule) {
|
||||
return ((RuleBulkExportImpl)theRule).getGroupId();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user