Class: RangeProtectionCache
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:28
Extends
Constructors
new RangeProtectionCache()
new RangeProtectionCache(
_ruleModel,
_permissionService,
_univerInstanceService): RangeProtectionCache
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:36
Parameters
Parameter | Type |
---|---|
_ruleModel | RangeProtectionRuleModel |
_permissionService | IPermissionService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
Methods
deleteUnit()
deleteUnit(unitId): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:375
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getCellInfo()
getCellInfo(
unitId,
subUnitId,
row,
col):
| undefined
| Partial<Record<UnitAction, boolean>> & {
ranges: IRange[];
ruleId: string;
}
| {
0: boolean;
1: boolean;
2: boolean;
42: boolean;
ranges: IRange[];
ruleId: string;
}
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:351
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
| undefined
| Partial
<Record
<UnitAction
, boolean
>> & {
ranges
: IRange
[];
ruleId
: string
;
}
| {
0
: boolean
;
1
: boolean
;
2
: boolean
;
42
: boolean
;
ranges
: IRange
[];
ruleId
: string
;
}
getColPermissionInfo()
getColPermissionInfo(
unitId,
subUnitId,
col,
types): boolean
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:268
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
col | number |
types | UnitAction [] |
Returns
boolean
getRowPermissionInfo()
getRowPermissionInfo(
unitId,
subUnitId,
row,
types): boolean
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:249
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
types | UnitAction [] |
Returns
boolean
reBuildCache()
reBuildCache(unitId, subUnitId): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:205
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
void