Interface IAuthRuleTester


  • public interface IAuthRuleTester
    Allows user-supplied logic for authorization rules.

    THIS IS AN EXPERIMENTAL API! Feedback is welcome, and this API may change.

    Since:
    3.4.0
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean matches​(ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperation, RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IIdType theInputResourceId, org.hl7.fhir.instance.model.api.IBaseResource theInputResource)
      Allows user-supplied logic for authorization rules.
      default boolean matchesOutput​(ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperation, RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theOutputResource)
      Allows user-supplied logic for authorization rules.
    • Method Detail

      • matches

        default boolean matches​(ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperation,
                                RequestDetails theRequestDetails,
                                org.hl7.fhir.instance.model.api.IIdType theInputResourceId,
                                org.hl7.fhir.instance.model.api.IBaseResource theInputResource)
        Allows user-supplied logic for authorization rules.

        THIS IS AN EXPERIMENTAL API! Feedback is welcome, and this API may change.

        Parameters:
        theOperation - The FHIR operation being performed - Note that this is not necessarily the same as the value obtained from invoking RequestDetails.getRestOperationType() on theRequestDetails because multiple operations can be nested within an HTTP request using FHIR transaction and batch operations
        Since:
        3.4.0
      • matchesOutput

        default boolean matchesOutput​(ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperation,
                                      RequestDetails theRequestDetails,
                                      org.hl7.fhir.instance.model.api.IBaseResource theOutputResource)
        Allows user-supplied logic for authorization rules.

        THIS IS AN EXPERIMENTAL API! Feedback is welcome, and this API may change.

        Parameters:
        theOperation - The FHIR operation being performed - Note that this is not necessarily the same as the value obtained from invoking RequestDetails.getRestOperationType() on theRequestDetails because multiple operations can be nested within an HTTP request using FHIR transaction and batch operations
        Since:
        5.0.0