mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4426: terminology improvement
This commit is contained in:
@@ -32,9 +32,9 @@ package org.alfresco.rest.rm.community.model.user;
|
|||||||
* @author Kristijan Conkas
|
* @author Kristijan Conkas
|
||||||
* @since 2.6
|
* @since 2.6
|
||||||
*/
|
*/
|
||||||
public class UserCapabilities
|
public class UserPermissions
|
||||||
{
|
{
|
||||||
public static final String CAPABILITY_FILING = "Filing";
|
public static final String PERMISSION_FILING = "Filing";
|
||||||
public static final String CAPABILITY_READ_RECORDS = "ReadRecords";
|
public static final String PERMISSION_READ_RECORDS = "ReadRecords";
|
||||||
public static final String CAPABILITY_FILE_RECORDS = "FileRecords";
|
public static final String PERMISSION_FILE_RECORDS = "FileRecords";
|
||||||
}
|
}
|
@@ -286,7 +286,7 @@ public class BaseRestTest extends RestTest
|
|||||||
* Helper method to add permission on a component to user
|
* Helper method to add permission on a component to user
|
||||||
* @param component {@link FilePlanComponent} on which permission should be given
|
* @param component {@link FilePlanComponent} on which permission should be given
|
||||||
* @param user {@link UserModel} for a user to be granted permission
|
* @param user {@link UserModel} for a user to be granted permission
|
||||||
* @param permission permission to be granted (e.g. "Filing")
|
* @param permission {@link UserPermissions} to be granted
|
||||||
*/
|
*/
|
||||||
// FIXME: As of December 2016 there is no v1-style API for managing RM permissions.
|
// FIXME: As of December 2016 there is no v1-style API for managing RM permissions.
|
||||||
// Until such APIs have become available, this method is just a proxy to an "old-style"
|
// Until such APIs have become available, this method is just a proxy to an "old-style"
|
||||||
|
@@ -39,7 +39,7 @@ import static org.springframework.http.HttpStatus.OK;
|
|||||||
|
|
||||||
import org.alfresco.rest.rm.community.base.BaseRestTest;
|
import org.alfresco.rest.rm.community.base.BaseRestTest;
|
||||||
import org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponent;
|
import org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponent;
|
||||||
import org.alfresco.rest.rm.community.model.user.UserCapabilities;
|
import org.alfresco.rest.rm.community.model.user.UserPermissions;
|
||||||
import org.alfresco.rest.rm.community.model.user.UserRoles;
|
import org.alfresco.rest.rm.community.model.user.UserRoles;
|
||||||
import org.alfresco.rest.rm.community.requests.FilePlanComponentAPI;
|
import org.alfresco.rest.rm.community.requests.FilePlanComponentAPI;
|
||||||
import org.alfresco.rest.rm.community.requests.RMSiteAPI;
|
import org.alfresco.rest.rm.community.requests.RMSiteAPI;
|
||||||
@@ -235,7 +235,7 @@ public class DeleteRecordTests extends BaseRestTest
|
|||||||
// grant deleteUser Filing privileges on randomFolder category, this will be
|
// grant deleteUser Filing privileges on randomFolder category, this will be
|
||||||
// inherited to randomFolder
|
// inherited to randomFolder
|
||||||
addUserPermission(filePlanComponentAPI.getFilePlanComponent(randomFolder.getParentId()),
|
addUserPermission(filePlanComponentAPI.getFilePlanComponent(randomFolder.getParentId()),
|
||||||
deleteUser, UserCapabilities.CAPABILITY_FILING);
|
deleteUser, UserPermissions.PERMISSION_FILING);
|
||||||
|
|
||||||
// create a non-electronic record in randomFolder
|
// create a non-electronic record in randomFolder
|
||||||
FilePlanComponent record = FilePlanComponent.builder()
|
FilePlanComponent record = FilePlanComponent.builder()
|
||||||
|
Reference in New Issue
Block a user