@univerjs/sheets-ui v0.4.2 • Docs
Class: SheetPermissionInterceptorBaseController
Extends
Constructors
new SheetPermissionInterceptorBaseController()
new SheetPermissionInterceptorBaseController(
_commandService,
_univerInstanceService,
_permissionService,
_selectionManagerService,
_dialogService,
_rangeProtectionRuleModel,
_worksheetProtectionRuleModel,
_autoFillService,
_localeService,
_lexerTreeBuilder,
_contextService,
_definedNamesService): SheetPermissionInterceptorBaseController
Parameters
Parameter | Type |
---|---|
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
_permissionService | IPermissionService |
_selectionManagerService | SheetsSelectionsService |
_dialogService | IDialogService |
_rangeProtectionRuleModel | RangeProtectionRuleModel |
_worksheetProtectionRuleModel | WorksheetProtectionRuleModel |
_autoFillService | IAutoFillService |
_localeService | LocaleService |
_lexerTreeBuilder | LexerTreeBuilder |
_contextService | IContextService |
_definedNamesService | IDefinedNamesService |
Returns
SheetPermissionInterceptorBaseController
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) |
disposableCollection | public | DisposableCollection | undefined | - | packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:45 (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)
haveNotPermissionHandle()
haveNotPermissionHandle(errorMsg): void
Parameters
Parameter | Type |
---|---|
errorMsg | string |
Returns
void
Defined in
permissionCheckWithRanges()
permissionCheckWithRanges(
permissionTypes,
selectionRanges?,
unitId?,
subUnitId?): boolean
Parameters
Parameter | Type |
---|---|
permissionTypes | IPermissionTypes |
selectionRanges ? | IRange [] |
unitId ? | string |
subUnitId ? | string |
Returns
boolean
Defined in
permissionCheckWithoutRange()
permissionCheckWithoutRange(permissionTypes): boolean
Parameters
Parameter | Type |
---|---|
permissionTypes | IPermissionTypes |
Returns
boolean