com.atlassian.bamboo.plugins.hg.bitbucket.api
Interface BitbucketApiService

All Known Implementing Classes:
BitbucketApiServiceImpl

public interface BitbucketApiService


Method Summary
 java.util.List<BitbucketNodeEntity> getBranches(java.lang.String repositoryName, java.lang.String username, java.lang.String password)
          Retrieve list of branches for given repository
 java.util.List<BitbucketNodeEntity> getBranches(java.lang.String owner, java.lang.String slug, java.lang.String username, java.lang.String password)
          Retrieve list of branches for given repository
 java.util.List<BitbucketResourceEntity> getPublicRepositories(java.lang.String username)
          Return a list of public repositories that user has access to.
 java.util.List<BitbucketResourceEntity> getRepositories(java.lang.String username, java.lang.String password)
          Retrieve list of all repositories accessible to Bitbucket user
 

Method Detail

getPublicRepositories

@NotNull
java.util.List<BitbucketResourceEntity> getPublicRepositories(@NotNull
                                                                      java.lang.String username)
                                                              throws BitbucketApiException
Return a list of public repositories that user has access to.

Parameters:
username -
Returns:
Throws:
BitbucketApiException

getRepositories

@NotNull
java.util.List<BitbucketResourceEntity> getRepositories(@NotNull
                                                                java.lang.String username,
                                                                @NotNull
                                                                java.lang.String password)
                                                        throws BitbucketApiException
Retrieve list of all repositories accessible to Bitbucket user

Parameters:
username -
password -
Returns:
Throws:
BitbucketApiException

getBranches

@NotNull
java.util.List<BitbucketNodeEntity> getBranches(@NotNull
                                                        java.lang.String owner,
                                                        @NotNull
                                                        java.lang.String slug,
                                                        @NotNull
                                                        java.lang.String username,
                                                        @NotNull
                                                        java.lang.String password)
                                                throws BitbucketApiException
Retrieve list of branches for given repository

Parameters:
owner -
slug -
username -
password -
Returns:
Throws:
BitbucketApiException

getBranches

@NotNull
java.util.List<BitbucketNodeEntity> getBranches(@NotNull
                                                        java.lang.String repositoryName,
                                                        @NotNull
                                                        java.lang.String username,
                                                        @NotNull
                                                        java.lang.String password)
                                                throws BitbucketApiException
Retrieve list of branches for given repository

Parameters:
repositoryName -
username -
password -
Returns:
Throws:
BitbucketApiException


Copyright © 2012 Atlassian. All Rights Reserved.