libs/core/schemas/src/file-schemas/acl-descriptor.model.ts
Properties |
|
aclKey | |
Type |
string
|
Description
|
ACL Identifier for the given resource |
aclType | |
Type |
AclType
|
Description
|
The type of this ACL resource. "display" denotes a resource that can be hidden or shown but is not editable. A resource of type "form-control" can be shown or hidden as well as made editable or readonly. |
default (Optional) | |
Type |
AclDefault
|
Description
|
The optional default effect for this resource |
description (Optional) | |
Type |
string
|
Description
|
Optional extended description of the resource |
label | |
Type |
string
|
Description
|
Readable label to be displayed on consuming applications like the UI-Editor |
export interface AclDescriptor {
/**
* ACL Identifier for the given resource
*/
aclKey: string;
/**
* The type of this ACL resource. "display" denotes a resource that can be hidden or shown
* but is not editable. A resource of type "form-control" can be shown or hidden as well as
* made editable or readonly.
*/
aclType: AclType;
/**
* The optional default effect for this resource
*/
default?: AclDefault;
/**
* Optional extended description of the resource
*/
description?: string;
/**
* Readable label to be displayed on consuming applications like the UI-Editor
*/
label: string;
}
/**
* The type of this ACL resource. "display" denotes a resource that can be hidden or shown
* but is not editable. A resource of type "form-control" can be shown or hidden as well as
* made editable or readonly.
*/
export const enum AclType {
Display = 'display',
FormControl = 'form-control'
}
/**
* The optional default effect for this resource
*/
export const enum AclDefault {
Readonly = 'readonly',
Disabled = 'disabled',
Hidden = 'hidden'
}