Skip to content

Commit

Permalink
DEVDOCS-13232 add missing eSign 27 Step 3 Java cD mkrs
Browse files Browse the repository at this point in the history
  • Loading branch information
meihDS committed Dec 27, 2023
1 parent e101cf4 commit 9a75978
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ protected void onInitModel(WorkArguments args, ModelMap model) throws Exception

@Override
protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse response) {
// Step 2: Construct your API headers
// Construct your API headers
AccountsApi accountsApi = createAccountsApi(session.getBasePath(), user.getAccessToken());

// Step 3: Call the eSignature Rest API to delete profile
// Call the eSignature Rest API to delete profile
//ds-snippet-start:eSign27Step3
String curProfileId = args.getProfileId();
try {
PermissionDeleteService.permissionDelete(accountsApi, session.getAccountId(), curProfileId);
//ds-snippet-end:eSign27Step3

// Step 4: Show 'done' (successful) page
// Show 'done' (successful) page
DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName)
.withMessage(getTextForCodeExampleByApiType().ResultsPageText.replaceFirst("\\{0}", curProfileId))
.addToModel(model, config);
Expand Down

0 comments on commit 9a75978

Please sign in to comment.