mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00

* Naming of class constants This is in preparation of enforcing a naming convention for constants in classes/interfaces. At the end, the following lint rule shall be set: ```json "class_attribute_names": { "constants": "^C_.+$", ... }, ``` After this, the only remaining constants not following this rule are in `zcl_abapgit_version`. * Update zif_abapgit_dot_abapgit.intf.abap * Update zcl_abapgit_gui_chunk_lib.clas.abap * Update zcl_abapgit_gui_router.clas.abap Co-authored-by: Lars Hvam <larshp@hotmail.com>
19 lines
691 B
ABAP
19 lines
691 B
ABAP
INTERFACE zif_abapgit_auth PUBLIC.
|
|
|
|
TYPES: ty_authorization TYPE string.
|
|
|
|
CONSTANTS: BEGIN OF c_authorization,
|
|
uninstall TYPE ty_authorization VALUE 'UNINSTALL',
|
|
create_repo TYPE ty_authorization VALUE 'CREATE_REPO',
|
|
transport_to_branch TYPE ty_authorization VALUE 'TRANSPORT_TO_BRANCH',
|
|
update_local_checksum TYPE ty_authorization VALUE 'UPDATE_LOCAL_CHECKSUM',
|
|
END OF c_authorization.
|
|
|
|
METHODS:
|
|
is_allowed
|
|
IMPORTING iv_authorization TYPE ty_authorization
|
|
iv_param TYPE string OPTIONAL
|
|
RETURNING VALUE(rv_allowed) TYPE abap_bool.
|
|
|
|
ENDINTERFACE.
|