@Singleton public class StashResource extends Object
Constructor and Description |
---|
StashResource(com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory,
com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager authenticationConfigurationManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
RepositoryDefinitionManager repositoryDefinitionManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
canMerge(long repositoryId,
long pullRequestId) |
javax.ws.rs.core.Response |
getAvailableProjects(String serverKey,
long start,
long limit) |
javax.ws.rs.core.Response |
getAvailableServers() |
javax.ws.rs.core.Response |
getBranch(String serverKey,
String projectKey,
String repositorySlug,
String branchId) |
javax.ws.rs.core.Response |
getBranches(String serverKey,
String projectKey,
String repositorySlug,
String query,
long start,
long limit) |
javax.ws.rs.core.Response |
getDefaultBranch(String serverKey,
String projectKey,
String repositorySlug) |
javax.ws.rs.core.Response |
getPullRequests(long repositoryId,
String branchName,
long start,
long limit,
long avatarSize) |
javax.ws.rs.core.Response |
getRepositories(String serverKey,
String projectName,
String query,
long start,
long limit) |
javax.ws.rs.core.Response |
getRepository(String serverKey,
String projectKey,
String repositorySlug) |
javax.ws.rs.core.Response |
getRepositoryPermission(String serverKey,
String projectKey,
String repositorySlug) |
javax.ws.rs.core.Response |
getRepositorySSHKeys(String serverKey,
String projectKey,
String repositorySlug,
long start,
long limit) |
javax.ws.rs.core.Response |
merge(long repositoryId,
long pullRequestId,
long version) |
public StashResource(com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory, com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager authenticationConfigurationManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RepositoryDefinitionManager repositoryDefinitionManager)
public javax.ws.rs.core.Response getAvailableServers()
public javax.ws.rs.core.Response getAvailableProjects(String serverKey, long start, long limit)
public javax.ws.rs.core.Response getRepositories(String serverKey, String projectName, String query, long start, long limit)
public javax.ws.rs.core.Response getRepository(String serverKey, String projectKey, String repositorySlug)
public javax.ws.rs.core.Response getBranches(String serverKey, String projectKey, String repositorySlug, String query, long start, long limit)
public javax.ws.rs.core.Response getDefaultBranch(String serverKey, String projectKey, String repositorySlug)
public javax.ws.rs.core.Response getBranch(String serverKey, String projectKey, String repositorySlug, String branchId)
public javax.ws.rs.core.Response getRepositoryPermission(String serverKey, String projectKey, String repositorySlug) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response getRepositorySSHKeys(String serverKey, String projectKey, String repositorySlug, long start, long limit) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException, com.opensymphony.webwork.dispatcher.json.JSONException
CredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
com.opensymphony.webwork.dispatcher.json.JSONException
public javax.ws.rs.core.Response getPullRequests(long repositoryId, String branchName, long start, long limit, long avatarSize)
public javax.ws.rs.core.Response merge(long repositoryId, long pullRequestId, long version)
public javax.ws.rs.core.Response canMerge(long repositoryId, long pullRequestId)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.