Package com.collabnet.ce.webservices
Class CTFTracker
- java.lang.Object
-
- com.collabnet.ce.webservices.CTFFolder
-
- com.collabnet.ce.webservices.CTFTracker
-
- All Implemented Interfaces:
ObjectWithTitle
public class CTFTracker extends CTFFolder
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected CollabNetApp
app
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CTFArtifact
createArtifact(String title, String description, String group, String category, String status, String customer, int priority, int estimatedHours, String assignTo, String[] releaseId, CTFFlexField flexFields, String fileName, String fileMimeType, CTFFile file)
Create a new tracker artifact with the given values.protected <T extends ObjectWithTitle>
TfindByTitle(List<T> list, String title)
Convenience method for a subtype to find an item in a collection by its title.List<CTFArtifact>
getArtifactsByTitle(String title)
CTFProject
getProject()
Gets the project that this belongs to.-
Methods inherited from class com.collabnet.ce.webservices.CTFFolder
getDescription, getId, getParentFolderId, getPath, getTitle
-
-
-
-
Field Detail
-
app
protected final CollabNetApp app
-
-
Method Detail
-
getProject
public CTFProject getProject()
Description copied from class:CTFFolder
Gets the project that this belongs to.- Overrides:
getProject
in classCTFFolder
-
getArtifactsByTitle
public List<CTFArtifact> getArtifactsByTitle(String title) throws IOException
- Throws:
IOException
-
createArtifact
public CTFArtifact createArtifact(String title, String description, String group, String category, String status, String customer, int priority, int estimatedHours, String assignTo, String[] releaseId, CTFFlexField flexFields, String fileName, String fileMimeType, CTFFile file) throws IOException
Create a new tracker artifact with the given values.- Parameters:
title
- for the new trackerdescription
- of the trackergroup
- of the trackercategory
- of the trackerstatus
- of the tracker (open, closed, etc).customer
- this artifact affects.priority
- of the artifact.estimatedHours
- to fix the issue.assignTo
- user to assign this issue to.releaseId
- of the release this issue is associated with.flexFields
- user-defined fields.fileName
- of the attachment.fileMimeType
- of the attachment.file
- of the attachment (returned when attachment was uploaded).- Returns:
- the newly created Artifact object.
- Throws:
RemoteException
- if any problems occurs while creating artifactIOException
-
findByTitle
protected <T extends ObjectWithTitle> T findByTitle(List<T> list, String title)
Convenience method for a subtype to find an item in a collection by its title.
-
-