API Reference
@univerjs
@univerjs/core
interfaces
Ipermissionservice

@univerjs/core v0.4.2Docs


Interface: IPermissionService

Properties

PropertyTypeDefined in
permissionPointUpdate$Observable<IPermissionPoint<unknown>>submodules/univer/packages/core/src/services/permission/type.ts:54 (opens in a new tab)

Methods

addPermissionPoint()

addPermissionPoint<T>(permissionPoint): boolean

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionPointIPermissionPoint<T> | BehaviorSubject<IPermissionPoint<T>>

Returns

boolean

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:56 (opens in a new tab)


clearPermissionMap()

clearPermissionMap(): void

Returns

void

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:60 (opens in a new tab)


composePermission()

composePermission(permissionId): IPermissionPoint<unknown>[]

Parameters

ParameterType
permissionIdstring[]

Returns

IPermissionPoint<unknown>[]

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:63 (opens in a new tab)


composePermission$()

composePermission$(permissionId): Observable<IPermissionPoint<unknown>[]>

Parameters

ParameterType
permissionIdstring[]

Returns

Observable<IPermissionPoint<unknown>[]>

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:62 (opens in a new tab)


deletePermissionPoint()

deletePermissionPoint(permissionId): void

Parameters

ParameterType
permissionIdstring

Returns

void

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:55 (opens in a new tab)


getAllPermissionPoint()

getAllPermissionPoint(): Map<string, Observable<IPermissionPoint<unknown>>>

Returns

Map<string, Observable<IPermissionPoint<unknown>>>

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:64 (opens in a new tab)


getPermissionPoint()

getPermissionPoint<T>(permissionId): Nullable<IPermissionPoint<T>>

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

Nullable<IPermissionPoint<T>>

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:58 (opens in a new tab)


getPermissionPoint$()

getPermissionPoint$<T>(permissionId): Nullable<Observable<IPermissionPoint<T>>>

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

Nullable<Observable<IPermissionPoint<T>>>

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:59 (opens in a new tab)


getShowComponents()

getShowComponents(): boolean

Returns

boolean

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:66 (opens in a new tab)


setShowComponents()

setShowComponents(showComponents): void

Parameters

ParameterType
showComponentsboolean

Returns

void

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:67 (opens in a new tab)


updatePermissionPoint()

updatePermissionPoint<T>(permissionId, value): void

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring
valueT

Returns

void

Defined in

submodules/univer/packages/core/src/services/permission/type.ts:57 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.