Package com.sudicode.fb2gh.fogbugz
Interface FogBugz
-
public interface FogBugz
Entry point for the FogBugz API. UseFBFactory
to instantiate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getAuthToken()
Get the API token.default String
getBaseURL()
Get the FogBugz URL.FBCase
getCase(int caseId)
Get a single case.Iterable<FBCase>
iterateCases(int minId, int maxId)
Iterate multiple cases within a range.List<FBArea>
listAreas()
Get a list of all areas from this FogBugz instance.List<FBArea>
listAreas(FBProject project)
Get a list of all areas from this FogBugz instance.List<FBCategory>
listCategories()
Get a list of all categories from this FogBugz instance.List<FBCheckin>
listCheckins(FBCase fbCase)
Get a list of all checkins from this FogBugz instance.List<FBMilestone>
listMilestones()
Get a list of all milestones from this FogBugz instance.List<FBMilestone>
listMilestones(FBProject project)
Get a list of all milestones from this FogBugz instance.List<FBProject>
listProjects()
Get a list of all projects from this FogBugz instance.List<FBStatus>
listStatuses()
Get a list of all statuses from this FogBugz instance.List<FBStatus>
listStatuses(FBCategory category)
Get a list of all statuses from this FogBugz instance.List<FBCase>
searchCases(String query)
Search for cases.
-
-
-
Method Detail
-
listProjects
List<FBProject> listProjects() throws FB2GHException
Get a list of all projects from this FogBugz instance.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listMilestones
List<FBMilestone> listMilestones() throws FB2GHException
Get a list of all milestones from this FogBugz instance.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listMilestones
List<FBMilestone> listMilestones(FBProject project) throws FB2GHException
Get a list of all milestones from this FogBugz instance.- Parameters:
project
- Only list milestones for this project.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listAreas
List<FBArea> listAreas() throws FB2GHException
Get a list of all areas from this FogBugz instance.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listAreas
List<FBArea> listAreas(FBProject project) throws FB2GHException
Get a list of all areas from this FogBugz instance.- Parameters:
project
- Only list areas for this project.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listCategories
List<FBCategory> listCategories() throws FB2GHException
Get a list of all categories from this FogBugz instance.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listStatuses
List<FBStatus> listStatuses() throws FB2GHException
Get a list of all statuses from this FogBugz instance.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
listStatuses
List<FBStatus> listStatuses(FBCategory category) throws FB2GHException
Get a list of all statuses from this FogBugz instance.- Parameters:
category
- Only list statues from this category.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
getCase
FBCase getCase(int caseId) throws FB2GHException
Get a single case.- Parameters:
caseId
- Case number- Returns:
- The case
- Throws:
FB2GHException
- if there is an API issue.
-
iterateCases
Iterable<FBCase> iterateCases(int minId, int maxId) throws FB2GHException
Iterate multiple cases within a range.- Parameters:
minId
- Case number to start at (inclusive)maxId
- Case number to stop at (inclusive)- Returns:
- An
Iterable
of the cases - Throws:
FB2GHException
- if there is an API issue.
-
searchCases
List<FBCase> searchCases(String query) throws FB2GHException
Search for cases.- Parameters:
query
- The query term you are searching for. Can be a string, a case number, a comma separated list of case numbers without spaces, e.g. 12,25,556. This search acts exactly the same way the search box in FogBugz operates. To search for the number 123 and not the case 123, enclose your search in quotes.- Returns:
- A list containing the search results
- Throws:
FB2GHException
- if there is an API issue.
-
listCheckins
List<FBCheckin> listCheckins(FBCase fbCase) throws FB2GHException
Get a list of all checkins from this FogBugz instance.- Parameters:
fbCase
- Only list checkins associated with this case.- Returns:
- The list
- Throws:
FB2GHException
- if there is an API issue.
-
getBaseURL
default String getBaseURL()
Get the FogBugz URL.
This method will return an empty
String
if left unimplemented.- Returns:
- The URL of this FogBugz instance.
-
getAuthToken
default String getAuthToken()
Get the API token.
This method will return an empty
String
if left unimplemented.- Returns:
- The
token
parameter used to access the API.
-
-