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
Properties
Methods
addRule()
addRule(rule): void
Defined in: submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:31
Parameters
Parameter | Type |
---|---|
rule | IWorksheetProtectionPointRule |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
void
deleteUnitModel()
deleteUnitModel(unitId): void
Defined in: submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:83
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
fromObject()
fromObject(obj): void
Defined in: submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:68
Parameters
Parameter | Type |
---|---|
obj | IObjectPointModel |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
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
Parameter | Type |
---|---|
unitId | string |
permissionId | string |
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