Move settings type to background interface

This commit is contained in:
larshp 2018-07-29 11:59:42 +00:00 committed by Lars Hvam
parent 4fa485bf96
commit 58fa197ed5
2 changed files with 9 additions and 10 deletions

View File

@ -1,17 +1,23 @@
INTERFACE zif_abapgit_background
PUBLIC .
TYPES: BEGIN OF ty_settings,
key TYPE string,
value TYPE string,
END OF ty_settings.
TYPES: ty_settings_tt TYPE STANDARD TABLE OF ty_settings WITH DEFAULT KEY.
CLASS-METHODS get_description
RETURNING
VALUE(rv_description) TYPE string .
CLASS-METHODS get_settings
CHANGING
VALUE(ct_settings) TYPE zcl_abapgit_persist_background=>ty_settings_tt .
VALUE(ct_settings) TYPE ty_settings_tt .
METHODS run
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo_online
!it_settings TYPE zcl_abapgit_persist_background=>ty_settings_tt OPTIONAL
!it_settings TYPE ty_settings_tt OPTIONAL
RAISING
zcx_abapgit_exception .
ENDINTERFACE.

View File

@ -4,18 +4,11 @@ CLASS zcl_abapgit_persist_background DEFINITION
PUBLIC SECTION.
TYPES: BEGIN OF ty_settings,
key TYPE string,
value TYPE string,
END OF ty_settings.
TYPES: ty_settings_tt TYPE STANDARD TABLE OF ty_settings WITH DEFAULT KEY.
TYPES: BEGIN OF ty_xml,
method TYPE string,
username TYPE string,
password TYPE string,
settings TYPE ty_settings_tt,
settings TYPE zif_abapgit_background=>ty_settings_tt,
END OF ty_xml.
TYPES: BEGIN OF ty_background,