@univerjscoreinterfacesIpermissionservice

@univerjs/core v0.5.4


Interface: IPermissionService

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

Properties

PropertyTypeDefined in
permissionPointUpdate$Observable<IPermissionPoint<unknown>>packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/type.ts:54

Methods

addPermissionPoint()

addPermissionPoint<T>(permissionPoint): boolean

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionPoint| IPermissionPoint<T> | BehaviorSubject<IPermissionPoint<T>>

Returns

boolean


clearPermissionMap()

clearPermissionMap(): void

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

Returns

void


composePermission()

composePermission(permissionId): IPermissionPoint<unknown>[]

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

Parameters

ParameterType
permissionIdstring[]

Returns

IPermissionPoint<unknown>[]


composePermission$()

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

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

Parameters

ParameterType
permissionIdstring[]

Returns

Observable<IPermissionPoint<unknown>[]>


deletePermissionPoint()

deletePermissionPoint(permissionId): void

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

Parameters

ParameterType
permissionIdstring

Returns

void


getAllPermissionPoint()

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

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

Returns

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


getPermissionPoint()

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

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

Nullable<IPermissionPoint<T>>


getPermissionPoint$()

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

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

Nullable<Observable<IPermissionPoint<T>>>


getShowComponents()

getShowComponents(): boolean

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

Returns

boolean


setShowComponents()

setShowComponents(showComponents): void

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

Parameters

ParameterType
showComponentsboolean

Returns

void


updatePermissionPoint()

updatePermissionPoint<T>(permissionId, value): void

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring
valueT

Returns

void