|
25 | 25 | @Controller |
26 | 26 | @RequestMapping("/eg045") |
27 | 27 | public class EG045ControllerDeleteRestoreEnvelope extends AbstractEsignatureController { |
| 28 | + public static final String RECYCLE_BIN_FOLDER_ID = "recyclebin"; |
| 29 | + |
28 | 30 | public static final String SENT_ITEMS_FOLDER_NAME = "Sent items"; |
29 | 31 |
|
30 | 32 | public static final String EXAMPLE_NUMBER = "/eg045"; |
@@ -59,7 +61,8 @@ protected Object doWork(WorkArguments args, ModelMap model, |
59 | 61 | DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName) |
60 | 62 | .withMessage( |
61 | 63 | MessageFormat.format( |
62 | | - getTextForCodeExampleByApiType().AdditionalPage.get(0).ResultsPageText, |
| 64 | + getTextForCodeExampleByApiType().AdditionalPage |
| 65 | + .get(0).ResultsPageText, |
63 | 66 | envelopeId)) |
64 | 67 | .withRedirect(EXAMPLE_NUMBER + RESTORE_ENVELOPE) |
65 | 68 | .addToModel(model, config); |
@@ -91,13 +94,15 @@ public String postRestoreEnvelope(WorkArguments args, ModelMap model) throws Exc |
91 | 94 | ApiClient apiClient = createApiClient(session.getBasePath(), user.getAccessToken()); |
92 | 95 |
|
93 | 96 | FoldersResponse availableFolders = DeleteRestoreEnvelopeService.getFolders(apiClient, accountId); |
94 | | - Folder folder = DeleteRestoreEnvelopeService.getFolderIdByName(availableFolders.getFolders(), folderName); |
| 97 | + Folder folder = DeleteRestoreEnvelopeService.getFolderIdByName(availableFolders.getFolders(), |
| 98 | + folderName); |
95 | 99 |
|
96 | 100 | if (folder == null) { |
97 | 101 | DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName) |
98 | 102 | .withMessage( |
99 | 103 | MessageFormat.format( |
100 | | - getTextForCodeExampleByApiType().AdditionalPage.get(1).ResultsPageText, |
| 104 | + getTextForCodeExampleByApiType().AdditionalPage |
| 105 | + .get(1).ResultsPageText, |
101 | 106 | folderName)) |
102 | 107 | .withRedirect(EXAMPLE_NUMBER + RESTORE_ENVELOPE) |
103 | 108 | .addToModel(model, config); |
|
0 commit comments