org.eclipse.egit.github.core.service
Class MilestoneService

java.lang.Object
  extended by org.eclipse.egit.github.core.service.GitHubService
      extended by org.eclipse.egit.github.core.service.MilestoneService

public class MilestoneService
extends GitHubService

Milestone service class for listing the Milestone objects in use by a repository and user accessed via a GitHubClient.

See Also:
GitHub milestones API documentation

Field Summary
 
Fields inherited from class org.eclipse.egit.github.core.service.GitHubService
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_TEXT, client
 
Constructor Summary
MilestoneService()
          Create milestone service
MilestoneService(GitHubClient client)
          Create milestone service
 
Method Summary
 Milestone createMilestone(IRepositoryIdProvider repository, Milestone milestone)
          Create a milestone
 Milestone createMilestone(String user, String repository, Milestone milestone)
          Create a milestone
 void deleteMilestone(IRepositoryIdProvider repository, int milestone)
          Delete a milestone with the given id from the given repository
 void deleteMilestone(IRepositoryIdProvider repository, String milestone)
          Delete a milestone with the given id from the given repository
 void deleteMilestone(String user, String repository, int milestone)
          Delete a milestone with the given id from the given repository
 void deleteMilestone(String user, String repository, String milestone)
          Delete a milestone with the given id from the given repository
 Milestone editMilestone(IRepositoryIdProvider repository, Milestone milestone)
          Edit the given milestone in the given repository
 Milestone getMilestone(IRepositoryIdProvider repository, int number)
          Get a milestone
 Milestone getMilestone(IRepositoryIdProvider repository, String number)
          Get a milestone
 Milestone getMilestone(String user, String repository, int number)
          Get a milestone
 Milestone getMilestone(String user, String repository, String number)
          Get a milestone
 List<Milestone> getMilestones(IRepositoryIdProvider repository, String state)
          Get milestones
 List<Milestone> getMilestones(String user, String repository, String state)
          Get milestones
 
Methods inherited from class org.eclipse.egit.github.core.service.GitHubService
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MilestoneService

public MilestoneService()
Create milestone service


MilestoneService

public MilestoneService(GitHubClient client)
Create milestone service

Parameters:
client - cannot be null
Method Detail

getMilestones

public List<Milestone> getMilestones(IRepositoryIdProvider repository,
                                     String state)
                              throws IOException
Get milestones

Parameters:
repository -
state -
Returns:
list of milestones
Throws:
IOException

getMilestones

public List<Milestone> getMilestones(String user,
                                     String repository,
                                     String state)
                              throws IOException
Get milestones

Parameters:
user -
repository -
state -
Returns:
list of milestones
Throws:
IOException

createMilestone

public Milestone createMilestone(IRepositoryIdProvider repository,
                                 Milestone milestone)
                          throws IOException
Create a milestone

Parameters:
repository - must be non-null
milestone - must be non-null
Returns:
created milestone
Throws:
IOException

createMilestone

public Milestone createMilestone(String user,
                                 String repository,
                                 Milestone milestone)
                          throws IOException
Create a milestone

Parameters:
user - must be non-null
repository - must be non-null
milestone - must be non-null
Returns:
created milestone
Throws:
IOException

getMilestone

public Milestone getMilestone(IRepositoryIdProvider repository,
                              int number)
                       throws IOException
Get a milestone

Parameters:
repository - must be non-null
number -
Returns:
created milestone
Throws:
IOException

getMilestone

public Milestone getMilestone(IRepositoryIdProvider repository,
                              String number)
                       throws IOException
Get a milestone

Parameters:
repository - must be non-null
number - must be non-null
Returns:
created milestone
Throws:
IOException

getMilestone

public Milestone getMilestone(String user,
                              String repository,
                              int number)
                       throws IOException
Get a milestone

Parameters:
user - must be non-null
repository - must be non-null
number -
Returns:
created milestone
Throws:
IOException

getMilestone

public Milestone getMilestone(String user,
                              String repository,
                              String number)
                       throws IOException
Get a milestone

Parameters:
user - must be non-null
repository - must be non-null
number - must be non-null
Returns:
created milestone
Throws:
IOException

deleteMilestone

public void deleteMilestone(IRepositoryIdProvider repository,
                            int milestone)
                     throws IOException
Delete a milestone with the given id from the given repository

Parameters:
repository -
milestone -
Throws:
IOException

deleteMilestone

public void deleteMilestone(IRepositoryIdProvider repository,
                            String milestone)
                     throws IOException
Delete a milestone with the given id from the given repository

Parameters:
repository -
milestone -
Throws:
IOException

deleteMilestone

public void deleteMilestone(String user,
                            String repository,
                            int milestone)
                     throws IOException
Delete a milestone with the given id from the given repository

Parameters:
user -
repository -
milestone -
Throws:
IOException

deleteMilestone

public void deleteMilestone(String user,
                            String repository,
                            String milestone)
                     throws IOException
Delete a milestone with the given id from the given repository

Parameters:
user -
repository -
milestone -
Throws:
IOException

editMilestone

public Milestone editMilestone(IRepositoryIdProvider repository,
                               Milestone milestone)
                        throws IOException
Edit the given milestone in the given repository

Parameters:
repository -
milestone -
Returns:
edited milestone
Throws:
IOException


Copyright © 2012. All Rights Reserved.