Package com.collabnet.ce.webservices
Class CTFPackage
- java.lang.Object
-
- com.collabnet.ce.webservices.CTFFolder
-
- com.collabnet.ce.webservices.CTFPackage
-
- All Implemented Interfaces:
ObjectWithTitle
public class CTFPackage 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 CTFRelease
createRelease(String title, String description, String status, String maturity)
void
delete()
Deletes this package.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.CTFRelease
getReleaseById(String releaseId)
CTFRelease
getReleaseByTitle(String title)
Finds a release by its title, or return null if not found.CTFList<CTFRelease>
getReleases()
-
Methods inherited from class com.collabnet.ce.webservices.CTFFolder
getDescription, getId, getParentFolderId, getPath, getProject, getTitle
-
-
-
-
Field Detail
-
app
protected final CollabNetApp app
-
-
Method Detail
-
delete
public void delete() throws IOException
Deletes this package.- Throws:
IOException
-
createRelease
public CTFRelease createRelease(String title, String description, String status, String maturity) throws IOException
- Throws:
IOException
-
getReleaseByTitle
public CTFRelease getReleaseByTitle(String title) throws IOException
Finds a release by its title, or return null if not found.- Throws:
IOException
-
getReleaseById
public CTFRelease getReleaseById(String releaseId) throws IOException
- Throws:
IOException
-
getReleases
public CTFList<CTFRelease> getReleases() throws IOException
- Throws:
IOException
-
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.
-
-