[ADF-5034] [GroupCloudComponent] Provide a way to make pre-selected groups read-only. (#5306)

* Added readonly property to the IdentityGroupModel.
* Updated unit tests.
* Changed class to interface.
* Updated doc
This commit is contained in:
siva kumar
2019-12-04 18:56:56 +05:30
committed by Maurizio Vitale
parent c01f2744b6
commit cc4c9bc567
7 changed files with 493 additions and 291 deletions

View File

@@ -17,27 +17,15 @@
import { Pagination } from '@alfresco/js-api';
export class IdentityGroupModel {
id: string;
name: string;
path: string;
realmRoles: string[];
clientRoles: any;
access: any;
attributes: any;
constructor(obj?: any) {
if (obj) {
this.id = obj.id || null;
this.name = obj.name || null;
this.path = obj.path || null;
this.realmRoles = obj.realmRoles || null;
this.clientRoles = obj.clientRoles || null;
this.access = obj.access || null;
this.attributes = obj.attributes || null;
}
}
export interface IdentityGroupModel {
id?: string;
name?: string;
path?: string;
realmRoles?: string[];
clientRoles?: any;
access?: any;
attributes?: any;
readonly?: boolean;
}
export interface IdentityGroupSearchParam {
@@ -50,17 +38,9 @@ export interface IdentityGroupQueryResponse {
pagination: Pagination;
}
export class IdentityGroupQueryCloudRequestModel {
export interface IdentityGroupQueryCloudRequestModel {
first: number;
max: number;
constructor(obj?: any) {
if (obj) {
this.first = obj.first;
this.max = obj.max;
}
}
}
export interface IdentityGroupCountModel {