Class: SheetPermissionCheckController
Defined in: submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:53
Extends
Constructors
new SheetPermissionCheckController()
new SheetPermissionCheckController(
_commandService,
_univerInstanceService,
_permissionService,
_selectionManagerService,
_rangeProtectionRuleModel,
_worksheetProtectionRuleModel,
_localeService,
_lexerTreeBuilder,
_contextService,
_definedNamesService): SheetPermissionCheckController
Defined in: submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:59
Parameters
Parameter | Type |
---|---|
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
_permissionService | IPermissionService |
_selectionManagerService | SheetsSelectionsService |
_rangeProtectionRuleModel | RangeProtectionRuleModel |
_worksheetProtectionRuleModel | WorksheetProtectionRuleModel |
_localeService | LocaleService |
_lexerTreeBuilder | LexerTreeBuilder |
_contextService | IContextService |
_definedNamesService | IDefinedNamesService |
Returns
SheetPermissionCheckController
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
disposableCollection | public | DisposableCollection | undefined | - | submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:54 |
triggerPermissionUIEvent$ | public | Observable <string > | undefined | - | submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:57 |
Methods
blockExecuteWithoutPermission()
blockExecuteWithoutPermission(errorMsg): void
Defined in: submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:75
Parameters
Parameter | Type |
---|---|
errorMsg | string |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
permissionCheckWithoutRange()
permissionCheckWithoutRange(permissionTypes): boolean
Defined in: submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:289
Parameters
Parameter | Type |
---|---|
permissionTypes | IPermissionTypes |
Returns
boolean
permissionCheckWithRanges()
permissionCheckWithRanges(
permissionTypes,
selectionRanges?,
unitId?,
subUnitId?): boolean
Defined in: submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:343
Parameters
Parameter | Type |
---|---|
permissionTypes | IPermissionTypes |
selectionRanges ? | IRange [] |
unitId ? | string |
subUnitId ? | string |
Returns
boolean