Class: PermissionService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:24
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:96 |
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
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:48
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
_item | | IPermissionPoint <T > | BehaviorSubject <IPermissionPoint <T >> |
Returns
boolean
Implementation of
IPermissionService
.addPermissionPoint
clearPermissionMap()
clearPermissionMap(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:75
Returns
void
Implementation of
IPermissionService
.clearPermissionMap
composePermission()
composePermission(permissionIdList): IPermissionPoint<any>[]
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:108
Parameters
Parameter | Type |
---|---|
permissionIdList | string [] |
Returns
IPermissionPoint
<any
>[]
Implementation of
IPermissionService
.composePermission
composePermission$()
composePermission$(permissionIdList): Observable<IPermissionPoint<any>[]>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:91
Parameters
Parameter | Type |
---|---|
permissionIdList | string [] |
Returns
Observable
<IPermissionPoint
<any
>[]>
Implementation of
IPermissionService
.composePermission$
deletePermissionPoint()
deletePermissionPoint(permissionId): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:40
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
void
Implementation of
IPermissionService
.deletePermissionPoint
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getAllPermissionPoint()
getAllPermissionPoint(): Map<string, BehaviorSubject<IPermissionPoint<unknown>>>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:120
Returns
Map
<string
, BehaviorSubject
<IPermissionPoint
<unknown
>>>
Implementation of
IPermissionService
.getAllPermissionPoint
getPermissionPoint()
getPermissionPoint<T>(permissionId):
| undefined
| IPermissionPoint<T>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:79
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
| undefined
| IPermissionPoint
<T
>
Implementation of
IPermissionService
.getPermissionPoint
getPermissionPoint$()
getPermissionPoint$<T>(permissionId):
| undefined
| Observable<IPermissionPoint<T>>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:85
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
Returns
| undefined
| Observable
<IPermissionPoint
<T
>>
Implementation of
IPermissionService
.getPermissionPoint$
getShowComponents()
getShowComponents(): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:36
Returns
boolean
Implementation of
IPermissionService
.getShowComponents
setShowComponents()
setShowComponents(showComponents): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:32
Parameters
Parameter | Type |
---|---|
showComponents | boolean |
Returns
void
Implementation of
IPermissionService
.setShowComponents
updatePermissionPoint()
updatePermissionPoint<T>(permissionId, value): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/permission/permission.service.ts:63
Type Parameters
Type Parameter | Default type |
---|---|
T | boolean |
Parameters
Parameter | Type |
---|---|
permissionId | string |
value | T |
Returns
void