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

@univerjs/sheets-ui v0.4.2Docs


Class: SheetPermissionInitController

Extends

Constructors

new SheetPermissionInitController()

new SheetPermissionInitController(
   _univerInstanceService, 
   _permissionService, 
   _authzIoService, 
   _rangeProtectionRuleModel, 
   _worksheetProtectionRuleModel, 
   _userManagerService, 
   _worksheetProtectionPointRuleModel, 
   _sheetInterceptorService, 
   _undoRedoService, 
   _commandService, 
   _rangeProtectionCache): SheetPermissionInitController

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_permissionServiceIPermissionService
_authzIoServiceIAuthzIoService
_rangeProtectionRuleModelRangeProtectionRuleModel
_worksheetProtectionRuleModelWorksheetProtectionRuleModel
_userManagerServiceUserManagerService
_worksheetProtectionPointRuleModelWorksheetProtectionPointModel
_sheetInterceptorServiceSheetInterceptorService
_undoRedoServiceIUndoRedoService
_commandServiceICommandService
_rangeProtectionCacheRangeProtectionCache

Returns

SheetPermissionInitController

Overrides

Disposable.constructor

Defined in

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

Properties

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


initWorkbookPermissionChange()

initWorkbookPermissionChange(_unitId?): Promise<void>

Parameters

ParameterType
_unitId?string

Returns

Promise<void>

Defined in

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


refreshPermission()

refreshPermission(unitId, permissionId): void

Parameters

ParameterType
unitIdstring
permissionIdstring

Returns

void

Defined in

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


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