Class RefactoringSettings
- java.lang.Object
-
- com._1c.g5.v8.dt.refactoring.core.RefactoringSettings
-
public final class RefactoringSettings extends Object
Refactoring settings context. Allows different components of the refactoring process to access externally-defined refactoring settings.
-
-
Constructor Summary
Constructors Constructor Description RefactoringSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getBatchSessionHandle(String bmModelId)
Returns the batch session handle for the givenbmModelId
if it was provided usingsetBatchSessionHandle(String, Object)
ornull
in another case.boolean
isIgnoreMinorChanges()
Checks if the minor changes should be ignored during the refactoring.
Minor changes are changes that don't influence the model integrity, e.g.boolean
isIgnoreSupportSettings()
Checks if the support settings should be ignored during the refactoringboolean
isIgnoreUnknownCheck()
Checks if the unknown file support is disabled.boolean
isParallelSerializationModeUsed()
Checks if the parallel serialization mode is enabled.boolean
isSkipDerivedDataComputationWaiting()
Checks if the DD computation waiting should be skipped before refactoring.void
setBatchSessionHandle(String bmModelId, Object batchSessionHandle)
Sets the batch session handle for refactoring.void
setIgnoreMinorChanges(boolean ignoreMinorChanges)
Sets whether the minor changes are ignored during the refactoring or not.
Minor changes are changes that don't influence the model integrity, e.g.void
setIgnoreSupportSettings(boolean ignoreSupportSettings)
Sets the support settings ignore model for the refactoringvoid
setIgnoreUnknownCheck(boolean ignoreUnknownCheck)
Sets the ignorance of the unknown files check during the refactoring.void
setParallelSerializationModeEnabled(boolean parallelSerializationModeEnabled)
Sets whether the parallel serialization mode should be enabled or not.void
setSkipDerivedDataComputationWaiting(boolean skip)
Sets whether the DD computation waiting are skipped before refactoring or not.
-
-
-
Method Detail
-
isIgnoreSupportSettings
public boolean isIgnoreSupportSettings()
Checks if the support settings should be ignored during the refactoring- Returns:
- True if the refactoring should ignore the support settings/blocks; false otherwise
-
isIgnoreUnknownCheck
public boolean isIgnoreUnknownCheck()
Checks if the unknown file support is disabled.- Returns:
- True if the unknown file check is disabled.
-
isIgnoreMinorChanges
public boolean isIgnoreMinorChanges()
Checks if the minor changes should be ignored during the refactoring.
Minor changes are changes that don't influence the model integrity, e.g. full-text search operations in BSL modules or DCS.- Returns:
true
if minor changes are ignored during the refactoring,false
- otherwise.
-
isParallelSerializationModeUsed
public boolean isParallelSerializationModeUsed()
Checks if the parallel serialization mode is enabled.- Returns:
true
if parallel serialization mode should is enabled,false
- otherwise.
-
isSkipDerivedDataComputationWaiting
public boolean isSkipDerivedDataComputationWaiting()
Checks if the DD computation waiting should be skipped before refactoring.- Returns:
true
if DD computation waiting should be skipped,false
- otherwise.
-
getBatchSessionHandle
public Object getBatchSessionHandle(String bmModelId)
Returns the batch session handle for the givenbmModelId
if it was provided usingsetBatchSessionHandle(String, Object)
ornull
in another case.- Parameters:
bmModelId
- the BM model identifier, cannot benull
.- Returns:
- the batchSessionHandle the batch session handle or
null
. - See Also:
RefactoringSettings#setBatchSessionHandle(Strin, Object)
-
setIgnoreSupportSettings
public void setIgnoreSupportSettings(boolean ignoreSupportSettings)
Sets the support settings ignore model for the refactoring- Parameters:
ignoreSupportSettings
- States if the refactoring should skip support settings validation/blocks.
-
setIgnoreUnknownCheck
public void setIgnoreUnknownCheck(boolean ignoreUnknownCheck)
Sets the ignorance of the unknown files check during the refactoring.- Parameters:
ignoreUnknownCheck
- Enables/disables ignorance.
-
setIgnoreMinorChanges
public void setIgnoreMinorChanges(boolean ignoreMinorChanges)
Sets whether the minor changes are ignored during the refactoring or not.
Minor changes are changes that don't influence the model integrity, e.g. full-text search operations in BSL modules or DCS.- Parameters:
ignoreMinorChanges
-true
if minor changes should be ignored during the refactoring,false
- otherwise.
-
setParallelSerializationModeEnabled
public void setParallelSerializationModeEnabled(boolean parallelSerializationModeEnabled)
Sets whether the parallel serialization mode should be enabled or not.- Parameters:
parallelSerializationModeEnabled
-true
if parallel serialization mode should be enabled during the refactoring process,false
- otherwise.
-
setSkipDerivedDataComputationWaiting
public void setSkipDerivedDataComputationWaiting(boolean skip)
Sets whether the DD computation waiting are skipped before refactoring or not.- Parameters:
skipDerivedDataComputationWaiting
- thetrue
if DD computation waiting should be skipped,false
- otherwise.
-
setBatchSessionHandle
public void setBatchSessionHandle(String bmModelId, Object batchSessionHandle)
Sets the batch session handle for refactoring. The specified handle is used for batch session task execution during the refactoring performing.- Parameters:
bmModelId
- the BM model identifier, cannot benull
.batchSessionHandle
- the batch session handle to use during the refactoring operation, ornull
.- See Also:
IBmModel.beginBatchSession()
,IBmModel.executeInBatchSession(Object, com._1c.g5.v8.bm.integration.IBmTask)
,IBmModel.endBatchSession(Object)
-
-