Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | CLASS zcl_abapgit_auth DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS is_allowed IMPORTING !iv_authorization TYPE zif_abapgit_auth=>ty_authorization !iv_param TYPE string OPTIONAL RETURNING VALUE(rv_allowed) TYPE abap_bool . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_auth IMPLEMENTATION. METHOD is_allowed. DATA: li_auth TYPE REF TO zif_abapgit_auth. TRY. CREATE OBJECT li_auth TYPE ('ZCL_ABAPGIT_AUTH_EXIT'). rv_allowed = li_auth->is_allowed( iv_authorization = iv_authorization iv_param = iv_param ). CATCH cx_sy_create_object_error. rv_allowed = abap_true. ENDTRY. ENDMETHOD. ENDCLASS. |