Content Web Service

cancel
Showing results for 
Search instead for 
Did you mean: 

Content Web Service

resplin
Intermediate
0 0 2,216

{{Obsolete}}

Please note that this API has been superceded by CMIS (specifically, the CMIS SOAP binding).  It's use is no longer recommended. This functionality was removed from Alfresco in 5.0.b.

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.


Change Log


Data Types


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

Methods


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

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

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