Package com.collabnet.ce.webservices
Class CTFDocument
- java.lang.Object
- 
- com.collabnet.ce.webservices.CTFItem
- 
- com.collabnet.ce.webservices.CTFDocument
 
 
- 
- All Implemented Interfaces:
- ObjectWithTitle
 
 public class CTFDocument extends CTFItem - Author:
- Kohsuke Kawaguchi
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected CollabNetAppappprotected Stringid
 - 
Constructor SummaryConstructors Constructor Description CTFDocument(com.collabnet.ce.webservices.CTFObject parent, org.json.simple.JSONObject data)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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.StringgetDescription()StringgetId()StringgetURL()Get the document's URL.voidupdate(CTFFile file)Updates this document by a new file.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.collabnet.ce.webservices.ObjectWithTitlegetId
 
- 
 
- 
- 
- 
Field Detail- 
appprotected final CollabNetApp app 
 - 
idprotected final String id 
 
- 
 - 
Method Detail- 
getDescriptionpublic String getDescription() 
 - 
updatepublic void update(CTFFile file) throws IOException Updates this document by a new file.- Throws:
- IOException
 
 - 
getURLpublic String getURL() Get the document's URL.- Returns:
- an absolute URL to the document.
 
 - 
getIdpublic String getId() 
 - 
findByTitleprotected <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.
 
- 
 
-