@univerjssheets-uiindexclassesSheetpermissioninterceptorbasecontroller

@univerjs/sheets-ui v0.5.0-beta.1Docs


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

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:47

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
disposableCollectionpublicDisposableCollectionundefined-submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:45

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


haveNotPermissionHandle()

haveNotPermissionHandle(errorMsg): void

Parameters

ParameterType
errorMsgstring

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:65


permissionCheckWithoutRange()

permissionCheckWithoutRange(permissionTypes): boolean

Parameters

ParameterType
permissionTypesIPermissionTypes

Returns

boolean

Defined in

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:383


permissionCheckWithRanges()

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

Parameters

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

Returns

boolean

Defined in

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-interceptor-base.controller.ts:437