mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5416: REST API Tests for Folder Classification - various improvements
This commit is contained in:
@@ -541,10 +541,10 @@ public class BaseRMRestTest extends RestTest
|
|||||||
* @param categoryId the id of the category to assign permissions for
|
* @param categoryId the id of the category to assign permissions for
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public void assignFillingPermissionsOnCategory(UserModel user, String categoryId) throws Exception
|
public void assignFillingPermissionsOnCategory(UserModel user, String categoryId, String userPermission, String userRole) throws Exception
|
||||||
{
|
{
|
||||||
getRestAPIFactory().getRMUserAPI().addUserPermission(categoryId, user, PERMISSION_FILING);
|
getRestAPIFactory().getRMUserAPI().addUserPermission(categoryId, user, userPermission);
|
||||||
rmRolesAndActionsAPI.assignUserToRole(dataUser.getAdminUser().getUsername(),
|
rmRolesAndActionsAPI.assignUserToRole(getAdminUser().getUsername(),
|
||||||
dataUser.getAdminUser().getPassword(), user.getUsername(), ROLE_RM_USER);
|
getAdminUser().getPassword(), user.getUsername(), userRole);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user