Files
alfresco-ng2-components/docs/content-services/node-permission.service.md
Andy Stark b393708514 [ADF-2905] Updated JSDocs for content services (#3262)
* [ADF-2905] Updated JSDocs for content services

* [ADF-2905] Updated JSDocs for content services

* [ADF-2911] Improved error message handling in doc tools (#3267)

* [ADF-2772] Sidenav Layout - UX review (#3264)

* Add border-right in mat-sidenav

* workaround for enum issue in js-api

* fix the AoT buid error

* fix AoT build error

* fix export problem for AoT

* [ADF-2905] Updated JSDocs for content services

* [ADF-2905] Updated JSDocs for content services
2018-05-04 11:11:11 +01:00

1.7 KiB

Added, Status
Added Status
v2.0.0 Active

Node Permission service

Manages the role permissions for the 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 members
    • opts?: 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 node
    • updatedPermissionRole: PermissionElement = null - Permission role to update or add
    • Returns Observable<MinimalNodeEntryEntity> - Node with updated permission

Details

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