org.kohsuke.github
Class GHRepository

java.lang.Object
  extended by org.kohsuke.github.GHRepository

public class GHRepository
extends java.lang.Object

A repository on GitHub.

Author:
Kohsuke Kawaguchi

Constructor Summary
GHRepository()
           
 
Method Summary
 void addCollaborators(java.util.Collection<GHUser> users)
           
 void addCollaborators(GHUser... users)
           
 void delete()
          Deletes this repository.
 GHRepository fork()
          Forks this repository.
 java.util.Set<GHUser> getCollaborators()
          Gets the collaborators on this repository.
 java.lang.String getDescription()
           
 int getForks()
           
 java.lang.String getHomepage()
           
 java.lang.String getName()
           
 GHUser getOwner()
           
 java.lang.String getUrl()
           
 int getWatchers()
           
 boolean hasDownloads()
           
 boolean hasIssues()
           
 boolean hasWiki()
           
 boolean isFork()
           
 boolean isPrivate()
           
 void removeCollaborators(java.util.Collection<GHUser> users)
           
 void removeCollaborators(GHUser... users)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GHRepository

public GHRepository()
Method Detail

getDescription

public java.lang.String getDescription()

getHomepage

public java.lang.String getHomepage()

getUrl

public java.lang.String getUrl()

getName

public java.lang.String getName()

getOwner

public GHUser getOwner()
                throws java.io.IOException
Throws:
java.io.IOException

hasIssues

public boolean hasIssues()

hasWiki

public boolean hasWiki()

isFork

public boolean isFork()

getForks

public int getForks()

isPrivate

public boolean isPrivate()

hasDownloads

public boolean hasDownloads()

getWatchers

public int getWatchers()

getCollaborators

public java.util.Set<GHUser> getCollaborators()
                                       throws java.io.IOException
Gets the collaborators on this repository. This set always appear to include the owner.

Throws:
java.io.IOException

addCollaborators

public void addCollaborators(GHUser... users)
                      throws java.io.IOException
Throws:
java.io.IOException

addCollaborators

public void addCollaborators(java.util.Collection<GHUser> users)
                      throws java.io.IOException
Throws:
java.io.IOException

removeCollaborators

public void removeCollaborators(GHUser... users)
                         throws java.io.IOException
Throws:
java.io.IOException

removeCollaborators

public void removeCollaborators(java.util.Collection<GHUser> users)
                         throws java.io.IOException
Throws:
java.io.IOException

delete

public void delete()
            throws java.io.IOException
Deletes this repository.

Throws:
java.io.IOException

fork

public GHRepository fork()
                  throws java.io.IOException
Forks this repository.

Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.