mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* [ACS-4571] move SecurityControlsService to ADF content lib * [ACS-4571] build fix * [ACS-4571] build fix * [ACS-4571] build fix * [ACS-4571] resolved ts-ignore in unit-tests * [ACS-4571] renamed AdminCcSecurityControlsServicesModule to SecurityControlsServiceModule * [ACS-4571] return types added * [ACS-4571] added docs for SecurityControlsService * [ACS-4571] docs typo fix * [ACS-4571] docs typo fix * [ACS-4571] linting * [ACS-4571] fixed failing test * [ACS-4571] added missing unit tests * [ACS-4571] linting * [ACS-4571] set the default maxItems to UserPreferencesService.paginationSize * [ACS-4571] changed createSecurityMarks() return type * [ACS-4571] moved import line up * [ACS-4571] finish loading status in some functions
6.5 KiB
6.5 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Security Controls service | v2.0.0 | Active | 2023-02-21 |
Security Controls service
Manages security groups & marks in Content Services.
Class members
Methods
- getSecurityGroup(skipCount?:
number
, maxItems?:number
, include?:string
):Promise
<SecurityControlsGroupResponse>
Get security groups.- skipCount:
number
- The number of entities that exist in the collection before those included in this list. - maxItems:
number
- The maximum number of items to return in the list. - include:
string
- Additional information about the security group. - Returns
Promise
<SecurityControlsGroupResponse>
- skipCount:
- createSecurityGroup(input:
SecurityGroupBody
):Observable
<SecurityGroupEntry>
Creates a security group.- input:
SecurityGroupBody
- Security group. - Returns
Observable
<SecurityGroupEntry>
- input:
- createSecurityMarks(securityGroupId:
string
, input:SecurityMarkBody[]
):Promise
<SecurityMarkPaging | SecurityMarkEntry>
Create security marks.- securityGroupId:
string
- The key for the security group id. - SecurityMarkBody:
SecurityMarkBody[]
- Node security marks list. - Returns
Promise
<SecurityMarkPaging | SecurityMarkEntry>
- securityGroupId:
- getSecurityMark(securityGroupId:
string
, skipCount?:number
, include?:string
):Promise
<SecurityControlsMarkResponse>
Get security mark value.- securityGroupId:
string
- The key for the security group id. - skipCount:
number
- The number of entities that exist in the collection before those included in this list. - include:
string
- The key for the security mark is in use or not. - Returns
Promise
<SecurityControlsMarkResponse>
- securityGroupId:
- updateSecurityGroup(securityGroupId:
string
, input:SecurityGroupBody
, opts?:any
):Promise
<SecurityGroupEntry>
Update a security groups information.- securityGroupId:
string
- The key of security group id for which info is required. - input:
SecurityGroupBody
- Security group. - opts:
any
- (Optional) Extra options supported by JS-API. - Returns
Promise
<SecurityGroupEntry>
- securityGroupId:
- updateSecurityMark(securityGroupId:
string
, securityMarkId:string
, input:SecurityMarkBody
):Promise
<SecurityMarkEntry>
Updates Security Mark value.- securityGroupId:
string
- The key for the security group id. - securityMarkId:
string
- The key for the security mark is in use or not. - input:
SecurityMarkBody
- Security mark. - Returns
Promise
<SecurityMarkEntry>
- securityGroupId:
- deleteSecurityGroup(securityGroupId:
string
):Observable
<SecurityGroupEntry>
Delete security group.- securityGroupId:
string
- The key for the security group id. - Returns
Observable
<SecurityGroupEntry>
- securityGroupId:
- deleteSecurityMark(securityGroupId:
string
, securityMarkId:string
):Promise
<SecurityMarkEntry>
Delete security mark.- securityGroupId:
string
- The key for the security group id. - securityMarkId:
string
- The key for the security mark id. - Returns
Promise
<SecurityMarkEntry>
- securityGroupId:
- getClearancesForAuthority(authorityName:
string
, skipCount?:number
, maxItems?:number
):Observable
<AuthorityClearanceGroupPaging>
Get the authority clearances for a single user/group.- authorityName:
string
- The name for the authority for which the clearance is to be fetched. - skipCount:
number
- The number of entities that exist in the collection before those included in this list. - maxItems:
number
- The maximum number of items to return in the list. - Returns
Observable
<AuthorityClearanceGroupPaging>
- authorityName:
- updateClearancesForAuthority(authorityName:
string
, securityMarksList:NodeSecurityMarkBody[]
):Observable
<SecurityMarkEntry | SecurityMarkPaging>
Updates the authority clearance.- authorityName:
string
- The name for the authority for which the clearance is to be updated. - securityMarksList:
NodeSecurityMarkBody[]
- Node security marks list. - Returns
Observable
<SecurityMarkEntry | SecurityMarkPaging>
- authorityName:
Properties
Name | Type | Description |
---|---|---|
groupsPaginated$ | Observable <SecurityControlsGroupResponse> |
Current paginated groups. |
marksPaginated$ | Observable <SecurityControlsMarkResponse> |
Current paginated marks. |
reloadSecurityControls$ | Observable <void> |
|
reloadAuthorityClearance$ | Observable <void> |
|
loading$ | Observable <boolean> |
Current loading state. |