Class ExternalRepositoryUtils
java.lang.Object
com.polarion.platform.repository.external.ExternalRepositoryUtils
- Since:
- 3.5.2
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic String
expandVariables
(String url, ILocationChangeMetaData locationChangeMetaData, String headRevision) Returns a new URL after replacing the predefined template variables inurl
.static String
expandVariables
(String url, IExtendedLocation location, String headRevision) Returns a new URL after replacing the predefined template variables inurl
.getAction
(ILocationChangeMetaData locationChangeMetaData)
-
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 inurl
. 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 inurl
. 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)
-