mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* [ADF-2824] Reviewed card view docs * [ADF-2824] Reviewed doc for core and content services * [ADF-2824] Added class name exception to prop script
1.7 KiB
1.7 KiB
Added, Status, Last reviewed
Added | Status | Last reviewed |
---|---|---|
v2.0.0 | Active | 2018-05-08 |
Node Permission service
Manages role permissions for content nodes.
Class members
Methods
getGroupMemeberByGroupName(groupName: string = null, opts?: any = null): Observable<GroupMemberPaging>
Gets all members related to a group name.groupName: string = null
- Name of group to look for membersopts?: any = null
- (Optional) Extra options supported by JSAPI- Returns
Observable<GroupMemberPaging>
- List of members
getNodeRoles(node: MinimalNodeEntryEntity = null): Observable<string[]>
Gets a list of roles for the current node.node: MinimalNodeEntryEntity = null
- The target node- Returns
Observable<string[]>
- Array of strings representing the roles
updatePermissionRoles(node: MinimalNodeEntryEntity = null, updatedPermissionRole: PermissionElement = null): Observable<MinimalNodeEntryEntity>
Updates the permission for a node.node: MinimalNodeEntryEntity = null
- Target nodeupdatedPermissionRole: PermissionElement = null
- Permission role to update or add- Returns
Observable<MinimalNodeEntryEntity>
- Node with updated permission
Details
This service requires the Content Services Groups API, which is available from version 5.2.1.
See the Groups API docs in the Alfresco JS API for more information about the types returned by the methods and for the implementation of the REST API the service is based on.