com.atlassian.bamboo.plugins.hg.bitbucket
Class BitbucketApiAccessor

java.lang.Object
  extended by com.atlassian.bamboo.plugins.hg.bitbucket.BitbucketApiAccessor

public class BitbucketApiAccessor
extends Object


Constructor Summary
BitbucketApiAccessor(String username, String password, com.atlassian.sal.api.message.I18nResolver i18nResolver)
           
 
Method Summary
 List<String> getBranches(String repository)
           
 List<String> getPrivateRepositories()
           
 List<String> getPublicRepositories()
           
static String getUsernameForAnEmail(String email)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitbucketApiAccessor

public BitbucketApiAccessor(String username,
                            String password,
                            com.atlassian.sal.api.message.I18nResolver i18nResolver)
Method Detail

getUsernameForAnEmail

public static String getUsernameForAnEmail(@NotNull
                                           String email)

getPublicRepositories

@NotNull
public List<String> getPublicRepositories()
                                   throws Exception
Throws:
Exception

getPrivateRepositories

@NotNull
public List<String> getPrivateRepositories()
                                    throws Exception
Throws:
Exception

getBranches

public List<String> getBranches(@NotNull
                                String repository)
                         throws BitbucketApiException,
                                com.opensymphony.webwork.dispatcher.json.JSONException
Throws:
BitbucketApiException
com.opensymphony.webwork.dispatcher.json.JSONException


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.