API Reference
@univerjs
@univerjs/core
classes
Permissionservice

@univerjs/core v0.4.2Docs


Class: PermissionService

Extends

Implements

Constructors

new PermissionService()

new PermissionService(): PermissionService

Returns

PermissionService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
permissionPointUpdate$publicObservable<IPermissionPoint<unknown>>undefined-submodules/univer/packages/core/src/services/permission/permission.service.ts:28 (opens in a new tab)

Methods

addPermissionPoint()

addPermissionPoint<T>(_item): boolean

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
_itemIPermissionPoint<T> | BehaviorSubject<IPermissionPoint<T>>

Returns

boolean

Implementation of

IPermissionService.addPermissionPoint

Defined in

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


clearPermissionMap()

clearPermissionMap(): void

Returns

void

Implementation of

IPermissionService.clearPermissionMap

Defined in

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


composePermission()

composePermission(permissionIdList): IPermissionPoint<any>[]

Parameters

ParameterType
permissionIdListstring[]

Returns

IPermissionPoint<any>[]

Implementation of

IPermissionService.composePermission

Defined in

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


composePermission$()

composePermission$(permissionIdList): Observable<IPermissionPoint<any>[]>

Parameters

ParameterType
permissionIdListstring[]

Returns

Observable<IPermissionPoint<any>[]>

Implementation of

IPermissionService.composePermission$

Defined in

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


deletePermissionPoint()

deletePermissionPoint(permissionId): void

Parameters

ParameterType
permissionIdstring

Returns

void

Implementation of

IPermissionService.deletePermissionPoint

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getAllPermissionPoint()

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

Returns

Map<string, BehaviorSubject<IPermissionPoint<unknown>>>

Implementation of

IPermissionService.getAllPermissionPoint

Defined in

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


getPermissionPoint()

getPermissionPoint<T>(permissionId): undefined | IPermissionPoint<T>

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

undefined | IPermissionPoint<T>

Implementation of

IPermissionService.getPermissionPoint

Defined in

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


getPermissionPoint$()

getPermissionPoint$<T>(permissionId): undefined | Observable<IPermissionPoint<T>>

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

undefined | Observable<IPermissionPoint<T>>

Implementation of

IPermissionService.getPermissionPoint$

Defined in

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


getShowComponents()

getShowComponents(): boolean

Returns

boolean

Implementation of

IPermissionService.getShowComponents

Defined in

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


setShowComponents()

setShowComponents(showComponents): void

Parameters

ParameterType
showComponentsboolean

Returns

void

Implementation of

IPermissionService.setShowComponents

Defined in

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


updatePermissionPoint()

updatePermissionPoint<T>(permissionId, value): void

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring
valueT

Returns

void

Implementation of

IPermissionService.updatePermissionPoint

Defined in

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


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