@univerjs/core v0.5.0-beta.1 • 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 | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
permissionPointUpdate$ | public | Observable <IPermissionPoint <unknown >> | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:28 |
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
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:48
clearPermissionMap()
clearPermissionMap(): void
Returns
void
Implementation of
IPermissionService
.clearPermissionMap
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:75
composePermission()
composePermission(permissionIdList): IPermissionPoint<any>[]
Parameters
Parameter | Type |
---|---|
permissionIdList | string [] |
Returns
IPermissionPoint
<any
>[]
Implementation of
IPermissionService
.composePermission
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:108
composePermission$()
composePermission$(permissionIdList): Observable<IPermissionPoint<any>[]>
Parameters
Parameter | Type |
---|---|
permissionIdList | string [] |
Returns
Observable
<IPermissionPoint
<any
>[]>
Implementation of
IPermissionService
.composePermission$
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:91
deletePermissionPoint()
deletePermissionPoint(permissionId): void
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
void
Implementation of
IPermissionService
.deletePermissionPoint
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:40
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100
getAllPermissionPoint()
getAllPermissionPoint(): Map<string, BehaviorSubject<IPermissionPoint<unknown>>>
Returns
Map
<string
, BehaviorSubject
<IPermissionPoint
<unknown
>>>
Implementation of
IPermissionService
.getAllPermissionPoint
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:120
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
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:79
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
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:85
getShowComponents()
getShowComponents(): boolean
Returns
boolean
Implementation of
IPermissionService
.getShowComponents
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:36
setShowComponents()
setShowComponents(showComponents): void
Parameters
Parameter | Type |
---|---|
showComponents | boolean |
Returns
void
Implementation of
IPermissionService
.setShowComponents
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:32
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
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:63