Class RefactoringSettings


  • public final class RefactoringSettings
    extends Object
    Refactoring settings context. Allows different components of the refactoring process to access externally-defined refactoring settings.
    • Constructor Detail

      • RefactoringSettings

        public RefactoringSettings()
    • 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 given bmModelId if it was provided using setBatchSessionHandle(String, Object) or null in another case.
        Parameters:
        bmModelId - the BM model identifier, cannot be null.
        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 - the true if DD computation waiting should be skipped, false - otherwise.