mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Adjust ADF to latest JS-API version (#8882)
* Bump js-api version * Fix imports * Fix content-services unit tests * Fix process-services unit tests * [ci:force] Trigger CI * Fix code smells * Fix orderBy param * Fix code smells * Fix failing unit tests * Bump js-api version and align with new changes * Remove dangling coma * Fix delete return type * Add correct date format in task filters e2es * Fix typing in task filter sorting * Fix activiti content api import * Add null check for has avatar * Make User class instead of type * Fix user type in comment model * Fix sonar cloud issue * Type fixes * Update js-api version
This commit is contained in:
@@ -30,7 +30,8 @@ import {
|
||||
SecurityGroupPaging,
|
||||
AuthorityClearanceApi,
|
||||
AuthorityClearanceGroupPaging,
|
||||
NodeSecurityMarkBody
|
||||
NodeSecurityMarkBody,
|
||||
GsGroupInclude
|
||||
} from '@alfresco/js-api';
|
||||
import { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import { finalize } from 'rxjs/operators';
|
||||
@@ -125,8 +126,8 @@ export class SecurityControlsService {
|
||||
const payload: SecurityGroupBody = {
|
||||
...input
|
||||
};
|
||||
const opts = {
|
||||
DEFAULT_INCLUDE
|
||||
const opts: GsGroupInclude = {
|
||||
include: DEFAULT_INCLUDE
|
||||
};
|
||||
const promise = this.groupsApi.createSecurityGroup(payload, opts);
|
||||
|
||||
@@ -169,19 +170,16 @@ export class SecurityControlsService {
|
||||
*
|
||||
* @param securityGroupId The key for the security group id.
|
||||
* @param skipCount The number of entities that exist in the collection before those included in this list.
|
||||
* @param include The key for the security mark is in use or not
|
||||
* @return Promise<SecurityControlsMarkResponse>
|
||||
*/
|
||||
getSecurityMark(
|
||||
securityGroupId: string,
|
||||
skipCount = DEFAULT_SKIP_COUNT,
|
||||
include = DEFAULT_INCLUDE
|
||||
skipCount = DEFAULT_SKIP_COUNT
|
||||
): Promise<SecurityControlsMarkResponse> {
|
||||
let securityControlsMarkResponse: SecurityControlsMarkResponse;
|
||||
return new Promise((resolve, reject) => {
|
||||
this.marksApi
|
||||
.getSecurityMarks(securityGroupId, {
|
||||
include,
|
||||
skipCount
|
||||
})
|
||||
.then((response: SecurityMarkPaging) => {
|
||||
@@ -276,11 +274,11 @@ export class SecurityControlsService {
|
||||
* Delete security group
|
||||
*
|
||||
* @param securityGroupId The key for the security group id.
|
||||
* @return Observable<SecurityGroupEntry>
|
||||
* @return Observable<void>
|
||||
*/
|
||||
deleteSecurityGroup(
|
||||
securityGroupId: string
|
||||
): Observable<SecurityGroupEntry> {
|
||||
): Observable<void> {
|
||||
this.loadingSource.next(true);
|
||||
const promise = this.groupsApi.deleteSecurityGroup(securityGroupId);
|
||||
|
||||
|
Reference in New Issue
Block a user