Skip to content

Commit a4b96b7

Browse files
committed
DEVDOCS-10171 adding codeDepot markers
1 parent 3073df8 commit a4b96b7

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/main/java/com/docusign/controller/eSignature/examples/EG016ControllerSetTabValues.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,28 @@ protected Object doWork(WorkArguments args, ModelMap model,
4040

4141
EnvelopeDefinition envelope = SetTabValuesService.makeEnvelope(signerEmail, signerName);
4242

43-
// Step 2. Construct your API headers
43+
//ds-snippet-start:eSign16Step2
4444
ApiClient apiClient = createApiClient(session.getBasePath(), user.getAccessToken());
4545
EnvelopesApi envelopesApi = new EnvelopesApi(apiClient);
46+
//ds-snippet-end:eSign16Step2
4647

47-
// Step 5. Call the eSignature REST API
48+
// Call the eSignature REST API
49+
//ds-snippet-start:eSign16Step4
4850
EnvelopeSummary envelopeSummary = SetTabValuesService.createEnvelope(envelopesApi, accountId, envelope);
51+
//ds-snippet-end:eSign16Step4
4952

5053
String envelopeId = envelopeSummary.getEnvelopeId();
5154
session.setEnvelopeId(envelopeId);
5255

53-
// Step 6. Create the view request
56+
// Create the view request
57+
//ds-snippet-start:eSign16Step5
5458
RecipientViewRequest viewRequest = SetTabValuesService.makeRecipientViewRequest(
5559
signerEmail,
5660
signerName,
5761
config.getDsReturnUrl(),
5862
config.getDsPingUrl());
5963
ViewUrl viewUrl = SetTabValuesService.createRecipientView(envelopesApi, accountId, envelopeId, viewRequest);
64+
//ds-snippet-end:eSign16Step5
6065

6166
// State can be stored/recovered using the framework's session or a
6267
// query parameter on the returnUrl (see the makeRecipientViewRequest method)

src/main/java/com/docusign/controller/eSignature/services/SetTabValuesService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public static RecipientViewRequest setEmailAndSignerNameForRecipientViewRequest(
101101
return viewRequest;
102102
}
103103

104-
// Step 4. Construct your request body
104+
// Construct your request body
105+
//ds-snippet-start:eSign16Step3
105106
public static EnvelopeDefinition makeEnvelope(String signerEmail, String signerName) throws IOException {
106107
// Create a signer recipient to sign the document, identified by name and email
107108
// We set the clientUserId to enable embedded signing for the recipient
@@ -111,7 +112,7 @@ public static EnvelopeDefinition makeEnvelope(String signerEmail, String signerN
111112
signer.clientUserId(SIGNER_CLIENT_ID);
112113
signer.recipientId("1");
113114

114-
// Step 3. Create tabs and CustomFields
115+
// Create tabs and CustomFields
115116
SignHere signHere = new SignHere();
116117
signHere.setAnchorString("/sn1");
117118
signHere.setAnchorUnits("pixels");
@@ -201,4 +202,5 @@ public static EnvelopeDefinition makeEnvelope(String signerEmail, String signerN
201202

202203
return envelopeDefinition;
203204
}
205+
//ds-snippet-end:eSign16Step3
204206
}

0 commit comments

Comments
 (0)