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

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

public class BitbucketApiAccessor
extends java.lang.Object


Constructor Summary
BitbucketApiAccessor(java.lang.String username, java.lang.String password, com.atlassian.sal.api.message.I18nResolver i18nResolver)
           
 
Method Summary
 java.util.List<java.lang.String> getBranches(java.lang.String repository)
           
 java.util.List<java.lang.String> getPrivateRepositories()
           
 java.util.List<java.lang.String> getPublicRepositories()
           
static java.lang.String getUsernameForAnEmail(java.lang.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(java.lang.String username,
                            java.lang.String password,
                            com.atlassian.sal.api.message.I18nResolver i18nResolver)
Method Detail

getUsernameForAnEmail

public static java.lang.String getUsernameForAnEmail(@NotNull
                                                     java.lang.String email)

getPublicRepositories

@NotNull
public java.util.List<java.lang.String> getPublicRepositories()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPrivateRepositories

@NotNull
public java.util.List<java.lang.String> getPrivateRepositories()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

getBranches

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.