@univerjscoreclassesPermissionservice

@univerjs/core v0.5.4


Class: PermissionService

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

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:96
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

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
_item| IPermissionPoint<T> | BehaviorSubject<IPermissionPoint<T>>

Returns

boolean

Implementation of

IPermissionService.addPermissionPoint


clearPermissionMap()

clearPermissionMap(): void

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

Returns

void

Implementation of

IPermissionService.clearPermissionMap


composePermission()

composePermission(permissionIdList): IPermissionPoint<any>[]

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

Parameters

ParameterType
permissionIdListstring[]

Returns

IPermissionPoint<any>[]

Implementation of

IPermissionService.composePermission


composePermission$()

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

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

Parameters

ParameterType
permissionIdListstring[]

Returns

Observable<IPermissionPoint<any>[]>

Implementation of

IPermissionService.composePermission$


deletePermissionPoint()

deletePermissionPoint(permissionId): void

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

Parameters

ParameterType
permissionIdstring

Returns

void

Implementation of

IPermissionService.deletePermissionPoint


dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getAllPermissionPoint()

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

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

Returns

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

Implementation of

IPermissionService.getAllPermissionPoint


getPermissionPoint()

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

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

| undefined | IPermissionPoint<T>

Implementation of

IPermissionService.getPermissionPoint


getPermissionPoint$()

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

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

| undefined | Observable<IPermissionPoint<T>>

Implementation of

IPermissionService.getPermissionPoint$


getShowComponents()

getShowComponents(): boolean

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

Returns

boolean

Implementation of

IPermissionService.getShowComponents


setShowComponents()

setShowComponents(showComponents): void

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

Parameters

ParameterType
showComponentsboolean

Returns

void

Implementation of

IPermissionService.setShowComponents


updatePermissionPoint()

updatePermissionPoint<T>(permissionId, value): void

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring
valueT

Returns

void

Implementation of

IPermissionService.updatePermissionPoint