mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
removed duplicate methods
This commit is contained in:
@@ -615,37 +615,6 @@ public class BaseRMRestTest extends RestTest
|
|||||||
recordCategoryAPI.deleteRecordCategory(recordCategoryId);
|
recordCategoryAPI.deleteRecordCategory(recordCategoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper method to create a test user with rm role
|
|
||||||
*
|
|
||||||
* @param userRole the rm role
|
|
||||||
* @return the created user model
|
|
||||||
*/
|
|
||||||
protected UserModel createUserWithRMRole(String userRole)
|
|
||||||
{
|
|
||||||
UserModel rmUser = getDataUser().createRandomTestUser();
|
|
||||||
getRestAPIFactory().getRMUserAPI().assignRoleToUser(rmUser.getUsername(), userRole);
|
|
||||||
assertStatusCode(OK);
|
|
||||||
return rmUser;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper method to create a test user with rm role and permissions over the record category
|
|
||||||
*
|
|
||||||
* @param userRole the rm role
|
|
||||||
* @param userPermission the permissions over the record category
|
|
||||||
* @param recordCategory the category on which user has permissions
|
|
||||||
* @return the created user model
|
|
||||||
*/
|
|
||||||
protected UserModel createUserWithRMRoleAndCategoryPermission(String userRole, RecordCategory recordCategory,
|
|
||||||
UserPermissions userPermission)
|
|
||||||
{
|
|
||||||
UserModel rmUser = createUserWithRMRole(userRole);
|
|
||||||
getRestAPIFactory().getRMUserAPI().addUserPermission(recordCategory.getId(), rmUser, userPermission);
|
|
||||||
assertStatusCode(OK);
|
|
||||||
return rmUser;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns search results for the given search term
|
* Returns search results for the given search term
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user