@univerjs/sheets-ui v0.4.2 • Docs
Class: SheetPermissionInitController
Extends
Constructors
new SheetPermissionInitController()
new SheetPermissionInitController(
_univerInstanceService,
_permissionService,
_authzIoService,
_rangeProtectionRuleModel,
_worksheetProtectionRuleModel,
_userManagerService,
_worksheetProtectionPointRuleModel,
_sheetInterceptorService,
_undoRedoService,
_commandService,
_rangeProtectionCache): SheetPermissionInitController
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_permissionService | IPermissionService |
_authzIoService | IAuthzIoService |
_rangeProtectionRuleModel | RangeProtectionRuleModel |
_worksheetProtectionRuleModel | WorksheetProtectionRuleModel |
_userManagerService | UserManagerService |
_worksheetProtectionPointRuleModel | WorksheetProtectionPointModel |
_sheetInterceptorService | SheetInterceptorService |
_undoRedoService | IUndoRedoService |
_commandService | ICommandService |
_rangeProtectionCache | RangeProtectionCache |
Returns
Overrides
Defined in
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
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
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
initWorkbookPermissionChange()
initWorkbookPermissionChange(_unitId?): Promise<void>
Parameters
Parameter | Type |
---|---|
_unitId ? | string |
Returns
Promise
<void
>
Defined in
refreshPermission()
refreshPermission(unitId, permissionId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
permissionId | string |
Returns
void