Class ProjectAwareRootUrlResolverImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ProjectAwareRootUrlResolverImpl
-
- All Implemented Interfaces:
ProjectAwareRootUrlResolver,RootUrlHolder,ServerUrlProvider
public class ProjectAwareRootUrlResolverImpl extends Object implements ProjectAwareRootUrlResolver
- Author:
- Kirill Lakhtin (kirill.lakhtin@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description ProjectAwareRootUrlResolverImpl(RootUrlHolder rootUrlHolder, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRootUrl()Returns the server URLStringgetRootUrlByBuildTypeExternalId(String buildTypeExternalId)Returns project-based URL using external buildType id for determining the project.StringgetRootUrlByBuildTypeInternalId(String buildTypeInternalId)Returns project-based URL using internal buildType id for determining the project.StringgetRootUrlByBuildTypeTemplateExternalId(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.StringgetRootUrlByProjectExternalId(String externalProjectId)Returns project-based URL if it's configured for the project.StringgetRootUrlByProjectInternalId(String internalProjectId)Returns project-based URL by project internal id if it's configured for the project.voidsetRootUrl(String rootUrl)Sets new root URL.
-
-
-
Constructor Detail
-
ProjectAwareRootUrlResolverImpl
public ProjectAwareRootUrlResolverImpl(@NotNull RootUrlHolder rootUrlHolder, @NotNull ProjectManager projectManager)
-
-
Method Detail
-
getRootUrlByProjectExternalId
@NotNull public String getRootUrlByProjectExternalId(@Nullable String externalProjectId)
Description copied from interface:ProjectAwareRootUrlResolverReturns 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.- Specified by:
getRootUrlByProjectExternalIdin interfaceProjectAwareRootUrlResolver
-
getRootUrlByProjectInternalId
@NotNull public String getRootUrlByProjectInternalId(@Nullable String internalProjectId)
Description copied from interface:ProjectAwareRootUrlResolverReturns 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.- Specified by:
getRootUrlByProjectInternalIdin interfaceProjectAwareRootUrlResolver
-
getRootUrlByBuildTypeExternalId
@NotNull public String getRootUrlByBuildTypeExternalId(@Nullable String buildTypeExternalId)
Description copied from interface:ProjectAwareRootUrlResolverReturns 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.- Specified by:
getRootUrlByBuildTypeExternalIdin interfaceProjectAwareRootUrlResolver
-
getRootUrlByBuildTypeInternalId
@NotNull public String getRootUrlByBuildTypeInternalId(@Nullable String buildTypeInternalId)
Description copied from interface:ProjectAwareRootUrlResolverReturns 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.- Specified by:
getRootUrlByBuildTypeInternalIdin interfaceProjectAwareRootUrlResolver
-
getRootUrlByBuildTypeTemplateExternalId
@NotNull public String getRootUrlByBuildTypeTemplateExternalId(@Nullable String extTemplateId)
Description copied from interface:ProjectAwareRootUrlResolverReturns 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.- Specified by:
getRootUrlByBuildTypeTemplateExternalIdin interfaceProjectAwareRootUrlResolver
-
getRootUrl
@NotNull public String getRootUrl()
Description copied from interface:ServerUrlProviderReturns the server URL- Specified by:
getRootUrlin interfaceServerUrlProvider- Returns:
- server root URL
-
setRootUrl
public void setRootUrl(@NotNull String rootUrl)Description copied from interface:RootUrlHolderSets new root URL.- Specified by:
setRootUrlin interfaceRootUrlHolder- Parameters:
rootUrl- new root URL
-
-