@univerjs/core v0.4.2 • Docs
Class: PermissionService
Extends
Implements
Constructors
new PermissionService()
new PermissionService(): PermissionService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
permissionPointUpdate$ | public | Observable <IPermissionPoint <unknown >> | undefined | - | submodules/univer/packages/core/src/services/permission/permission.service.ts:28 (opens in a new tab) |
Methods
addPermissionPoint()
addPermissionPoint<T>(_item): boolean
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
_item | IPermissionPoint <T > | BehaviorSubject <IPermissionPoint <T >> |
Returns
boolean
Implementation of
IPermissionService
.addPermissionPoint
Defined in
clearPermissionMap()
clearPermissionMap(): void
Returns
void
Implementation of
IPermissionService
.clearPermissionMap
Defined in
composePermission()
composePermission(permissionIdList): IPermissionPoint<any>[]
Parameters
Parameter | Type |
---|---|
permissionIdList | string [] |
Returns
IPermissionPoint
<any
>[]
Implementation of
IPermissionService
.composePermission
Defined in
composePermission$()
composePermission$(permissionIdList): Observable<IPermissionPoint<any>[]>
Parameters
Parameter | Type |
---|---|
permissionIdList | string [] |
Returns
Observable
<IPermissionPoint
<any
>[]>
Implementation of
IPermissionService
.composePermission$
Defined in
deletePermissionPoint()
deletePermissionPoint(permissionId): void
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
void
Implementation of
IPermissionService
.deletePermissionPoint
Defined in
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getAllPermissionPoint()
getAllPermissionPoint(): Map<string, BehaviorSubject<IPermissionPoint<unknown>>>
Returns
Map
<string
, BehaviorSubject
<IPermissionPoint
<unknown
>>>
Implementation of
IPermissionService
.getAllPermissionPoint
Defined in
getPermissionPoint()
getPermissionPoint<T>(permissionId): undefined | IPermissionPoint<T>
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
undefined
| IPermissionPoint
<T
>
Implementation of
IPermissionService
.getPermissionPoint
Defined in
getPermissionPoint$()
getPermissionPoint$<T>(permissionId): undefined | Observable<IPermissionPoint<T>>
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
undefined
| Observable
<IPermissionPoint
<T
>>
Implementation of
IPermissionService
.getPermissionPoint$
Defined in
getShowComponents()
getShowComponents(): boolean
Returns
boolean
Implementation of
IPermissionService
.getShowComponents
Defined in
setShowComponents()
setShowComponents(showComponents): void
Parameters
Parameter | Type |
---|---|
showComponents | boolean |
Returns
void
Implementation of
IPermissionService
.setShowComponents
Defined in
updatePermissionPoint()
updatePermissionPoint<T>(permissionId, value): void
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
value | T |
Returns
void
Implementation of
IPermissionService
.updatePermissionPoint