Package jetbrains.buildServer
Interface ProjectAwareRootUrlResolver
-
- All Superinterfaces:
RootUrlHolder
,ServerUrlProvider
- All Known Implementing Classes:
ProjectAwareRootUrlResolverImpl
public interface ProjectAwareRootUrlResolver extends RootUrlHolder
Can be used to retrieve root URL for a particular project.- Since:
- 2018.1
- Author:
- Kirill Lakhtin (kirill.lakhtin@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getRootUrlByBuildTypeExternalId(String buildTypeExternalId)
Returns project-based URL using external buildType id for determining the project.String
getRootUrlByBuildTypeInternalId(String buildTypeInternalId)
Returns project-based URL using internal buildType id for determining the project.String
getRootUrlByBuildTypeTemplateExternalId(String extTemplateId)
Returns project-based URL using external build type template id for determining the project If extTemplateId is null or the project doesn't exist or it's not configured with url property - returns global server URL, if it's exist.String
getRootUrlByProjectExternalId(String externalProjectId)
Returns project-based URL if it's configured for the project.String
getRootUrlByProjectInternalId(String internalProjectId)
Returns project-based URL by project internal id if it's configured for the project.-
Methods inherited from interface jetbrains.buildServer.RootUrlHolder
setRootUrl
-
Methods inherited from interface jetbrains.buildServer.ServerUrlProvider
getRootUrl
-
-
-
-
Method Detail
-
getRootUrlByProjectExternalId
@NotNull String getRootUrlByProjectExternalId(@Nullable String externalProjectId)
Returns project-based URL if it's configured for the project. If not (or externalProjectId is null) - returns global server URL, if it's exist. If not - returns default value.
-
getRootUrlByProjectInternalId
@NotNull String getRootUrlByProjectInternalId(@Nullable String internalProjectId)
Returns project-based URL by project internal id if it's configured for the project. If not (or internalProjectId is null) - returns global server URL, if it's exist. If not - returns default value.
-
getRootUrlByBuildTypeExternalId
@NotNull String getRootUrlByBuildTypeExternalId(@Nullable String buildTypeExternalId)
Returns project-based URL using external buildType id for determining the project. If buildTypeExternalId is null or the project doesn't exist or it's not configured with url property - returns global server URL, if it's exist. If not - returns default value.
-
getRootUrlByBuildTypeInternalId
@NotNull String getRootUrlByBuildTypeInternalId(@Nullable String buildTypeInternalId)
Returns project-based URL using internal buildType id for determining the project. If buildTypeInternalId is null or the project doesn't exist or it's not configured with url property - returns global server URL, if it's exist. If not - returns default value.
-
getRootUrlByBuildTypeTemplateExternalId
@NotNull String getRootUrlByBuildTypeTemplateExternalId(@Nullable String extTemplateId)
Returns project-based URL using external build type template id for determining the project If extTemplateId is null or the project doesn't exist or it's not configured with url property - returns global server URL, if it's exist. If not - returns default value.
-
-