@Override public String getIssueUrl(String issueKey) { URI displayUrl = applicationLink.getDisplayUrl(); return displayUrl + "/browse/" + issueKey; }
public SourceErrorReport(final ApplicationLink applicationLink, final String errorMessage) { this.url = applicationLink.getDisplayUrl().toASCIIString(); this.name = applicationLink.getName(); this.repositoryName = null; this.errorMessage = errorMessage; }
public String parseUrlWithBaseUrlTokenParameters(final JsonPath pathToUrl) { final String urlWithTokens = parseString(pathToUrl); if (urlWithTokens == null) { return null; } //replace the stash.baseUrl token in the returned URL: both in direct and urlencoded form return urlWithTokens .replaceAll("\\$\\$\\$\\$stash\\.baseUrl%\\$\\$\\$\\$", stashLink.getDisplayUrl().toString()) .replaceAll("\\$\\$\\$\\$stash\\.baseUrl%25\\$\\$\\$\\$", Util.utf8Encode(stashLink.getDisplayUrl())); }
private String rebaseLinks(String jiraResponse, ApplicationLink appLink) { // CONF-22283: Display URL is not used when inserting jira issue return jiraResponse.replace(appLink.getRpcUrl().toString(), appLink.getDisplayUrl().toString()); }
public RepositoryErrorBean(final IntegrationProblem stashError) { this.rep = null; this.instance = stashError.getApplicationLink().getDisplayUrl().toASCIIString(); this.error = stashError.getMessage(); }
@HtmlSafe public URI getAuthorisationAdminURI() { return URIUtil.uncheckedConcatenate(applicationLink.getDisplayUrl(), OAUTH_ACCESS_TOKENS_ADMIN_SERVLET_LOCATION); } }
@Nullable @Override public Object doProvide(@Nonnull ApplicationLink applink) throws ServiceException { if (ApplicationTypes.isAtlassian(applink.getType())) { return getAtlassianConfigUrl(applink); } else { return applink.getDisplayUrl(); } }
private List<ApplicationLink> getCandidateAppLinksForPage(final URI pageUri) { List<ApplicationLink> matchingAppLinks = new ArrayList<ApplicationLink>(); for (final ApplicationLink appLink : getAppLinks()) { if (isBaseEqual(appLink.getDisplayUrl(), pageUri) || isBaseEqual(appLink.getRpcUrl(), pageUri)) { matchingAppLinks.add(appLink); } } return matchingAppLinks; } }
public boolean validateCallbackUriAgainstApplink(URI callbackUri, ApplicationLink applicationLink) { final boolean isValidByDisplayUrl = validateAbsoluteUri(applicationLink.getDisplayUrl(), callbackUri); final boolean isValidByRpcUrl = validateAbsoluteUri(applicationLink.getRpcUrl(), callbackUri); return isValidByDisplayUrl || isValidByRpcUrl; }
public URI getDisplayUrl(final ApplicationLink link, final String project) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof JiraApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "browse", project); } }
public URI getDisplayUrl(final ApplicationLink link, final String charlie) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof RefAppApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "plugins", "servlet", "charlie", charlie); } }
public URI getDisplayUrl(final ApplicationLink link, final String space) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof ConfluenceApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "display", space); } }
@Override public URI getDisplayUrl(ApplicationLink applicationLink, String resource) { Assertions.isTrue(String.format("Application link %s is not of type %s", applicationLink.getId(), getApplicationType().getName()), (applicationLink.getType() instanceof SonarQubeApplicationType)); return URIUtils.appendPathsToURI(applicationLink.getDisplayUrl(), "dashboard/index", resource); }
/** * @since 3.1 */ public URI getDisplayUrl(final ApplicationLink link, final String path) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof SubversionPathEntityType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), path); } }
public URI getDisplayUrl(final ApplicationLink link, final String entityKey) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof BambooApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "browse", entityKey); } }
/** * @since 3.1 */ public URI getDisplayUrl(final ApplicationLink link, final String project) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof FishEyeCrucibleApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "cru", project); } }
public RestMinimalApplicationLink(@Nonnull ApplicationLink link) { requireNonNull(link, "link"); id = link.getId().get(); name = link.getName(); displayUrl = link.getDisplayUrl(); rpcUrl = link.getRpcUrl(); type = resolveApplicationTypeId(link.getType()); }
@Override public URI getDisplayUrl(ApplicationLink applicationLink, String job) { Assertions.isTrue(String.format("Application link %s is not of type %s", applicationLink.getId(), getApplicationType().getName()), (applicationLink.getType() instanceof JenkinsApplicationType && !(applicationLink.getType () instanceof HudsonApplicationType))); return URIUtils.appendPathsToURI(applicationLink.getDisplayUrl(), "job", job); }
public ImmutableApplicationLink(final ApplicationLink that, final ApplicationLinkRequestFactoryFactory requestFactoryFactory) { checkNotNull(that, "that"); checkNotNull(requestFactoryFactory, "requestFactoryFactory"); this.applicationId = that.getId(); this.applicationType = that.getType(); this.name = that.getName(); this.displayUrl = that.getDisplayUrl(); this.rpcUrl = that.getRpcUrl(); this.isPrimary = that.isPrimary(); this.isSystem = that.isSystem(); this.requestFactoryFactory = requestFactoryFactory; }
public ApplicationLinkEntity(final ApplicationLink applicationLink, final Link self) { this(applicationLink.getId(), TypeId.getTypeId(applicationLink.getType()), applicationLink.getName(), applicationLink.getDisplayUrl(), applicationLink.getType().getIconUrl(), resolveIconUri(applicationLink.getType()), applicationLink.getRpcUrl(), applicationLink.isPrimary(), applicationLink.isSystem(), self); }