After few discussions it seems like we need two more methods.

1. createNewDocument(String documentName, String content) //This method will
> throw an exception if the document already exists.
>
> 2. setDocumentContent(String documentName, String newContent) //For
> updating an existing document.
>
> 3. setDocumentSyntaxId(String documentName, String syntaxId) //For
> presentation documents the syntax would be 1.0 and for others it would be
> 2.0
>
> 4.  addAttachmentToDocument(String documentName, String AttachmentName,
> byte [] attachmentData) //For making attachments
>
> 5. isDocumentEditable(String documentName) //This is following
> isDocumentViewable() mthod. But we could also have a hasRight() mthod
> instead.
>

6. getCurrentUser() // Returns the current user as a string (equivalent to
XWikiContext.getUser())

7. getDefaultEncoding() // Returns the default wiki encoding (equivalent to
xwikiContext.getWiki().getEncoding())

Thanks.

- Asiri
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to