@univerjssheetsindexclassesSheetpermissioninitcontroller

@univerjs/sheets v0.5.4


Class: SheetPermissionInitController

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

Extends

Constructors

new SheetPermissionInitController()

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

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

Parameters

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

Returns

SheetPermissionInitController

Overrides

Disposable.constructor

Properties

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

Methods

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


initWorkbookPermissionChange()

initWorkbookPermissionChange(_unitId?): Promise<void>

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

Parameters

ParameterType
_unitId?string

Returns

Promise<void>


refreshPermission()

refreshPermission(unitId, permissionId): void

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

Parameters

ParameterType
unitIdstring
permissionIdstring

Returns

void