@univerjssheetsindexclassesWorksheetprotectionpointmodel

@univerjs/sheets v0.5.4


Class: WorksheetProtectionPointModel

Defined in: submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:20

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

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

Parameters

ParameterType
ruleIWorksheetProtectionPointRule

Returns

void


deleteRule()

deleteRule(unitId, subUnitId): void

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

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

void


deleteUnitModel()

deleteUnitModel(unitId): void

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

Parameters

ParameterType
unitIdstring

Returns

void


fromObject()

fromObject(obj): void

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

Parameters

ParameterType
objIObjectPointModel

Returns

void


getRule()

getRule(unitId, subUnitId): undefined | IWorksheetProtectionPointRule

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

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

undefined | IWorksheetProtectionPointRule


getTargetByPermissionId()

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

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

Parameters

ParameterType
unitIdstring
permissionIdstring

Returns

undefined | null | string[]


toObject()

toObject(): IObjectPointModel

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

Returns

IObjectPointModel