mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Pass transport to object classes (#5216)
Adds transport number for `zif_abapgit_object~deserialize` and `zif_abapgit_object~delete` to pass the transport number to the object classes. Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
089e04d7e4
commit
35f18c57d9
|
@ -135,7 +135,8 @@ CLASS zcl_abapgit_object_enho IMPLEMENTATION.
|
||||||
li_enho TYPE REF TO zif_abapgit_object_enho.
|
li_enho TYPE REF TO zif_abapgit_object_enho.
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
io_xml->read( EXPORTING iv_name = 'TOOL'
|
io_xml->read( EXPORTING iv_name = 'TOOL'
|
||||||
|
|
|
@ -89,7 +89,8 @@ CLASS zcl_abapgit_object_enhs IMPLEMENTATION.
|
||||||
li_enhs TYPE REF TO zif_abapgit_object_enhs.
|
li_enhs TYPE REF TO zif_abapgit_object_enhs.
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
io_xml->read( EXPORTING iv_name = 'TOOL'
|
io_xml->read( EXPORTING iv_name = 'TOOL'
|
||||||
|
|
|
@ -69,7 +69,8 @@ CLASS zcl_abapgit_object_ensc IMPLEMENTATION.
|
||||||
CHANGING cg_data = lt_comp_spots ).
|
CHANGING cg_data = lt_comp_spots ).
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lv_package = iv_package.
|
lv_package = iv_package.
|
||||||
|
|
|
@ -240,7 +240,8 @@ CLASS zcl_abapgit_object_iaxu IMPLEMENTATION.
|
||||||
ls_attr-devclass = iv_package.
|
ls_attr-devclass = iv_package.
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
save( is_attr = ls_attr ).
|
save( is_attr = ls_attr ).
|
||||||
|
|
|
@ -238,7 +238,8 @@ CLASS zcl_abapgit_object_saxx_super IMPLEMENTATION.
|
||||||
cg_data = <lg_data> ).
|
cg_data = <lg_data> ).
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
TRY.
|
TRY.
|
||||||
|
|
|
@ -104,7 +104,8 @@ CLASS zcl_abapgit_object_sfpi IMPLEMENTATION.
|
||||||
lv_xstr = cl_ixml_80_20=>render_to_xstring( io_xml->get_raw( ) ).
|
lv_xstr = cl_ixml_80_20=>render_to_xstring( io_xml->get_raw( ) ).
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
TRY.
|
TRY.
|
||||||
|
|
|
@ -104,10 +104,10 @@ CLASS zcl_abapgit_object_sqsc DEFINITION
|
||||||
delete_interface_if_it_exists
|
delete_interface_if_it_exists
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_package TYPE devclass
|
iv_package TYPE devclass
|
||||||
|
iv_transport TYPE trkorr
|
||||||
iv_interface TYPE ty_abap_name
|
iv_interface TYPE ty_abap_name
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception.
|
zcx_abapgit_exception.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,7 +162,8 @@ CLASS zcl_abapgit_object_sqsc IMPLEMENTATION.
|
||||||
is_item = ls_item
|
is_item = ls_item
|
||||||
iv_language = mv_language.
|
iv_language = mv_language.
|
||||||
|
|
||||||
lo_interface->zif_abapgit_object~delete( iv_package ).
|
lo_interface->zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
|
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
@ -205,6 +206,7 @@ CLASS zcl_abapgit_object_sqsc IMPLEMENTATION.
|
||||||
|
|
||||||
delete_interface_if_it_exists(
|
delete_interface_if_it_exists(
|
||||||
iv_package = iv_package
|
iv_package = iv_package
|
||||||
|
iv_transport = iv_transport
|
||||||
iv_interface = ls_proxy-header-interface_pool ).
|
iv_interface = ls_proxy-header-interface_pool ).
|
||||||
|
|
||||||
CALL METHOD mo_proxy->('IF_DBPROC_PROXY_UI~CREATE')
|
CALL METHOD mo_proxy->('IF_DBPROC_PROXY_UI~CREATE')
|
||||||
|
|
|
@ -669,7 +669,8 @@ CLASS zcl_abapgit_object_tran IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
io_xml->read( EXPORTING iv_name = 'TSTC'
|
io_xml->read( EXPORTING iv_name = 'TSTC'
|
||||||
|
|
|
@ -109,7 +109,8 @@ CLASS zcl_abapgit_object_xslt IMPLEMENTATION.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
IF zif_abapgit_object~exists( ) = abap_true.
|
IF zif_abapgit_object~exists( ) = abap_true.
|
||||||
zif_abapgit_object~delete( iv_package ).
|
zif_abapgit_object~delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
io_xml->read( EXPORTING iv_name = 'ATTRIBUTES'
|
io_xml->read( EXPORTING iv_name = 'ATTRIBUTES'
|
||||||
|
|
|
@ -125,6 +125,7 @@ CLASS zcl_abapgit_objects DEFINITION
|
||||||
IMPORTING
|
IMPORTING
|
||||||
!iv_package TYPE devclass
|
!iv_package TYPE devclass
|
||||||
!is_item TYPE zif_abapgit_definitions=>ty_item
|
!is_item TYPE zif_abapgit_definitions=>ty_item
|
||||||
|
!iv_transport TYPE trkorr
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
CLASS-METHODS compare_remote_to_local
|
CLASS-METHODS compare_remote_to_local
|
||||||
|
@ -139,6 +140,7 @@ CLASS zcl_abapgit_objects DEFINITION
|
||||||
IMPORTING
|
IMPORTING
|
||||||
!is_step TYPE zif_abapgit_objects=>ty_step_data
|
!is_step TYPE zif_abapgit_objects=>ty_step_data
|
||||||
!ii_log TYPE REF TO zif_abapgit_log
|
!ii_log TYPE REF TO zif_abapgit_log
|
||||||
|
!iv_transport TYPE trkorr
|
||||||
CHANGING
|
CHANGING
|
||||||
!ct_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt
|
!ct_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt
|
||||||
RAISING
|
RAISING
|
||||||
|
@ -186,7 +188,7 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
|
CLASS zcl_abapgit_objects IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD changed_by.
|
METHOD changed_by.
|
||||||
|
@ -504,7 +506,8 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
|
||||||
TRY.
|
TRY.
|
||||||
delete_object(
|
delete_object(
|
||||||
iv_package = <ls_tadir>-devclass
|
iv_package = <ls_tadir>-devclass
|
||||||
is_item = ls_item ).
|
is_item = ls_item
|
||||||
|
iv_transport = is_checks-transport-transport ).
|
||||||
|
|
||||||
INSERT <ls_tadir> INTO TABLE lt_deleted.
|
INSERT <ls_tadir> INTO TABLE lt_deleted.
|
||||||
DELETE lt_tadir.
|
DELETE lt_tadir.
|
||||||
|
@ -552,7 +555,8 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
|
||||||
li_obj = create_object( is_item = is_item
|
li_obj = create_object( is_item = is_item
|
||||||
iv_language = zif_abapgit_definitions=>c_english ).
|
iv_language = zif_abapgit_definitions=>c_english ).
|
||||||
|
|
||||||
li_obj->delete( iv_package ).
|
li_obj->delete( iv_package = iv_package
|
||||||
|
iv_transport = iv_transport ).
|
||||||
|
|
||||||
IF li_obj->get_metadata( )-delete_tadir = abap_true.
|
IF li_obj->get_metadata( )-delete_tadir = abap_true.
|
||||||
|
|
||||||
|
@ -721,9 +725,13 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
|
||||||
"run deserialize for all steps and it's objects
|
"run deserialize for all steps and it's objects
|
||||||
SORT lt_steps BY order.
|
SORT lt_steps BY order.
|
||||||
LOOP AT lt_steps ASSIGNING <ls_step>.
|
LOOP AT lt_steps ASSIGNING <ls_step>.
|
||||||
deserialize_objects( EXPORTING is_step = <ls_step>
|
deserialize_objects(
|
||||||
|
EXPORTING
|
||||||
|
is_step = <ls_step>
|
||||||
ii_log = ii_log
|
ii_log = ii_log
|
||||||
CHANGING ct_files = rt_accessed_files ).
|
iv_transport = is_checks-transport-transport
|
||||||
|
CHANGING
|
||||||
|
ct_files = rt_accessed_files ).
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
update_package_tree( io_repo->get_package( ) ).
|
update_package_tree( io_repo->get_package( ) ).
|
||||||
|
@ -767,7 +775,8 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
|
||||||
<ls_obj>-obj->deserialize( iv_package = <ls_obj>-package
|
<ls_obj>-obj->deserialize( iv_package = <ls_obj>-package
|
||||||
io_xml = <ls_obj>-xml
|
io_xml = <ls_obj>-xml
|
||||||
iv_step = is_step-step_id
|
iv_step = is_step-step_id
|
||||||
ii_log = ii_log ).
|
ii_log = ii_log
|
||||||
|
iv_transport = iv_transport ).
|
||||||
APPEND LINES OF <ls_obj>-obj->mo_files->get_accessed_files( ) TO ct_files.
|
APPEND LINES OF <ls_obj>-obj->mo_files->get_accessed_files( ) TO ct_files.
|
||||||
|
|
||||||
ii_log->add_success( iv_msg = |Object { <ls_obj>-item-obj_name } imported|
|
ii_log->add_success( iv_msg = |Object { <ls_obj>-item-obj_name } imported|
|
||||||
|
|
|
@ -24,11 +24,13 @@ INTERFACE zif_abapgit_object
|
||||||
!io_xml TYPE REF TO zif_abapgit_xml_input
|
!io_xml TYPE REF TO zif_abapgit_xml_input
|
||||||
!iv_step TYPE zif_abapgit_definitions=>ty_deserialization_step
|
!iv_step TYPE zif_abapgit_definitions=>ty_deserialization_step
|
||||||
!ii_log TYPE REF TO zif_abapgit_log
|
!ii_log TYPE REF TO zif_abapgit_log
|
||||||
|
!iv_transport TYPE trkorr
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS delete
|
METHODS delete
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_package TYPE devclass
|
!iv_package TYPE devclass
|
||||||
|
!iv_transport TYPE trkorr
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS exists
|
METHODS exists
|
||||||
|
|
Loading…
Reference in New Issue
Block a user