mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2553] added select box and updating role (#3148)
* [ADF-2553] start adding dropdown * [ADF-2553] added select box and updating role * [ADF-2553] added some fixes * [ADF-2554] added test for component phase 1 * [ADF-2553] fixed error and added tests * [ADF-2553] added documentation and improved api call
This commit is contained in:
38
docs/content-services/node-permission.service.md
Normal file
38
docs/content-services/node-permission.service.md
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
Added: v2.0.0
|
||||
Status: Active
|
||||
---
|
||||
# Node Permission service
|
||||
|
||||
Manages the role permissions for the content nodes
|
||||
|
||||
## Methods
|
||||
|
||||
- `getNodeRoles(node: MinimalNodeEntryEntity): Observable<string[]>`
|
||||
Gets a list of roles for the current node.
|
||||
- `node` - the target node
|
||||
- `updatePermissionRoles(node: MinimalNodeEntryEntity, updatedPermissionRole: PermissionElement): Observable<MinimalNodeEntryEntity>`
|
||||
Update the given permission for the related node
|
||||
- `node` - the target node
|
||||
- `updatedPermissionRole` the permission role to update/add
|
||||
|
||||
- `getGroupMemeberByGroupName(groupName: string, opts?: any): Observable<GroupMemberPaging>`
|
||||
Perform a call to the groups api to retrieve all the members related to that group name.
|
||||
- `groupName` the members group name
|
||||
- `opts` additional parameters to perform the call
|
||||
|
||||
|
||||
## Details
|
||||
|
||||
Content Services supports
|
||||
This service needs the support for the groups api fo content services that is available from version 5.2.1
|
||||
|
||||
See the
|
||||
[Groups API](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/GroupssApi.md)
|
||||
in the Alfresco JS API for more information about the types returned by Tag
|
||||
service methods and for the implementation of the REST API the service is
|
||||
based on.
|
||||
|
||||
## See also
|
||||
|
||||
- [Permission list component](permission-list.component.md)
|
@@ -23,7 +23,15 @@ Shows node permissions as a table.
|
||||
| ---- | ---- | ------------- | ----------- |
|
||||
| nodeId | `string` | `null` | ID of the node whose permissions you want to show. |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---- | ---- | ----------- |
|
||||
| update | `PermissionElement` | Emitted when the permission is updated. |
|
||||
|
||||
## Details
|
||||
|
||||
This component uses a [Datatable component](../core/datatable.component.md) to show the
|
||||
permissions retrieved from the [Node service](../core/node.service.md).
|
||||
permissions retrieved from the [Node service](../core/node.service.md).
|
||||
For the locallyset permissions a role dropdown will be showed allowing the user to change it.
|
||||
When user select a new value, the permission role is automatically updated and the `update` event is thrown.
|
Reference in New Issue
Block a user