mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00

* #319, refactor render_repo_menu * #319, btw: decrease short list size, fix db exept * #319, small text fixes, preparations for remotes * #319 preparations 2 * #319 refactor popup_to_confirm * #319 detach logic DRAFT * #319, btw: decrease short list size, fix db exept * #319 refactor popup_to_confirm * #319, part 2 * #338 small fixes * #338 lcl_services_repo, part1 * #338, remove files_commit action logic Removes files_commit action handling and lcl_zip->files_commit and modifies interface of lcl_zip->export * #338, services_repo fixes and improvements * #338, lcl_services_abapgit * #338, small improvements * #338 adopt render_repo_menu from #319 * #338 lcx_cancel * #338 zip services * #338 abapgit services finetune * #338 lcx_cancel finetune * #338 zip finetune * fix repo_menu * #388 small adj * #338 lcl_services_git part1 * #338 lcl_services_db, html_actions features * #338, services_repo=>new_offline * #338, delete/switch branch to lcl_services_git * #338, improvements in switch_branch * #338, switch_branch more improvements * #319 attach, detach, change - complete * #319, fine tuning - repo_popup title * #319 linter fixes * #319 Pull-Stage improvements, sha1 in files * #338 rename page links go_ * #338 lcl_services_background
35 lines
916 B
ABAP
35 lines
916 B
ABAP
*&---------------------------------------------------------------------*
|
|
*& Include ZABAPGIT_SERVICES_BACKGROUND
|
|
*&---------------------------------------------------------------------*
|
|
|
|
CLASS lcl_services_background DEFINITION FINAL.
|
|
|
|
PUBLIC SECTION.
|
|
|
|
CLASS-METHODS update_task
|
|
IMPORTING is_bg_task TYPE lcl_persistence_background=>ty_background
|
|
RAISING lcx_exception.
|
|
|
|
ENDCLASS. "lcl_services_background
|
|
|
|
CLASS lcl_services_background IMPLEMENTATION.
|
|
|
|
METHOD update_task.
|
|
|
|
DATA lo_persistence TYPE REF TO lcl_persistence_background.
|
|
|
|
CREATE OBJECT lo_persistence.
|
|
|
|
IF is_bg_task-method = lcl_persistence_background=>c_method-nothing.
|
|
lo_persistence->delete( is_bg_task-key ).
|
|
ELSE.
|
|
lo_persistence->modify( is_bg_task ).
|
|
ENDIF.
|
|
|
|
MESSAGE 'Saved' TYPE 'S' ##NO_TEXT.
|
|
|
|
COMMIT WORK.
|
|
|
|
ENDMETHOD. "update_task
|
|
|
|
ENDCLASS. "lcl_services_background |