Content Web Service V1.0

From AlfrescoWiki

Jump to: navigation, search

Back to Content Web Service.

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] Content Data Type

Image:datatype_content.jpg

[edit] describe

Describe a content stream.

Content[] = content.describe(Predicate items)

[edit] read

Retrieve content from the Repository.

ReadResult = content.read(Reference node)

[edit] ReadResult

[edit] write

Write content to the Repository.

void content.write(Reference node, xsd:base64Binary content)

[edit] create

Create a new content entity.

[Content Web Service V1.0#Content Data Type|Content]] = content.create(ParentReference parent, xsd:string name, ContentFormat format, xsd:base64Binary content)

[edit] exists

Determine if content stream actually exists.

ExistsResult[] = content.exists(Predicate items)

[edit] ExistsResult

  • content - Reference
  • exists - boolean
  • length - long

[edit] delete

Delete content entities.

Reference[] = content.delete(Predicate items)