|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.paylogic.fogbugz.FogbugzManager
public class FogbugzManager
Manager for FogbugzCase objects. Use this to retrieve, save and create cases.
| Constructor Summary | |
|---|---|
FogbugzManager(String url,
String token,
String featureBranchFieldname,
String originalBranchFieldname,
String targetBranchFieldname,
String approvedRevisionFieldname,
String ciProjectFieldName,
int mergekeeperUserId,
int gatekeeperUserId)
Constructor of FogbugzManager. |
|
| Method Summary | |
|---|---|
FogbugzCase |
assignToGatekeepers(FogbugzCase fbCase)
Assign the given case to gatekeepers (uses GatekeeperUserID from global settings) |
FogbugzCase |
assignToMergekeepers(FogbugzCase fbCase)
Assign case to mergekeepers user id. |
boolean |
createMilestone(FogbugzMilestone milestone)
Creates new Milestone in Fogbugz. |
boolean |
createMilestoneIfNotExists(String milestoneName)
|
FogbugzCase |
getCaseById(int id)
Retrieves a case using the Fogbugz API by caseId. |
List<FogbugzEvent> |
getEventsForCase(int id)
Retrieves all events for a certain case. |
FogbugzUser |
getFogbugzUser(int ix)
|
FogbugzEvent |
getLastAssignedTo(int caseId,
int userId)
Loop through all FogbugzEvent for given case id, and return last (in time) with assignment to given user. |
FogbugzEvent |
getLastAssignedToGatekeepersEvent(int caseId)
Loop through all FogbugzEvent for given case id, and return last (in time) with assignment to gatekeepers. |
List<FogbugzMilestone> |
getMilestones()
Retrieves all milestones and returns them in a nice List of FogbugzMilestone objects. |
boolean |
saveCase(FogbugzCase fbCase)
Additional save method that does not propagate a comment. |
boolean |
saveCase(FogbugzCase fbCase,
String comment)
Saves a case to fogbugz using its API. |
List<FogbugzCase> |
searchForCases(String query)
Retrieves cases using the Fogbugz API by a query |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FogbugzManager(String url,
String token,
@Nullable
String featureBranchFieldname,
@Nullable
String originalBranchFieldname,
@Nullable
String targetBranchFieldname,
@Nullable
String approvedRevisionFieldname,
@Nullable
String ciProjectFieldName,
int mergekeeperUserId,
int gatekeeperUserId)
| Method Detail |
|---|
public FogbugzCase getCaseById(int id)
throws InvalidResponseException,
NoSuchCaseException
id - the id of the case to fetch.
InvalidResponseException
NoSuchCaseException
public List<FogbugzCase> searchForCases(String query)
throws InvalidResponseException,
NoSuchCaseException
query - fogbugz search query
InvalidResponseException
NoSuchCaseExceptionpublic List<FogbugzEvent> getEventsForCase(int id)
id - Case id to fetch events from
public FogbugzEvent getLastAssignedToGatekeepersEvent(int caseId)
caseId -
public FogbugzEvent getLastAssignedTo(int caseId,
int userId)
caseId - userId -
public boolean saveCase(FogbugzCase fbCase,
String comment)
fbCase - The case to save.comment - A message to pass for this edit.
public boolean saveCase(FogbugzCase fbCase)
fbCase - The case to save.
public FogbugzCase assignToMergekeepers(FogbugzCase fbCase)
fbCase - the case to set assignedTo on.
public FogbugzCase assignToGatekeepers(FogbugzCase fbCase)
fbCase - The case to edit.
public FogbugzUser getFogbugzUser(int ix)
public List<FogbugzMilestone> getMilestones()
public boolean createMilestone(FogbugzMilestone milestone)
milestone - to edit/createpublic boolean createMilestoneIfNotExists(String milestoneName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||