@univerjscoreclassesPermissionservice

@univerjs/core v0.5.0-beta.1 • Docs


Class: PermissionService

Extends

Implements

Constructors

new PermissionService()

new PermissionService(): PermissionService

Returns

PermissionService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93
permissionPointUpdate$publicObservable<IPermissionPoint<unknown>>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:28

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

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:48


clearPermissionMap()

clearPermissionMap(): void

Returns

void

Implementation of

IPermissionService.clearPermissionMap

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:75


composePermission()

composePermission(permissionIdList): IPermissionPoint<any>[]

Parameters

ParameterType
permissionIdListstring[]

Returns

IPermissionPoint<any>[]

Implementation of

IPermissionService.composePermission

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:108


composePermission$()

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

Parameters

ParameterType
permissionIdListstring[]

Returns

Observable<IPermissionPoint<any>[]>

Implementation of

IPermissionService.composePermission$

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:91


deletePermissionPoint()

deletePermissionPoint(permissionId): void

Parameters

ParameterType
permissionIdstring

Returns

void

Implementation of

IPermissionService.deletePermissionPoint

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:40


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100


getAllPermissionPoint()

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

Returns

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

Implementation of

IPermissionService.getAllPermissionPoint

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:120


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

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:79


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

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:85


getShowComponents()

getShowComponents(): boolean

Returns

boolean

Implementation of

IPermissionService.getShowComponents

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:36


setShowComponents()

setShowComponents(showComponents): void

Parameters

ParameterType
showComponentsboolean

Returns

void

Implementation of

IPermissionService.setShowComponents

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:32


updatePermissionPoint()

updatePermissionPoint<T>(permissionId, value): void

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring
valueT

Returns

void

Implementation of

IPermissionService.updatePermissionPoint

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:63