Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_password_dialog.clas.abap
class zcl_abapgit_password_dialog {
static STATIC_SUPER = undefined;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'ZCL_ABAPGIT_PASSWORD_DIALOG';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {};
static METHODS = {"POPUP": {"visibility": "U", "parameters": {"IV_REPO_URL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "CV_USER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "C", "type_name": "StringType"}, "CV_PASS": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "C", "type_name": "StringType"}}}};
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
};
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async popup(INPUT) {
return zcl_abapgit_password_dialog.popup(INPUT);
}
static async popup(INPUT) {
let iv_repo_url = INPUT?.iv_repo_url;
if (iv_repo_url?.getQualifiedName === undefined || iv_repo_url.getQualifiedName() !== "STRING") { iv_repo_url = undefined; }
if (iv_repo_url === undefined) { iv_repo_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_repo_url); }
let cv_user = new abap.types.String({qualifiedName: "STRING"});
if (INPUT && INPUT.cv_user) {cv_user = INPUT.cv_user;}
let cv_pass = new abap.types.String({qualifiedName: "STRING"});
if (INPUT && INPUT.cv_pass) {cv_pass = INPUT.cv_pass;}
let lx_error = new abap.types.ABAPObject({qualifiedName: "CX_SY_DYN_CALL_ILLEGAL_FORM", RTTIName: "\\CLASS=CX_SY_DYN_CALL_ILLEGAL_FORM"});
if (abap.compare.eq((await (await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_frontend_services()).get().zif_abapgit_frontend_services$gui_is_available()), abap.builtin.abap_true)) {
try {
await abap.Forms['PROG-' + sy-cprog.get().trimEnd() + '-PASSWORD_POPUP']({"cv_user": cv_user,"cv_pass": cv_pass});
} catch (e) {
if ((abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FORM'] && e instanceof abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FORM'])) {
lx_error.set(e);
await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_with_text({ix_previous: lx_error});
} else {
throw e;
}
}
} else {
try {
if (abap.Classes['ZCL_ABAPGIT_DEFAULT_AUTH_INFO'.trimEnd()] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_CLASS not found"; } else {throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'.trimEnd()](); } }
cv_user.set(await abap.dynamicCallLookup(abap.Classes['ZCL_ABAPGIT_DEFAULT_AUTH_INFO'.trimEnd()], "get_user")());
} catch (e) {
if ((abap.Classes['CX_ROOT'] && e instanceof abap.Classes['CX_ROOT'])) {
return;
} else {
throw e;
}
}
try {
if (abap.Classes['ZCL_ABAPGIT_DEFAULT_AUTH_INFO'.trimEnd()] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_CLASS not found"; } else {throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'.trimEnd()](); } }
cv_pass.set(await abap.dynamicCallLookup(abap.Classes['ZCL_ABAPGIT_DEFAULT_AUTH_INFO'.trimEnd()], "get_password")());
} catch (e) {
if ((abap.Classes['CX_ROOT'] && e instanceof abap.Classes['CX_ROOT'])) {
try {
if (abap.Classes['ZCL_ABAPGIT_DEFAULT_AUTH_INFO'.trimEnd()] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_CLASS not found"; } else {throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'.trimEnd()](); } }
cv_pass.set(await abap.dynamicCallLookup(abap.Classes['ZCL_ABAPGIT_DEFAULT_AUTH_INFO'.trimEnd()], "get_passoword")());
} catch (e) {
if ((abap.Classes['CX_ROOT'] && e instanceof abap.Classes['CX_ROOT'])) {
return;
} else {
throw e;
}
}
} else {
throw e;
}
}
}
}
}
abap.Classes['ZCL_ABAPGIT_PASSWORD_DIALOG'] = zcl_abapgit_password_dialog;
export {zcl_abapgit_password_dialog}; |