@univerjssheetsindexclassesWorksheetprotectionpointmodel

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


Class: WorksheetProtectionPointModel

Constructors

new WorksheetProtectionPointModel()

new WorksheetProtectionPointModel(): WorksheetProtectionPointModel

Returns

WorksheetProtectionPointModel

Properties

PropertyTypeDefined in
pointChange$Observable<{ permissionId: string; subUnitId: string; unitId: string; }>submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:29

Methods

addRule()

addRule(rule): void

Parameters

ParameterType
ruleIWorksheetProtectionPointRule

Returns

void

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:31


deleteRule()

deleteRule(unitId, subUnitId): void

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

void

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:37


deleteUnitModel()

deleteUnitModel(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:83


fromObject()

fromObject(obj): void

Parameters

ParameterType
objIObjectPointModel

Returns

void

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:68


getRule()

getRule(unitId, subUnitId): undefined | IWorksheetProtectionPointRule

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

undefined | IWorksheetProtectionPointRule

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:45


getTargetByPermissionId()

getTargetByPermissionId(unitId, permissionId): undefined | null | string[]

Parameters

ParameterType
unitIdstring
permissionIdstring

Returns

undefined | null | string[]

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:96


toObject()

toObject(): IObjectPointModel

Returns

IObjectPointModel

Defined in

submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:49