@univerjssheets-uiindexclassesSheetpermissioninitcontroller

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


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

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-init.controller.ts:26

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

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


initWorkbookPermissionChange()

initWorkbookPermissionChange(_unitId?): Promise<void>

Parameters

ParameterType
_unitId?string

Returns

Promise<void>

Defined in

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-init.controller.ts:142


refreshPermission()

refreshPermission(unitId, permissionId): void

Parameters

ParameterType
unitIdstring
permissionIdstring

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/controllers/permission/sheet-permission-init.controller.ts:337