Chequeo Repositorio
Operación | URL |
---|---|
Check Repository | /alfresco/service/cmis/s/workspace:SpacesStore/i/<id folder document library>?getRepositoryInfo |
RESPONSE | 200 - OK |
TYPE | GET |
Leer contenido de fichero
Operación | URL |
---|---|
Check Repository | /alfresco/service/cmis/s/workspace:SpacesStore/i/<file id>?content |
TYPE | GET |
RESPONSE | 200 - OK |
Crear Fichero
Operación | URL |
---|---|
Check Repository | /alfresco/service/cmis/s/workspace:SpacesStore/i/<id folder document library>/p/children |
TYPE | POST/PUT |
ALFRESCO | <xsl:transform xmlns:feed="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:asx="http://www.sap.com/abapxml" version="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> |
RESPONSE | 201 - OK |
Crear Carpeta
Operación | URL |
---|---|
Create Folder | /alfresco/service/cmis/s/workspace:SpacesStore/i/<id folder document library>/p/children |
TYPE | PUT/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> |
RESPONSE | 201 - OK |
Actualizar metadatos
Operación | URL |
---|---|
Operación | URL |
Check Repository | /alfresco/service/cmis/s/workspace:SpacesStore/i/<id file>/entry |
TYPE | PUT |
RESPONSE | 201 - OK |
TRF | <?sap.transform simple?> <tt:transform xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:tt="http://www.sap.com/transformation-templates" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:alf= "http://www.alfresco.org" xmlns:app="http://www.w3.org/2007/app" xmlns: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> |
TYPE | DELETE |
RESPONSE | 200 - OK |