From 08b833b6773b15885461a1446a33c8eac7e975cd Mon Sep 17 00:00:00 2001 From: Claudia Agache Date: Fri, 10 Apr 2020 08:58:22 +0300 Subject: [PATCH] assignUserPermissionsOnCategoryAndRMRole method has been moved to RoleService --- .../rm/community/search/SearchRecordsV1CmisTests.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/search/SearchRecordsV1CmisTests.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/search/SearchRecordsV1CmisTests.java index 75a34b3cf7..d49a4039ca 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/search/SearchRecordsV1CmisTests.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/search/SearchRecordsV1CmisTests.java @@ -42,6 +42,7 @@ import org.alfresco.rest.rm.community.model.user.UserPermissions; import org.alfresco.rest.search.RestRequestQueryModel; import org.alfresco.rest.search.SearchResponse; import org.alfresco.rest.v0.UserTrashcanAPI; +import org.alfresco.rest.v0.service.RoleService; import org.alfresco.utility.constants.UserRole; import org.alfresco.utility.model.FileModel; import org.alfresco.utility.model.FileType; @@ -66,6 +67,9 @@ public class SearchRecordsV1CmisTests extends BaseRMRestTest @Autowired private UserTrashcanAPI userTrashcanAPI; + @Autowired + private RoleService roleService; + /** * Create a collaboration site and some in place records. */ @@ -91,8 +95,8 @@ public class SearchRecordsV1CmisTests extends BaseRMRestTest } STEP("Create record folder and some records "); RecordCategoryChild recordFolder = createCategoryFolderInFilePlan(); - assignUserPermissionsOnCategoryAndRMRole(rmUser, recordFolder.getId(), UserPermissions.PERMISSION_READ_RECORDS, - ROLE_RM_MANAGER.roleId); + roleService.assignUserPermissionsOnCategoryAndRMRole(rmUser, recordFolder.getId(), + UserPermissions.PERMISSION_READ_RECORDS, ROLE_RM_MANAGER.roleId); for (int i = 0; ++i <= 10; ) { createElectronicRecord(recordFolder.getId(), "Record" + SEARCH_TERM + i);