|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tszadel.qctools4j.clients.AbstractClient
com.tszadel.qctools4j.clients.BugClient
public class BugClient
The defect client.
| Field Summary |
|---|
| Fields inherited from class com.tszadel.qctools4j.clients.AbstractClient |
|---|
connection, NONE, WITH_ATTACHMENTS, WITH_CHILDREN |
| Method Summary | |
|---|---|
void |
addAttachmentsToBug(int pBugId,
List<Attachment> pAttachments,
boolean pSynchronize)
Add the given attachments to the bug. |
Link |
createLink(int pBugId1,
Link pLink)
Link 2 existing bugs. |
void |
delete(Bug pDefect)
Save the given defect. |
Attachment |
getAttachmentFromId(int pBugId,
int pAttachmentId)
Returns an attachment from its ID. |
List<Attachment> |
getAttachmentsOfBug(int pBugId)
Returns the attachments of the given bug Id. |
Bug |
getBug(int pId,
int pFlag)
Returns a bug. |
Collection<Bug> |
getBugs()
Returns all the Bugs without any attachment. |
Collection<Bug> |
getBugs(List<FieldFilter> pFilterList,
int pFlag)
Returns the Bugs according to a given filter |
Map<String,FieldDescription> |
getFieldDescriptions()
Overrides getFieldDescriptions. |
List<HistoryEntry> |
getHistory(int pBugId)
Returns the history of a Bug. |
List<Link> |
getLinks(int pBugId)
Returns all the links of a given bug. |
String[] |
getPriorities()
Returns the priorities that can be used. |
String[] |
getSeverities()
Returns the severities that can be used. |
Collection<Bug> |
getSimilarBugs(int pBugId)
Returns all the Bugs that are similar to the given one. |
Collection<Bug> |
getSimilarBugs(int pBugId,
int pSimilarityFactor)
Returns all the Bugs that are similar to the given one. |
String[] |
getStatuses()
Returns the statuses that can be used. |
boolean |
isExistingBug(int pId)
Check if the Bug already exists. |
void |
removeLink(int pBugId1,
int pBugId2)
Remove link 2 existing bugs. |
void |
save(Bug pBug)
Save (if id=null) or update (if id ! |
| Methods inherited from class com.tszadel.qctools4j.clients.AbstractClient |
|---|
canExecuteAction, checkConnection, checkLogin, checkPermission, containsFlag, getEncodedString, loadFields, retrieveAttachments, retrieveCustomFields, storeAttachments, storeFields, toAttachment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addAttachmentsToBug(int pBugId,
List<Attachment> pAttachments,
boolean pSynchronize)
throws QcException
pBugId - The bug Id.pAttachments - The attachments to add/update.pSynchronize - True if the given attachments is the whole list (update/removal can occur) or false if attachments have to be
just added.
QcException - Error.
public Link createLink(int pBugId1,
Link pLink)
throws QcException
pBugId1 - The source bug.pLink - The second bug.link.
QcException - Error.
public void delete(Bug pDefect)
throws QcException
pDefect - The defect.
QcException - QC Error.
public Attachment getAttachmentFromId(int pBugId,
int pAttachmentId)
throws QcException
pBugId - The bug Id.pAttachmentId - The attachment Id.
QcException - QC error.
public List<Attachment> getAttachmentsOfBug(int pBugId)
throws QcException
pBugId - The bug Id.
QcException - QcError.
public Bug getBug(int pId,
int pFlag)
throws QcException
pId - Id of the bug.pFlag - A flag.
QcException - QC error.
public Collection<Bug> getBugs()
throws QcException
QcException - QC Error.
public Collection<Bug> getBugs(List<FieldFilter> pFilterList,
int pFlag)
throws QcException
pFilterList - the filters (may be null)pFlag - The flag to use in the request.
QcException - QC Error.
public Map<String,FieldDescription> getFieldDescriptions()
throws QcException
getFieldDescriptions in class AbstractClientQcException - Qc Error.AbstractClient.getFieldDescriptions()
public List<HistoryEntry> getHistory(int pBugId)
throws QcException
pBugId - The Bug id.
QcException - QC Error.
public List<Link> getLinks(int pBugId)
throws QcException
pBugId - The bug Id.
QcException - Error.
public String[] getPriorities()
throws QcException
QcException - Qc Error.
public String[] getSeverities()
throws QcException
QcException - Qc Error.
public Collection<Bug> getSimilarBugs(int pBugId)
throws QcException
pBugId - The bug id.
QcException - QC Error.
public Collection<Bug> getSimilarBugs(int pBugId,
int pSimilarityFactor)
throws QcException
pBugId - The bug id.pSimilarityFactor - The similarity factor (between 0 and 100)
QcException - QC Error.
IllegalArgumentException - The factor range is incorrect.
public String[] getStatuses()
throws QcException
QcException - Qc Error.
public boolean isExistingBug(int pId)
throws QcException
pId - Id of the Bug.
QcException - QC Error.
public void removeLink(int pBugId1,
int pBugId2)
throws QcException
pBugId1 - The first bug.pBugId2 - The second bug.
QcException - Error.
public void save(Bug pBug)
throws QcException
Note:The attachments are not updated.
pBug - The Bug.
QcException - QC Error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||