@univerjscoreinterfacesIpermissionservice

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


Interface: IPermissionService

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

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

Returns

boolean

Defined in

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


clearPermissionMap()

clearPermissionMap(): void

Returns

void

Defined in

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


composePermission()

composePermission(permissionId): IPermissionPoint<unknown>[]

Parameters

ParameterType
permissionIdstring[]

Returns

IPermissionPoint<unknown>[]

Defined in

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


composePermission$()

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

Parameters

ParameterType
permissionIdstring[]

Returns

Observable<IPermissionPoint<unknown>[]>

Defined in

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


deletePermissionPoint()

deletePermissionPoint(permissionId): void

Parameters

ParameterType
permissionIdstring

Returns

void

Defined in

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


getAllPermissionPoint()

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

Returns

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

Defined in

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


getPermissionPoint()

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

Nullable<IPermissionPoint<T>>

Defined in

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


getPermissionPoint$()

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

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring

Returns

Nullable<Observable<IPermissionPoint<T>>>

Defined in

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


getShowComponents()

getShowComponents(): boolean

Returns

boolean

Defined in

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


setShowComponents()

setShowComponents(showComponents): void

Parameters

ParameterType
showComponentsboolean

Returns

void

Defined in

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


updatePermissionPoint()

updatePermissionPoint<T>(permissionId, value): void

Type Parameters

Type ParameterDefault type
Tboolean

Parameters

ParameterType
permissionIdstring
valueT

Returns

void

Defined in

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