Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

Chequeo Repositorio


Operación
URL

Check

Repository
/alfresco/service/cmis/s/workspace:SpacesStore/i/<id folder document library>?getRepositoryInfo
RESPONSE200 - OK
TYPEGET


Leer contenido de fichero


Operación
URL

Check

Repository
/alfresco/service/cmis/s/workspace:SpacesStore/i/<file id>?content
TYPEGET
RESPONSE200 - OK


Crear Fichero


Operación
URL

Check

Repository
/alfresco/service/cmis/s/workspace:SpacesStore/i/<id folder document library>/p/children
TYPEPOST/PUT
ALFRESCO<xsl:transform xmlns:feed="http://www.w3.org/2005/Atomxmlns:xsl="http://www.w3.org/1999/XSL/Transformxmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/xmlns:asx="http://www.sap.com/abapxmlversion="1.0">

  <xsl:output encoding="UTF-8" indent="yes" method="xml" omit-xml-declaration="no" standalone="yes" version="1.0"/>

  <xsl:param name="TITLE" select="'TITLE'"/>
  <xsl:param name="TYPE" select="'TYPE'"/>
  <xsl:param name="CONTENT" select="'CONTENT'"/>

  <xsl:strip-space elements="*"/>

  <xsl:template match="/">

    <atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
                xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
                xmlns:atom="http://www.w3.org/2005/Atom"
                xmlns:app="http://www.w3.org/2007/app"
                xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">

        <atom:title type="text"><xsl:value-of select="string($TITLE)"/></atom:title>
        <atom:summary type="text"><xsl:value-of select="string($TITLE)"/></atom:summary>

        <cmisra:content>
          <cmisra:mediatype><xsl:value-of select="string($TYPE)"/></cmisra:mediatype>
          <cmisra:base64><xsl:value-of select="string($CONTENT)"/></cmisra:base64>
        </cmisra:content>

        <cmisra:object>
          <cmis:properties>

            <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
              <cmis:value>cmis:document</cmis:value>
            </cmis:propertyId>

            <cmis:propertyString propertyDefinitionId="cmis:name" localName="FileLeafRef" displayName="Name" queryName="cmis:name" xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/">
              <cmis:value><xsl:value-of select="string($TITLE)"/></cmis:value>
            </cmis:propertyString>

          </cmis:properties>
        </cmisra:object>
    </atom:entry>


  </xsl:template>

</xsl:transform>
RESPONSE201 - OK


Crear Carpeta



Operación

URL

Create

Folder

/alfresco/service/cmis/s/workspace:SpacesStore/i/<id folder document library>/p/children


TYPEPUT/POST

ALFRESCO

<?xml version="1.0" encoding="UTF-8"?>

<atom:entry xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/">

<atom:title type="text"><dir name></atom:title>

<atom:summary type="text"></atom:summary>

<cmisra:object xmlns="http://docs.oasis-open.org/ns/cmis/restatom/200908/">

               <cmis:properties xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/">

                              <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">

                                            <cmis:value>cmis:folder</cmis:value>

                              </cmis:propertyId>

               </cmis:properties>

</cmisra:object>

</atom:entry>

RESPONSE201 - OK


Actualizar metadatos



Operación
URL
Operación
URL

Check

Repository
/alfresco/service/cmis/s/workspace:SpacesStore/i/<id file>/entry
TYPEPUT
RESPONSE201 - OK
TRF<?sap.transform simple?>
<tt:transform xmlns:atom="http://www.w3.org/2005/Atomxmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/xmlns:tt="http://www.sap.com/transformation-templatesxmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/xmlns:alf=
"http://www.alfresco.orgxmlns:app="http://www.w3.org/2007/appxmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
  <tt:root name="ROOT"/>
  <tt:template>
    <tt:serialize>
      <atom:entry>
        <tt:namespace name="tt"/>
        <tt:namespace name="cmis"/>
        <tt:namespace name="cmism"/>
        <tt:namespace name="alf"/>
        <tt:namespace name="atom"/>
        <tt:namespace name="app"/>
        <tt:namespace name="cmisra"/>

        <cmisra:object>
          <cmis:properties>
            <alf:aspects>
              <tt:loop name="lineasp" ref=".ROOT">
                <tt:cond s-check="not-initial($lineasp.aspect)">
                  <alf:appliedAspects>
                    <tt:value ref="$lineasp.aspect"/>
                  </alf:appliedAspects>
                </tt:cond>
              </tt:loop>
              <alf:properties>
                <tt:loop name="line" ref=".ROOT">
                  <cmis:propertyString>
                    <tt:attribute name="propertyDefinitionId" value-ref="$line.metadata"/>
                    <tt:attribute name="localname" value-ref="$line.metadata"/>
                    <tt:attribute name="displayName" value-ref="$line.metadata"/>
                    <tt:attribute name="queryName" value-ref="$line.metadata"/>
                    <cmis:value>
                      <tt:value ref="$line.value"/>
                    </cmis:value>
                  </cmis:propertyString>
                </tt:loop>
              </alf:properties>
            </alf:aspects>
          </cmis:properties>
        </cmisra:object>
      </atom:entry>
    </tt:serialize>
  </tt:template>
</tt:transform>


Borrar Documento


Operación
URL

Check

Repository
/alfresco/service/cmis/s/workspace:SpacesStore/i/entry?id=<file_id>
TYPEDELETE
RESPONSE200 - OK