Content Web Service
From AlfrescoWiki
Back to Alfresco Content Management Web Services.
This service provides read and write access to content streams.
Note: Options such as SOAP w/ Attachments and XOP are also being investigated.
Contents |
[edit] Change Log
[edit] Data Types
[edit] Content
Content data type encapsulates the data associated with a content node and a particular content property. It is made up of three main parts:
- Reference node - a reference to the node created
- string property - the content property QName string
- int length - the length of the content
- ContentFormat contentFormat - the content format of the content
- string url - a string representing the URl to the content
[edit] Methods
[edit] read
This methods reads the content from a content property on a node.
Content[] read(Predicate items, xsd:string property)
Parameters:
- items - predicate to the nodes to be read
- property - the QName string of a content property
Return:
- the content data relating to the content nodes read from
[edit] write
This methods writes content into the repository onto a given nodes content property.
Content write(Reference node, xsd:string property, xsd:base64Binary content, ContentFormat format)
Parameters:
- node - a reference to the node
- property - the QName string of a content property
- content - the content
- format - the content format of the content. This is optional, if it is not passed then the existing content format remains unchanged.
Return:
- the content data relating to the content node written to
[edit] clear
Clears the content of a given property on a number of content nodes.
Content[] clear(Predicate items, xsd:string property)
Parameters:
- items- predicate to a set of nodes
- property - the QName string of a content property
Return:
- the content data relating to the content nodes cleared

