[
http://jira.nuxeo.org/browse/NXP-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32654#action_32654
]
Radu Darlea commented on NXP-1958:
----------------------------------
The API for uploading/downloading a blob property slightly changed:
/**
* Gets a blob property content. The property is named by the xPath.
*
* @param repo
* @param docRef has to be not null
* @param xPath has to be not null
* @return
* @throws ClientAuthenticationException
* @throws ItemNotFoundException
* @throws ServerProcessingException
*/
DocumentBlob getFile(String repo, String docRef, String xPath)
throws ClientAuthenticationException,
ItemNotFoundException, ServerProcessingException;
/**
* Sets a blob property content. The property is named by the xPath.
*
* @param repo
* @param docRef has to be not null
* @param xPath has to be not null
* @return if the document has to be reloaded
* @throws ClientAuthenticationException
* @throws ItemNotFoundException
* @throws ServerProcessingException
*/
boolean saveFile(String repo, String docRef, String xPath, DocumentBlob
content)
throws ClientAuthenticationException, ItemNotFoundException,
ServerProcessingException;
Instead of byte[] it is used now a DocumentBlob class to store also the
mimeType. Some glitches eliminated.
> Add "Create new document" feature to ExternalEdit WS
> ----------------------------------------------------
>
> Key: NXP-1958
> URL: http://jira.nuxeo.org/browse/NXP-1958
> Project: Nuxeo Enterprise Platform 5
> Issue Type: New Feature
> Affects Versions: 5.1.3
> Reporter: Radu Darlea
> Assignee: Radu Darlea
> Fix For: 5.1.4
>
> Time Spent: 6 hours, 30 minutes
> Remaining Estimate: 0 minutes
>
> The JAXWS based WS ExternalEdit is able to read / write properties for
> documents. That is it is able to update the existing Nuxeo document. The
> request is for adding support for creating a document from the scratch.
> The API would look like:
> /**
> * Creates a new Nuxeo document.
> * @param repo the repository where to create
> * @param path the path to store the new document
> * @param type the document's type
> * @param title the document's title
> * @return the document reference ID if succesfully created
> * @throws ClientAuthenticationException not logged in
> * @throws ItemNotFoundException the path is wrong
> * @throws ServerProcessingException somethign went wrong
> */
> String createNewDocument(String repo, String path, String type, String
> title)
> throws ClientAuthenticationException,
> ItemNotFoundException, ServerProcessingException;
> }
> Furthermore, the WS' client can update various properties, including the blob
> property "content", allowing various Office plugins save a new document.
> The bootstrap for this actions should look like the usual one, but with fewer
> data contained.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets