Package com.collabnet.ce.webservices
Class CTFDocumentFolder
- java.lang.Object
-
- com.collabnet.ce.webservices.CTFFolder
-
- com.collabnet.ce.webservices.CTFDocumentFolder
-
- All Implemented Interfaces:
ObjectWithTitle
public class CTFDocumentFolder extends CTFFolder
A folder in the documents section.- 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 CTFDocument
createDocument(String title, String description, String versionComment, String status, boolean createLocked, String fileName, String mimeType, CTFFile file, String associationId, String associationDesc)
CTFDocumentFolder
createFolder(String title, String description)
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.CTFList<CTFDocument>
getDocuments()
CTFList<CTFDocumentFolder>
getFolders()
String
getURL()
-
Methods inherited from class com.collabnet.ce.webservices.CTFFolder
getDescription, getId, getParentFolderId, getPath, getProject, getTitle
-
-
-
-
Field Detail
-
app
protected final CollabNetApp app
-
-
Method Detail
-
getFolders
public CTFList<CTFDocumentFolder> getFolders() throws IOException
- Throws:
IOException
-
createFolder
public CTFDocumentFolder createFolder(String title, String description) throws IOException
- Throws:
IOException
-
getDocuments
public CTFList<CTFDocument> getDocuments() throws IOException
- Throws:
IOException
-
createDocument
public CTFDocument createDocument(String title, String description, String versionComment, String status, boolean createLocked, String fileName, String mimeType, CTFFile file, String associationId, String associationDesc) throws IOException
- Throws:
IOException
-
getURL
public String getURL()
-
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.
-
-