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.opensymphony.xwork.TextProvider textProvider)
           
 
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.opensymphony.xwork.TextProvider textProvider)
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 © 2012 Atlassian. All Rights Reserved.