Acl
The Acl class is used as a wrapper for reading and setting permissions on an entity level.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
|
|
public |
entity: * |
|
public set |
globallyReadable(gr: boolean) |
|
public set |
globallyWritable(gw: boolean) |
|
public get |
readerGroups: string[]: * |
|
public get |
|
|
public get |
writerGroups: string[]: * |
|
public get |
|
Method Summary
Public Methods | ||
public |
Add a reader. |
|
public |
addReaderGroup(group: string): Acl Add a reader group. |
|
public |
Add a writer. |
|
public |
addWriterGroup(group: string): Acl Add a writer group. |
|
public |
Check if global reading is allowed. |
|
public |
Check if global writing is allowed. |
|
public |
removeReader(user: string): Acl Remove a reader. |
|
public |
removeReaderGroup(group: string): Acl Remove a reader group. |
|
public |
removeWriter(user: string): Acl Remove a writer. |
|
public |
removeWriterGroup(group: string): Acl Remove a writer group. |
|
public |
The acl as a plain object. |
Public Constructors
public constructor() source
Public Members
public entity: * source
Public Methods
public addReader(user: string): Acl source
Add a reader.
Params:
Name | Type | Attribute | Description |
user | string | Reader |
public addReaderGroup(group: string): Acl source
Add a reader group.
Params:
Name | Type | Attribute | Description |
group | string | Reader group |
public addWriter(user: string): Acl source
Add a writer.
Params:
Name | Type | Attribute | Description |
user | string | Writer |
public addWriterGroup(group: string): Acl source
Add a writer group.
Params:
Name | Type | Attribute | Description |
group | string | Writer group |
public removeReader(user: string): Acl source
Remove a reader.
Params:
Name | Type | Attribute | Description |
user | string | Reader |
public removeReaderGroup(group: string): Acl source
Remove a reader group.
Params:
Name | Type | Attribute | Description |
group | string | Reader group |
public removeWriter(user: string): Acl source
Remove a writer.
Params:
Name | Type | Attribute | Description |
user | string | Writer |