Interface PolarionUtils


public interface PolarionUtils
Since:
3.9.0
  • Method Details

    • executeInBaseline

      @Nullable <T> T executeInBaseline(@NotNull String baselineRevision, @NotNull RunnableWithResult<T> runnable)
    • executeOutsideBaseline

      @Nullable <T> T executeOutsideBaseline(@NotNull RunnableWithResult<T> runnable)
    • convertToAscii

      @NotNull String convertToAscii(@Nullable String stringToConvert)
      Converts an arbitrary string to US-ASCII by stripping diacritic marks and transliterating the rest. Use convertToAscii(String, String) instead if you are calling this method in the context of some project.
    • convertToAscii

      @NotNull String convertToAscii(@Nullable String stringToConvert, @Nullable String projectId)
      Parameters:
      projectId - provide the projectId if you are calling this method in the context of some project.
      Since:
      3.21.2 Converts an arbitrary string to US-ASCII by stripping diacritic marks and transliterating the rest. Calling this method with a project id will ensure that Japanese (Kanji, etc.) is properly transliterated to Romaji if the runtime per-project property "documents.create.japanese.kanji.transliteration" is set. If you don't supply it the property's value will be inherited from the Repository scope.