public interface DocumentRoleUpdate
DocumentRole
. These methods can only add or remove manually assigned users,
not users added with Dynamic Access Control.
DocumentRoleService.newDocumentRoleUpdate(String, DocumentVersion)
returns this object. You can then use
DocumentRoleService.batchUpdateDocumentRoles(List)
to execute the update.Modifier and Type | Method and Description |
---|---|
void |
addGroups(List<Group> groups)
Adds groups to a role.
|
void |
addUsers(List<String> userIds)
Adds users to a role.
|
void |
removeGroups(List<Group> groups)
Removes groups from a role.
|
void |
removeUsers(List<String> userIds)
Removes a user from a role.
|
void addUsers(List<String> userIds)
DocumentRole
.userIds
- List of IDs of the users to add to the role. Users who already exist in the role are ignored.
Invalid userIds result in batch operation errors under RecordRoleService.batchUpdateRecordRoles(List)
.
Cannot be null or contain null elements.void removeUsers(List<String> userIds)
DocumentRole
.userIds
- ID of the user to add to the role. Users who do not exist in the role are ignored.
Invalid userIds result in batch operation errors under RecordRoleService.batchUpdateRecordRoles(List)
.
Cannot be null or contain null elements.void addGroups(List<Group> groups)
DocumentRole
.groups
- List of groups to add to the role. Groups who already exist in the role are ignored.
Invalid groups result in batch operation errors under RecordRoleService.batchUpdateRecordRoles(List)
.
Cannot be null or contain null elements.void removeGroups(List<Group> groups)
DocumentRole
.groups
- List of groups to remove from the role. Groups that do not exist in the role are ignored.
Invalid groups result in batch operation errors under RecordRoleService.batchUpdateRecordRoles(List)
.
Cannot be null or contain null elements.Copyright © Veeva Systems 2017–2020. All rights reserved.