@univerjs/core v0.5.0-beta.1 • Docs
Interface: IPermissionService
Properties
Property | Type | Defined 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 Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionPoint | IPermissionPoint <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
Parameter | Type |
---|---|
permissionId | string [] |
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
Parameter | Type |
---|---|
permissionId | string [] |
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
Parameter | Type |
---|---|
permissionId | string |
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 Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
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 Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
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
Parameter | Type |
---|---|
showComponents | boolean |
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 Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
value | T |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/type.ts:57