Files
alfresco-ng2-components/docs/content-services/node-permission.service.md
Vito 79789cb070 [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
2018-04-08 16:25:51 +01:00

1.3 KiB

Added, Status
Added Status
v2.0.0 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 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