Class ExternalRepositoryUtils

java.lang.Object
com.polarion.platform.repository.external.ExternalRepositoryUtils

public class ExternalRepositoryUtils extends Object
Since:
3.5.2
  • Method Details

    • expandVariables

      @Nullable public static String expandVariables(@Nullable String url, @NotNull ILocationChangeMetaData locationChangeMetaData, @Nullable String headRevision)
      Returns a new URL after replacing the predefined template variables in url. Used to generate URLs for the Change Traceability feature.
      Parameters:
      url - the URL template with some variables to be replaced.
      locationChangeMetaData - the Change Traceablitiy meta data with information for link generation.
      headRevision - the last actual revision of the repository or file.
      Returns:
      the URL with replaced template variables.
    • expandVariables

      @Nullable public static String expandVariables(@Nullable String url, @NotNull IExtendedLocation location, @Nullable String headRevision)
      Returns a new URL after replacing the predefined template variables in url. Used to generate URLs for the Resource Traceability feature.
      Parameters:
      url - the URL template with some variables to be replaced.
      location - the extended location instance with information about the position and branch.
      headRevision - the last actual revision of the repository or file.
      Returns:
      the URL with replaced template variables.
      Since:
      3.17.0
    • getAction

      public static ExternalRepositoryUtils.Action getAction(ILocationChangeMetaData locationChangeMetaData)