Skip to content

Commit e89342d

Browse files
committed
DEVDOCS-10237 - adding codeDepot markers
1 parent 5887983 commit e89342d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public EG008ControllerCreateTemplate(DSConfiguration config, Session session, Us
3838
}
3939

4040
@Override
41-
// ***DS.snippet.0.start
4241
protected Object doWork(WorkArguments args, ModelMap model,
4342
HttpServletResponse response) throws ApiException, IOException {
4443
// Step 1. list existing templates
@@ -63,7 +62,9 @@ protected Object doWork(WorkArguments args, ModelMap model,
6362
} else {
6463
session.setTemplateName(TEMPLATE_NAME);
6564

65+
//ds-snippet-start:eSign8Step3
6666
TemplateSummary template = CreateTemplateService.createTemplate(apiClient, accountId, CreateTemplateService.makeTemplate("Example Signer and CC template"));
67+
//ds-snippet-end:eSign8Step3
6768
session.setTemplateId(template.getTemplateId());
6869
DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName)
6970
.withMessage(
@@ -73,5 +74,4 @@ protected Object doWork(WorkArguments args, ModelMap model,
7374
}
7475
return DONE_EXAMPLE_PAGE;
7576
}
76-
// ***DS.snippet.0.end
7777
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public static EnvelopeTemplateResults searchTemplatesByName(
4545
// recipient 2 - cc
4646
// The template will be sent first to the signer.
4747
// After it is signed, a copy is sent to the cc person.
48+
//ds-snippet-start:eSign8Step2
4849
public static EnvelopeTemplate makeTemplate(String templateName) throws IOException {
4950
Document doc = EnvelopeHelpers.createDocumentFromFile(PDF_DOCUMENT_FILE_NAME, PDF_DOCUMENT_NAME, "1");
5051

@@ -195,4 +196,5 @@ public static SignHere createSignHere() {
195196
signHere.setYPosition("148");
196197
return signHere;
197198
}
199+
//ds-snippet-end:eSign8Step2
198200
}

0 commit comments

Comments
 (0)