Platform Explorer / Nuxeo Platform LTS 2015 7.10

Operation Picture.Create

Create Picture

Description

Create a Picture document in the input folder. You can initialize the document properties using the 'properties' parameter. The properties are specified as key=value pairs separated by a new line. The key originalPicture is used to reference the JSON representation of the Blob for the original picture. The pictureTemplates parameter can be used to define the size of the different views to be generated, each line must be a JSONObject { title="title", description="description", maxsize=maxsize}. Returns the created document.
Operation id Picture.Create
Category Services
Label Create Picture
Requires
Since

Parameters

Name Description Type Required Default value
name string no  
pictureTemplates properties no  
properties properties no  

Signature

Inputs document, documents
Outputs document, documents

Implementation information

Implementation class org.nuxeo.ecm.platform.picture.operation.CreatePicture
Contributing component org.nuxeo.ecm.platform.picture.operation

JSON definition

{
  "id" : "Picture.Create",
  "label" : "Create Picture",
  "category" : "Services",
  "requires" : null,
  "description" : "Create a Picture document in the input folder. You can initialize the document properties using the 'properties' parameter. The properties are specified as <i>key=value</i> pairs separated by a new line. The key <i>originalPicture</i> is used to reference the JSON representation of the Blob for the original picture. The <i>pictureTemplates</i> parameter can be used to define the size of the different views to be generated, each line must be a JSONObject { title=\"title\", description=\"description\", maxsize=maxsize}. Returns the created document.",
  "url" : "Picture.Create",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "name",
    "description" : "",
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "pictureTemplates",
    "description" : "",
    "type" : "properties",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "properties",
    "description" : "",
    "type" : "properties",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}