@univerjs/core v0.4.2 • Docs
Interface: IPermissionService
Properties
Property | Type | Defined in |
---|---|---|
permissionPointUpdate$ | Observable <IPermissionPoint <unknown >> | submodules/univer/packages/core/src/services/permission/type.ts:54 (opens in a new tab) |
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
submodules/univer/packages/core/src/services/permission/type.ts:56 (opens in a new tab)
clearPermissionMap()
clearPermissionMap(): void
Returns
void
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:60 (opens in a new tab)
composePermission()
composePermission(permissionId): IPermissionPoint<unknown>[]
Parameters
Parameter | Type |
---|---|
permissionId | string [] |
Returns
IPermissionPoint
<unknown
>[]
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:63 (opens in a new tab)
composePermission$()
composePermission$(permissionId): Observable<IPermissionPoint<unknown>[]>
Parameters
Parameter | Type |
---|---|
permissionId | string [] |
Returns
Observable
<IPermissionPoint
<unknown
>[]>
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:62 (opens in a new tab)
deletePermissionPoint()
deletePermissionPoint(permissionId): void
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
void
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:55 (opens in a new tab)
getAllPermissionPoint()
getAllPermissionPoint(): Map<string, Observable<IPermissionPoint<unknown>>>
Returns
Map
<string
, Observable
<IPermissionPoint
<unknown
>>>
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:64 (opens in a new tab)
getPermissionPoint()
getPermissionPoint<T>(permissionId): Nullable<IPermissionPoint<T>>
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:58 (opens in a new tab)
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
submodules/univer/packages/core/src/services/permission/type.ts:59 (opens in a new tab)
getShowComponents()
getShowComponents(): boolean
Returns
boolean
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:66 (opens in a new tab)
setShowComponents()
setShowComponents(showComponents): void
Parameters
Parameter | Type |
---|---|
showComponents | boolean |
Returns
void
Defined in
submodules/univer/packages/core/src/services/permission/type.ts:67 (opens in a new tab)
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
submodules/univer/packages/core/src/services/permission/type.ts:57 (opens in a new tab)