@univerjssheetsindexclassesSheetpermissioncheckcontroller

@univerjs/sheets v0.5.4


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

ParameterType
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService
_permissionServiceIPermissionService
_selectionManagerServiceSheetsSelectionsService
_rangeProtectionRuleModelRangeProtectionRuleModel
_worksheetProtectionRuleModelWorksheetProtectionRuleModel
_localeServiceLocaleService
_lexerTreeBuilderLexerTreeBuilder
_contextServiceIContextService
_definedNamesServiceIDefinedNamesService

Returns

SheetPermissionCheckController

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
disposableCollectionpublicDisposableCollectionundefined-submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:54
triggerPermissionUIEvent$publicObservable<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

ParameterType
errorMsgstring

Returns

void


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


permissionCheckWithoutRange()

permissionCheckWithoutRange(permissionTypes): boolean

Defined in: submodules/univer/packages/sheets/src/controllers/permission/sheet-permission-check.controller.ts:289

Parameters

ParameterType
permissionTypesIPermissionTypes

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

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

Returns

boolean