Class ProjectAwareRootUrlResolverImpl

    • Constructor Detail

      • ProjectAwareRootUrlResolverImpl

        public ProjectAwareRootUrlResolverImpl​(@NotNull
                                               RootUrlHolder rootUrlHolder,
                                               @NotNull
                                               ProjectManager projectManager)
    • Method Detail

      • getRootUrlByProjectInternalId

        @NotNull
        public String getRootUrlByProjectInternalId​(@Nullable
                                                    String internalProjectId)
        Description copied from interface: ProjectAwareRootUrlResolver
        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.
        Specified by:
        getRootUrlByProjectInternalId in interface ProjectAwareRootUrlResolver
      • getRootUrlByBuildTypeExternalId

        @NotNull
        public String getRootUrlByBuildTypeExternalId​(@Nullable
                                                      String buildTypeExternalId)
        Description copied from interface: ProjectAwareRootUrlResolver
        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.
        Specified by:
        getRootUrlByBuildTypeExternalId in interface ProjectAwareRootUrlResolver
      • getRootUrlByBuildTypeInternalId

        @NotNull
        public String getRootUrlByBuildTypeInternalId​(@Nullable
                                                      String buildTypeInternalId)
        Description copied from interface: ProjectAwareRootUrlResolver
        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.
        Specified by:
        getRootUrlByBuildTypeInternalId in interface ProjectAwareRootUrlResolver
      • getRootUrlByBuildTypeTemplateExternalId

        @NotNull
        public String getRootUrlByBuildTypeTemplateExternalId​(@Nullable
                                                              String extTemplateId)
        Description copied from interface: ProjectAwareRootUrlResolver
        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.
        Specified by:
        getRootUrlByBuildTypeTemplateExternalId in interface ProjectAwareRootUrlResolver
      • setRootUrl

        public void setRootUrl​(@NotNull
                               String rootUrl)
        Description copied from interface: RootUrlHolder
        Sets new root URL.
        Specified by:
        setRootUrl in interface RootUrlHolder
        Parameters:
        rootUrl - new root URL