API Reference
@univerjs
@univerjs/sheets-ui
classes
Sheetpermissioninterceptorbasecontroller

@univerjs/sheets-ui v0.4.2Docs


Class: SheetPermissionInterceptorBaseController

Extends

Constructors

new SheetPermissionInterceptorBaseController()

new SheetPermissionInterceptorBaseController(
   _commandService, 
   _univerInstanceService, 
   _permissionService, 
   _selectionManagerService, 
   _dialogService, 
   _rangeProtectionRuleModel, 
   _worksheetProtectionRuleModel, 
   _autoFillService, 
   _localeService, 
   _lexerTreeBuilder, 
   _contextService, 
   _definedNamesService): SheetPermissionInterceptorBaseController

Parameters

ParameterType
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService
_permissionServiceIPermissionService
_selectionManagerServiceSheetsSelectionsService
_dialogServiceIDialogService
_rangeProtectionRuleModelRangeProtectionRuleModel
_worksheetProtectionRuleModelWorksheetProtectionRuleModel
_autoFillServiceIAutoFillService
_localeServiceLocaleService
_lexerTreeBuilderLexerTreeBuilder
_contextServiceIContextService
_definedNamesServiceIDefinedNamesService

Returns

SheetPermissionInterceptorBaseController

Overrides

Disposable.constructor

Defined in

packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:47 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
disposableCollectionpublicDisposableCollectionundefined-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

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


haveNotPermissionHandle()

haveNotPermissionHandle(errorMsg): void

Parameters

ParameterType
errorMsgstring

Returns

void

Defined in

packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:65 (opens in a new tab)


permissionCheckWithRanges()

permissionCheckWithRanges(
   permissionTypes, 
   selectionRanges?, 
   unitId?, 
   subUnitId?): boolean

Parameters

ParameterType
permissionTypesIPermissionTypes
selectionRanges?IRange[]
unitId?string
subUnitId?string

Returns

boolean

Defined in

packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:437 (opens in a new tab)


permissionCheckWithoutRange()

permissionCheckWithoutRange(permissionTypes): boolean

Parameters

ParameterType
permissionTypesIPermissionTypes

Returns

boolean

Defined in

packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:383 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.