Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/#apmg#cl_strust.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
RAISING
/apmg/cx_error.

METHODS get_logs
RETURNING
VALUE(result) TYPE STANDARD TABLE OF /apmg/strust_log WITH DEFAULT KEY.

Check failure on line 134 in src/#apmg#cl_strust.clas.abap

View check run for this annotation

abaplint / abaplint

Statement does not exist in ABAPv750(or a parser error), "METHODS"

https://rules.abaplint.org/parser_error

PROTECTED SECTION.
PRIVATE SECTION.

Expand Down Expand Up @@ -597,6 +601,13 @@
ENDMETHOD.


METHOD get_logs.

Check failure on line 604 in src/#apmg#cl_strust.clas.abap

View check run for this annotation

abaplint / abaplint

Method definition "get_logs" not found

https://rules.abaplint.org/check_syntax

result = logs.

Check failure on line 606 in src/#apmg#cl_strust.clas.abap

View check run for this annotation

abaplint / abaplint

"result" not found, Target

https://rules.abaplint.org/check_syntax

Check failure on line 606 in src/#apmg#cl_strust.clas.abap

View check run for this annotation

abaplint / abaplint

"logs" not found, findTop

https://rules.abaplint.org/check_syntax

ENDMETHOD.


METHOD _create.

DATA:
Expand Down
24 changes: 24 additions & 0 deletions src/#apmg#strust_updater.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,30 @@
remove_expired = p_remove ).

WRITE / 'Certificates saved' COLOR COL_POSITIVE.

IF p_remove = abap_true.
DATA(logs) TYPE STANDARD TABLE OF /apmg/strust_log WITH DEFAULT KEY.

Check failure on line 246 in src/#apmg#strust_updater.prog.abap

View check run for this annotation

abaplint / abaplint

Statement does not exist in ABAPv750(or a parser error), "DATA"

https://rules.abaplint.org/parser_error
logs = strust->get_logs( ).

Check failure on line 247 in src/#apmg#strust_updater.prog.abap

View check run for this annotation

abaplint / abaplint

"logs" not found, Target

https://rules.abaplint.org/check_syntax

Check failure on line 247 in src/#apmg#strust_updater.prog.abap

View check run for this annotation

abaplint / abaplint

Method "get_logs" not found, methodCallChain

https://rules.abaplint.org/check_syntax

DATA(removed_count) = 0.

LOOP AT logs ASSIGNING FIELD-SYMBOL(<log>) WHERE message = 'Removed'.

Check failure on line 251 in src/#apmg#strust_updater.prog.abap

View check run for this annotation

abaplint / abaplint

"logs" not found, findTop

https://rules.abaplint.org/check_syntax
IF removed_count = 0.
SKIP.
WRITE / 'Certificates removed:' COLOR COL_TOTAL.
ENDIF.
removed_count += 1.

Check failure on line 256 in src/#apmg#strust_updater.prog.abap

View check run for this annotation

abaplint / abaplint

Statement does not exist in ABAPv750(or a parser error), "removed_count"

https://rules.abaplint.org/parser_error
WRITE: /5 <log>-cert_subject,
AT 130 |{ <log>-date_from DATE = ISO }|,
AT 145 |{ <log>-date_to DATE = ISO }|,
AT 158 ''.
ENDLOOP.

IF removed_count = 0.
SKIP.
WRITE / 'No expired certificates were removed' COLOR COL_TOTAL.
ENDIF.
ENDIF.
CATCH /apmg/cx_error INTO error.
WRITE: / 'Error updating certificate:' COLOR COL_NEGATIVE, error->get_text( ).
ENDTRY.