Skip to content

Commit 5b868f7

Browse files
committed
DEVDOCS-10407 adding codeDepot markers
1 parent a4529a3 commit 5b868f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,28 @@ protected void onInitModel(WorkArguments args, ModelMap model) throws Exception
4848
PermissionProfileInformation permissionsInfo = accountsApi.listPermissions(accountId);
4949
model.addAttribute(MODEL_LIST_PROFILES, permissionsInfo.getPermissionProfiles());
5050

51+
//ds-snippet-start:eSign25Step4
5152
GroupsApi groupsApi = new GroupsApi(accountsApi.getApiClient());
5253
GroupInformation groupInformation = groupsApi.listGroups(accountId);
5354
model.addAttribute(MODEL_LIST_GROUPS, groupInformation.getGroups());
55+
//ds-snippet-end:eSign25Step4
5456
}
5557

5658
@Override
5759
protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse response) throws ApiException {
58-
// Step 2: Construct your API headers
60+
// Construct your API headers
5961
ApiClient apiClient = createApiClient(session.getBasePath(), user.getAccessToken());
6062

63+
//ds-snippet-start:eSign25Step3
6164
GroupInformation newGroupInfo = PermissionSetUserGroupsService.permissionSetUserGroups(
6265
apiClient,
6366
args.getGroupId(),
6467
args.getProfileId(),
6568
session.getAccountId()
6669
);
70+
//ds-snippet-end:eSign25Step3
6771

68-
// Step 4: Show result
72+
// Show result
6973
ErrorDetails errorDetails = newGroupInfo.getGroups().get(0).getErrorDetails();
7074
if (errorDetails != null) {
7175
new DoneExample()

0 commit comments

Comments
 (0)