diff --git a/.classpath b/.classpath index 5f52aa0f80..05f0b6a38a 100644 --- a/.classpath +++ b/.classpath @@ -3,6 +3,8 @@ + + diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl b/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl index 02a767909b..2d89e013e2 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl @@ -1,39 +1,79 @@ <#macro document node> - <#-- TODO: link elements (both APP and CMIS) --> - - ${node.name} - - urn:uuid:${node.id} - ${xmldate(node.properties.modified)} - ${xmldate(node.properties.created)} - ${node.properties.description!""} - ${node.properties.creator} - ${node.nodeRef} - ${absurl(url.context)}${node.icon16} - <#-- TODO: full cmis schema --> - - ${node.id} - document - - +<#-- ATOM props --> +${node.name} +urn:uuid:${node.id} +${xmldate(node.properties.modified)} +${xmldate(node.properties.created)} +${node.properties.description!""} +${node.properties.creator} +<#-- Alfresco props --> +${node.nodeRef} +${absurl(url.context)}${node.icon16} +<#-- CMIS Schema --> + + ${node.id} + document + http://example.org/atom03 <#-- TODO: --> + document <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + true <#-- TODO: --> + false <#-- TODO: --> + 534 <#-- TODO: --> + application/msword <#-- TODO: --> + myDocument.doc <#-- TODO: --> + http://example.org/media/atom03 <#-- TODO: --> + XML <#-- TODO: --> + standards <#-- TODO: --> + +<#-- TODO: ATOM LINKS --> + + <#-- TODO: --> +<#-- CMIS LINKS --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> <#macro folder node> - <#-- TODO: link elements (both APP and CMIS) --> - - ${node.name} - - urn:uuid:${node.id} - ${xmldate(node.properties.modified)} - ${xmldate(node.properties.created)} - ${node.properties.description!""} - ${node.properties.creator!""} - ${node.nodeRef} - ${absurl(url.context)}${node.icon16} - <#-- TODO: full cmis schema --> - - ${node.id} - folder - - +<#-- ATOM props --> +${node.name} + +urn:uuid:${node.id} +${xmldate(node.properties.modified)} +${xmldate(node.properties.created)} +${node.properties.description!""} +${node.properties.creator!""} +<#-- Alfresco props --> +${node.nodeRef} +${absurl(url.context)}${node.icon16} +<#-- CMIS Schema --> + + ${node.id} + folder + http://example.org/folders/myfolder <#-- TODO: --> + folder <#-- TODO: --> + folder <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + Atom-powered folders <#-- TODO: --> + folderIdp1 <#-- TODO: --> + <#-- In certain cases, if depth is specified children may appear Here. If there are children, the cmis:object tag will be nested For the children of this item --> + +<#-- TODO: ATOM LINKS --> + +<#-- CMIS LINKS --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml new file mode 100644 index 0000000000..a13ec977ce --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml @@ -0,0 +1,6 @@ + + CMIS Index + Provides an index of CMIS services + /cmis + /index/cmis + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl new file mode 100644 index 0000000000..f08a4bee6d --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl @@ -0,0 +1,42 @@ + + + + Index of CMIS Services + + + + + + + + +
AlfrescoIndex of CMIS Services
${services?size} Services +
+
+ +
Back to Web Scripts Home +
+
+ <#list services as webscript> + <#assign desc = webscript.description> + ${desc.shortName} + + <#list desc.URIs as uri> +
${desc.method} ${url.serviceContext}${uri} + +
+
+ + <#if desc.description??>
Description:${desc.description}<#else> +
Authentication:${desc.requiredAuthentication} +
Transaction:${desc.requiredTransaction} +
Format Style:${desc.formatStyle} +
Default Format:${desc.defaultFormat!"Determined at run-time"} +
+
Id:${desc.id} +
Description:${desc.storePath}/${desc.descPath} +
+
+ + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl b/config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl new file mode 100644 index 0000000000..c76ef2e2de --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl @@ -0,0 +1,8 @@ +<#macro appNS>http://www.w3.org/2007/app +<#macro atomNS>http://www.w3.org/2005/Atom +<#macro cmisNS>http://www.cmis.org/CMIS/1.0 +<#macro alfNS>http://www.alfresco.org +<#macro opensearchNS>http://a9.com/-/spec/opensearch/1.1/ +<#macro serviceNS>xmlns="<@appNS/>" xmlns:atom="<@atomNS/>" xmlns:cmis="<@cmisNS/>" xmlns:alf="<@alfNS/>" +<#macro feedNS>xmlns="<@atomNS/>" xmlns:cmis="<@cmisNS/>" xmlns:alf="<@alfNS/>" xmlns:opensearch="<@opensearchNS/>" +<#macro entryNS>xmlns="<@atomNS/>" xmlns:cmis="<@cmisNS/>" xmlns:alf="<@alfNS/>" \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl index c555684ae5..400d66136f 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl @@ -1,20 +1,29 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> - +> ${server.name} - - + + <#-- TODO: cmis version --> + + + ${server.id} + ${server.name} + <#-- TODO --> Alfresco Alfresco Repository (${server.edition}) ${server.version} true + false + false false true + true + true - - - + + <#-- TODO: cmis:id on collection elements - are they required by cmis? --> <#-- TODO: collection resources --> diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl index 2a0a2d7ee4..380d5a1b63 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl @@ -1,22 +1,25 @@ -<#import "/org/alfresco/paging.lib.atom.ftl" as pagingLib/> +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> <#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> +<#import "/org/alfresco/paging.lib.atom.ftl" as pagingLib/> - - Alfresco (${server.edition}) - ${node.name} - ${xmldate(node.properties.modified)} - ${absurl(url.context)}/images/logo/AlfrescoLogo16.ico - - ${node.properties.creator!""} - - urn:uuid:${node.id} - - <@pagingLib.cursor cursor=cursor/> +> +Alfresco (${server.edition}) +${node.name} +${xmldate(node.properties.modified)} +${absurl(url.context)}/images/logo/AlfrescoLogo16.ico + + ${node.properties.creator!""} + +urn:uuid:${node.id} + +<@pagingLib.cursor cursor=cursor/> <#list results as child> + <#if child.isDocument> - <@entriesLib.document node=child/> +<@entriesLib.document node=child/> <#else> - <@entriesLib.folder node=child/> +<@entriesLib.folder node=child/> + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml index d3c54a228f..23a04196d7 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml @@ -4,5 +4,6 @@ /api/node/{store_type}/{store_id}/{id}/children?types={types}&filter={filter?}&skipCount={skipCount?}&maxChildren={maxChildren?} /api/path/{store_type}/{store_id}/{id}/children?types={types}&filter={filter?}&skipCount={skipCount?}&maxChildren={maxChildren?} guest - + argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js new file mode 100644 index 0000000000..d485263295 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js @@ -0,0 +1,56 @@ +script: +{ + // ensure atom entry is posted + if (entry === null) + { + status.code = 400; + status.message = "Expected atom entry"; + status.redirect = true; + break script; + } + + // locate node + var pathSegments = url.match.split("/"); + var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/")); + model.parent = cmis.findNode(pathSegments[2], reference); + if (model.parent === null) + { + status.code = 404; + status.message = "Repository " + pathSegments[2] + " " + reference.join("/") + " not found"; + status.redirect = true; + break script; + } + + // pull apart atom entry + // TODO: creation of folder + // TODO: creation of file/folder sub-types + // TODO: cmis properties + + var id = entry.id; + var name = (slug !== null) ? slug : entry.title; + var title = entry.title; + var description = entry.summary; + var updated = entry.updated; + var author = (entry.author !== null) ? entry.author.name : null; + var content = entry.content; + + // create the item + // TODO: author/updated/id + var node = model.parent.createFile(name); + node.properties.title = title; + node.properties.description = description; + if (content !== null) + { + node.content = content; + node.properties.content.encoding = "UTF-8"; + node.properties.content.mimetype = atom.toMimeType(entry); + } + node.save(); + model.node = node; + + // setup for 201 Created response + // TODO: set Content-Location + status.code = 201; + status.location = url.server + url.serviceContext + "/api/node/" + node.nodeRef.storeRef.protocol + "/" + node.nodeRef.storeRef.identifier + "/" + node.nodeRef.id + "/properties"; + status.redirect = true; +} diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl new file mode 100644 index 0000000000..8ab2160d54 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl @@ -0,0 +1,10 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> +<#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> + +> +<#if node.isDocument> + <@entriesLib.document node=node/> +<#else> + <@entriesLib.folder node=node/> + + diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml new file mode 100644 index 0000000000..20301c7a79 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml @@ -0,0 +1,9 @@ + + Create folder or document + + /api/node/{store_type}/{store_id}/{id}/children + /api/path/{store_type}/{store_id}/{id}/children + user + + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js new file mode 100644 index 0000000000..1527e32831 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js @@ -0,0 +1,9 @@ +script: +{ + // TODO: Handle direct posting of media + + status.code = 400; + status.message = "Posting of media resource not supported"; + status.redirect = true; + break script; +} diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml index 3eae36fdaf..e563d134c4 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml @@ -3,7 +3,10 @@ Stream a content property from the Repository /api/node/content{property}/{store_type}/{store_id}/{node_id}?a={attach?} /api/path/content{property}/{store_type}/{store_id}/{path}?a={attach?} - /api/avmpath/content{property}/{store_id}/{path}?a={attach?} + /api/avmpath/content{property}/{store_id}/{path}?a={attach?} + /api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?} + /api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?} guest argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl index f79d53f12d..b31371dcc5 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl @@ -1,23 +1,26 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> <#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> - - Alfresco (${server.edition}) - ${node.name} - ${xmldate(node.properties.modified)} - ${absurl(url.context)}/images/logo/AlfrescoLogo16.ico - - ${node.properties.creator!""} - - urn:uuid:${node.id} - - <@parent node=node.parent recurse=returnToRoot/> +> +Alfresco (${server.edition}) +${node.name} +${xmldate(node.properties.modified)} +${absurl(url.context)}/images/logo/AlfrescoLogo16.ico + + ${node.properties.creator!""} + +urn:uuid:${node.id} + +<@parent node=node.parent recurse=returnToRoot/> <#macro parent node recurse=false> - <#if node?exists && node.isContainer> - <@entriesLib.folder node=node/> - <#if recurse> - <@parent node=node.parent recurse=true/> - - +<#if node?exists && node.isContainer> + +<@entriesLib.folder node=node/> + +<#if recurse> + <@parent node=node.parent recurse=true/> + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml index aa8e8e03eb..b1dfe27108 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml @@ -5,4 +5,5 @@ /api/path/{store_type}/{store_id}/{id}/parent?returnToRoot={returnToRoot} guest argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl index c790833014..6125bfccee 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl @@ -1,24 +1,27 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> <#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> - - Alfresco (${server.edition}) - ${node.name} - ${xmldate(node.properties.modified)} - ${absurl(url.context)}/images/logo/AlfrescoLogo16.ico - - ${node.properties.creator!""} - - urn:uuid:${node.id} - - <@parent node=node.parent recurse=returnToRoot/> - <#-- TODO: secondary parents loop --> +> +Alfresco (${server.edition}) +${node.name} +${xmldate(node.properties.modified)} +${absurl(url.context)}/images/logo/AlfrescoLogo16.ico + + ${node.properties.creator!""} + +urn:uuid:${node.id} + +<@parent node=node.parent recurse=returnToRoot/> +<#-- TODO: secondary parents loop --> <#macro parent node recurse=false> - <#if node?exists && node.isContainer> - <@entriesLib.folder node=node/> - <#if recurse> - <@parent node=node.parent recurse=true/> - - +<#if node?exists && node.isContainer> + +<@entriesLib.folder node=node/> + +<#if recurse> + <@parent node=node.parent recurse=true/> + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml index 669ad14305..bad01ef72b 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml @@ -6,4 +6,5 @@ /api/path/{store_type}/{store_id}/{id}/parents guest argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl new file mode 100644 index 0000000000..8ab2160d54 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl @@ -0,0 +1,10 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> +<#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> + +> +<#if node.isDocument> + <@entriesLib.document node=node/> +<#else> + <@entriesLib.folder node=node/> + + diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml new file mode 100644 index 0000000000..a5db731245 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml @@ -0,0 +1,10 @@ + + Retrieve properties + Retrieves the properties of the node + + /api/node/{store_type}/{store_id}/{id}/properties?filter={filter?}&returnVersion={returnVersion?} + /api/path/{store_type}/{store_id}/{id}/properties?filter={filter?}&returnVersion={returnVersion?} + guest + argument + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js new file mode 100644 index 0000000000..4be2d998a6 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js @@ -0,0 +1,17 @@ +script: +{ + // locate node + var pathSegments = url.match.split("/"); + var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/")); + model.node = cmis.findNode(pathSegments[2], reference); + if (model.node === null) + { + status.code = 404; + status.message = "Repository " + pathSegments[2] + " " + reference.join("/") + " not found"; + status.redirect = true; + break script; + } + + // TODO: handle version?? + // TODO: property filters +} diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml index 43c1637069..2698020b9b 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml @@ -4,4 +4,5 @@ /api/unfiled guest + \ No newline at end of file diff --git a/config/alfresco/web-scripts-application-context.xml b/config/alfresco/web-scripts-application-context.xml index f08f170509..cd5aaea873 100644 --- a/config/alfresco/web-scripts-application-context.xml +++ b/config/alfresco/web-scripts-application-context.xml @@ -1,5 +1,5 @@ - + @@ -94,7 +94,7 @@ Repository - + @@ -117,7 +117,7 @@ - + @@ -409,10 +409,15 @@ + + + + + diff --git a/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java new file mode 100644 index 0000000000..1f0ba66b90 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for addDocumentToFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="addDocumentToFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "folderId" +}) +@XmlRootElement(name = "addDocumentToFolder") +public class AddDocumentToFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java new file mode 100644 index 0000000000..06a402cd22 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for addDocumentToFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="addDocumentToFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "addDocumentToFolderResponse") +public class AddDocumentToFolderResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java b/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java new file mode 100644 index 0000000000..c65752dc77 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for allowableActionsEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="allowableActionsEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="delete"/>
+ *     <enumeration value="updateProperties"/>
+ *     <enumeration value="checkOut"/>
+ *     <enumeration value="cancelCheckOut"/>
+ *     <enumeration value="checkIn"/>
+ *     <enumeration value="deleteVersion"/>
+ *     <enumeration value="addToFolder"/>
+ *     <enumeration value="removeFromFolder"/>
+ *     <enumeration value="setContent"/>
+ *     <enumeration value="deleteContent"/>
+ *     <enumeration value="getAllVersions"/>
+ *     <enumeration value="getChilderen"/>
+ *     <enumeration value="getParents"/>
+ *     <enumeration value="getRelationships"/>
+ *     <enumeration value="getProperties"/>
+ *     <enumeration value="viewContent"/>
+ *     <enumeration value="move"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum AllowableActionsEnum { + + @XmlEnumValue("addToFolder") + ADD_TO_FOLDER("addToFolder"), + @XmlEnumValue("cancelCheckOut") + CANCEL_CHECK_OUT("cancelCheckOut"), + @XmlEnumValue("checkIn") + CHECK_IN("checkIn"), + @XmlEnumValue("checkOut") + CHECK_OUT("checkOut"), + @XmlEnumValue("delete") + DELETE("delete"), + @XmlEnumValue("deleteContent") + DELETE_CONTENT("deleteContent"), + @XmlEnumValue("deleteVersion") + DELETE_VERSION("deleteVersion"), + @XmlEnumValue("getAllVersions") + GET_ALL_VERSIONS("getAllVersions"), + @XmlEnumValue("getChilderen") + GET_CHILDEREN("getChilderen"), + @XmlEnumValue("getParents") + GET_PARENTS("getParents"), + @XmlEnumValue("getProperties") + GET_PROPERTIES("getProperties"), + @XmlEnumValue("getRelationships") + GET_RELATIONSHIPS("getRelationships"), + @XmlEnumValue("move") + MOVE("move"), + @XmlEnumValue("removeFromFolder") + REMOVE_FROM_FOLDER("removeFromFolder"), + @XmlEnumValue("setContent") + SET_CONTENT("setContent"), + @XmlEnumValue("updateProperties") + UPDATE_PROPERTIES("updateProperties"), + @XmlEnumValue("viewContent") + VIEW_CONTENT("viewContent"); + private final String value; + + AllowableActionsEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AllowableActionsEnum fromValue(String v) { + for (AllowableActionsEnum c: AllowableActionsEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java b/source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java new file mode 100644 index 0000000000..2a943e8a85 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "AlreadyExistsFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class AlreadyExistsException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault alreadyExistsFault; + + public AlreadyExistsException() { + super(); + } + + public AlreadyExistsException(String message) { + super(message); + } + + public AlreadyExistsException(String message, Throwable cause) { + super(message, cause); + } + + public AlreadyExistsException(String message, org.alfresco.repo.cmis.ws.BasicFault alreadyExistsFault) { + super(message); + this.alreadyExistsFault = alreadyExistsFault; + } + + public AlreadyExistsException(String message, org.alfresco.repo.cmis.ws.BasicFault alreadyExistsFault, Throwable cause) { + super(message, cause); + this.alreadyExistsFault = alreadyExistsFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.alreadyExistsFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java b/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java new file mode 100644 index 0000000000..a6ee2a7f5c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java @@ -0,0 +1,91 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for basicFault complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="basicFault">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "basicFault", propOrder = { + "errorCode", + "errorMessage" +}) +public class BasicFault { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger errorCode; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String errorMessage; + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setErrorCode(BigInteger value) { + this.errorCode = value; + } + + /** + * Gets the value of the errorMessage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + * Sets the value of the errorMessage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorMessage(String value) { + this.errorMessage = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java new file mode 100644 index 0000000000..b3fb25bbff --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cancelCheckOut element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="cancelCheckOut">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "cancelCheckOut") +public class CancelCheckOut { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java new file mode 100644 index 0000000000..54603431ee --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cancelCheckOutResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="cancelCheckOutResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "cancelCheckOutResponse") +public class CancelCheckOutResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java new file mode 100644 index 0000000000..9583eb96d2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for capabilitiesType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="capabilitiesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="capabilityMultifiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="capabilityUpdatePWC" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="capabilityAllVersionsSearchable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "capabilitiesType", propOrder = { + "capabilityMultifiling", + "capabilityUpdatePWC", + "capabilityAllVersionsSearchable" +}) +public class CapabilitiesType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean capabilityMultifiling; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean capabilityUpdatePWC; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean capabilityAllVersionsSearchable; + + /** + * Gets the value of the capabilityMultifiling property. + * + */ + public boolean isCapabilityMultifiling() { + return capabilityMultifiling; + } + + /** + * Sets the value of the capabilityMultifiling property. + * + */ + public void setCapabilityMultifiling(boolean value) { + this.capabilityMultifiling = value; + } + + /** + * Gets the value of the capabilityUpdatePWC property. + * + */ + public boolean isCapabilityUpdatePWC() { + return capabilityUpdatePWC; + } + + /** + * Sets the value of the capabilityUpdatePWC property. + * + */ + public void setCapabilityUpdatePWC(boolean value) { + this.capabilityUpdatePWC = value; + } + + /** + * Gets the value of the capabilityAllVersionsSearchable property. + * + */ + public boolean isCapabilityAllVersionsSearchable() { + return capabilityAllVersionsSearchable; + } + + /** + * Sets the value of the capabilityAllVersionsSearchable property. + * + */ + public void setCapabilityAllVersionsSearchable(boolean value) { + this.capabilityAllVersionsSearchable = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java b/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java new file mode 100644 index 0000000000..19969764c7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java @@ -0,0 +1,49 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for cardinalityEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="cardinalityEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="singleValued"/>
+ *     <enumeration value="multiValued"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum CardinalityEnum { + + @XmlEnumValue("multiValued") + MULTI_VALUED("multiValued"), + @XmlEnumValue("singleValued") + SINGLE_VALUED("singleValued"); + private final String value; + + CardinalityEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CardinalityEnum fromValue(String v) { + for (CardinalityEnum c: CardinalityEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java new file mode 100644 index 0000000000..f298f52633 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java @@ -0,0 +1,178 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkIn element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkIn">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="major" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element name="properties" type="{http://www.cmis.org/ns/1.0}documentObjectType" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
+ *           <element name="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "major", + "properties", + "contentStream", + "checkinComment" +}) +@XmlRootElement(name = "checkIn") +public class CheckIn { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean major; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected DocumentObjectType properties; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected ContentStream contentStream; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String checkinComment; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the major property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isMajor() { + return major; + } + + /** + * Sets the value of the major property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMajor(Boolean value) { + this.major = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link DocumentObjectType } + * + */ + public DocumentObjectType getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link DocumentObjectType } + * + */ + public void setProperties(DocumentObjectType value) { + this.properties = value; + } + + /** + * Gets the value of the contentStream property. + * + * @return + * possible object is + * {@link ContentStream } + * + */ + public ContentStream getContentStream() { + return contentStream; + } + + /** + * Sets the value of the contentStream property. + * + * @param value + * allowed object is + * {@link ContentStream } + * + */ + public void setContentStream(ContentStream value) { + this.contentStream = value; + } + + /** + * Gets the value of the checkinComment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCheckinComment() { + return checkinComment; + } + + /** + * Sets the value of the checkinComment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCheckinComment(String value) { + this.checkinComment = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java new file mode 100644 index 0000000000..b40c57fea8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkInResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkInResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "checkInResponse") +public class CheckInResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java b/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java new file mode 100644 index 0000000000..75c5e4dd7d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkOut element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkOut">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "checkOut") +public class CheckOut { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java new file mode 100644 index 0000000000..ec022a690e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkOutResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkOutResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="contentCopied" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "contentCopied" +}) +@XmlRootElement(name = "checkOutResponse") +public class CheckOutResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean contentCopied; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the contentCopied property. + * + */ + public boolean isContentCopied() { + return contentCopied; + } + + /** + * Sets the value of the contentCopied property. + * + */ + public void setContentCopied(boolean value) { + this.contentCopied = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Children.java b/source/generated/org/alfresco/repo/cmis/ws/Children.java new file mode 100644 index 0000000000..1068ab3d0c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/Children.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for children element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="children">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentOrFolderObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "children") +public class Children { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DocumentOrFolderObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java b/source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java new file mode 100644 index 0000000000..339fa54182 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java @@ -0,0 +1,115 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for choiceType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="choiceType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="index" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "choiceType", propOrder = { + "value" +}) +public class ChoiceType { + + @XmlValue + protected String value; + @XmlAttribute(required = true) + protected BigInteger index; + @XmlAttribute(required = true) + protected String key; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setIndex(BigInteger value) { + this.index = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java b/source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java new file mode 100644 index 0000000000..99ddc4643f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "ConcurrencyFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class ConcurrencyException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault concurrencyFault; + + public ConcurrencyException() { + super(); + } + + public ConcurrencyException(String message) { + super(message); + } + + public ConcurrencyException(String message, Throwable cause) { + super(message, cause); + } + + public ConcurrencyException(String message, org.alfresco.repo.cmis.ws.BasicFault concurrencyFault) { + super(message); + this.concurrencyFault = concurrencyFault; + } + + public ConcurrencyException(String message, org.alfresco.repo.cmis.ws.BasicFault concurrencyFault, Throwable cause) { + super(message, cause); + this.concurrencyFault = concurrencyFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.concurrencyFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java new file mode 100644 index 0000000000..3d1a5768be --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "ConstraintViolationFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class ConstraintViolationException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault constraintViolationFault; + + public ConstraintViolationException() { + super(); + } + + public ConstraintViolationException(String message) { + super(message); + } + + public ConstraintViolationException(String message, Throwable cause) { + super(message, cause); + } + + public ConstraintViolationException(String message, org.alfresco.repo.cmis.ws.BasicFault constraintViolationFault) { + super(message); + this.constraintViolationFault = constraintViolationFault; + } + + public ConstraintViolationException(String message, org.alfresco.repo.cmis.ws.BasicFault constraintViolationFault, Throwable cause) { + super(message, cause); + this.constraintViolationFault = constraintViolationFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.constraintViolationFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/ContentStream.java new file mode 100644 index 0000000000..7440502dcd --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ContentStream.java @@ -0,0 +1,148 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for contentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="contentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}name" minOccurs="0"/>
+ *           <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *           <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mimeType", + "name", + "uri", + "stream" +}) +@XmlRootElement(name = "contentStream") +public class ContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String mimeType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String name; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String uri; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected byte[] stream; + + /** + * Gets the value of the mimeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMimeType() { + return mimeType; + } + + /** + * Sets the value of the mimeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMimeType(String value) { + this.mimeType = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the uri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the value of the stream property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getStream() { + return stream; + } + + /** + * Sets the value of the stream property. + * + * @param value + * allowed object is + * byte[] + */ + public void setStream(byte[] value) { + this.stream = ((byte[]) value); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java new file mode 100644 index 0000000000..28e006f8a8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java @@ -0,0 +1,178 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createDocument element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createDocument">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="propertyCollection" type="{http://www.cmis.org/ns/1.0}documentObjectType"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
+ *           <element name="versioningState" type="{http://www.cmis.org/ns/1.0}versioningStateEnum" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "propertyCollection", + "folderId", + "contentStream", + "versioningState" +}) +@XmlRootElement(name = "createDocument") +public class CreateDocument { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentObjectType propertyCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected ContentStream contentStream; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected VersioningStateEnum versioningState; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the propertyCollection property. + * + * @return + * possible object is + * {@link DocumentObjectType } + * + */ + public DocumentObjectType getPropertyCollection() { + return propertyCollection; + } + + /** + * Sets the value of the propertyCollection property. + * + * @param value + * allowed object is + * {@link DocumentObjectType } + * + */ + public void setPropertyCollection(DocumentObjectType value) { + this.propertyCollection = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the contentStream property. + * + * @return + * possible object is + * {@link ContentStream } + * + */ + public ContentStream getContentStream() { + return contentStream; + } + + /** + * Sets the value of the contentStream property. + * + * @param value + * allowed object is + * {@link ContentStream } + * + */ + public void setContentStream(ContentStream value) { + this.contentStream = value; + } + + /** + * Gets the value of the versioningState property. + * + * @return + * possible object is + * {@link VersioningStateEnum } + * + */ + public VersioningStateEnum getVersioningState() { + return versioningState; + } + + /** + * Sets the value of the versioningState property. + * + * @param value + * allowed object is + * {@link VersioningStateEnum } + * + */ + public void setVersioningState(VersioningStateEnum value) { + this.versioningState = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java new file mode 100644 index 0000000000..565357c132 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createDocumentResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createDocumentResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "createDocumentResponse") +public class CreateDocumentResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java new file mode 100644 index 0000000000..3e437a2261 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="propertyCollection" type="{http://www.cmis.org/ns/1.0}folderObjectType"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "propertyCollection", + "folderId" +}) +@XmlRootElement(name = "createFolder") +public class CreateFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderObjectType propertyCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the propertyCollection property. + * + * @return + * possible object is + * {@link FolderObjectType } + * + */ + public FolderObjectType getPropertyCollection() { + return propertyCollection; + } + + /** + * Sets the value of the propertyCollection property. + * + * @param value + * allowed object is + * {@link FolderObjectType } + * + */ + public void setPropertyCollection(FolderObjectType value) { + this.propertyCollection = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java new file mode 100644 index 0000000000..f2df157015 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "createFolderResponse") +public class CreateFolderResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java new file mode 100644 index 0000000000..3c9e5213ab --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java @@ -0,0 +1,150 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createRelationship element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createRelationship">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="propertyCollection" type="{http://www.cmis.org/ns/1.0}relationshipObjectType"/>
+ *           <element name="sourceObjectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="targetObjectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "propertyCollection", + "sourceObjectId", + "targetObjectId" +}) +@XmlRootElement(name = "createRelationship") +public class CreateRelationship { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RelationshipObjectType propertyCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String sourceObjectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String targetObjectId; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the propertyCollection property. + * + * @return + * possible object is + * {@link RelationshipObjectType } + * + */ + public RelationshipObjectType getPropertyCollection() { + return propertyCollection; + } + + /** + * Sets the value of the propertyCollection property. + * + * @param value + * allowed object is + * {@link RelationshipObjectType } + * + */ + public void setPropertyCollection(RelationshipObjectType value) { + this.propertyCollection = value; + } + + /** + * Gets the value of the sourceObjectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceObjectId() { + return sourceObjectId; + } + + /** + * Sets the value of the sourceObjectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceObjectId(String value) { + this.sourceObjectId = value; + } + + /** + * Gets the value of the targetObjectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetObjectId() { + return targetObjectId; + } + + /** + * Sets the value of the targetObjectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetObjectId(String value) { + this.targetObjectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java new file mode 100644 index 0000000000..1d332f4c22 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createRelationshipResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createRelationshipResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "createRelationshipResponse") +public class CreateRelationshipResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java new file mode 100644 index 0000000000..6025fcabf0 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteAllVersions element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteAllVersions">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "deleteAllVersions") +public class DeleteAllVersions { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java new file mode 100644 index 0000000000..f5dc268c04 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteAllVersionsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteAllVersionsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "deleteAllVersionsResponse") +public class DeleteAllVersionsResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java new file mode 100644 index 0000000000..58dabdd5b8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteContentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteContentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "deleteContentStream") +public class DeleteContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java new file mode 100644 index 0000000000..92f2307253 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteContentStreamResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteContentStreamResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "deleteContentStreamResponse") +public class DeleteContentStreamResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java new file mode 100644 index 0000000000..14158d3d8e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteObject element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteObject">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "deleteObject") +public class DeleteObject { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java new file mode 100644 index 0000000000..597cfe5770 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteObjectResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteObjectResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "deleteObjectResponse") +public class DeleteObjectResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java new file mode 100644 index 0000000000..09edcf02b9 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteTree element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteTree">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="unfileMultiFiledDocuments" type="{http://www.cmis.org/ns/1.0}deleteWithMultiFilingEnum"/>
+ *           <element name="continueOnFailure" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "unfileMultiFiledDocuments", + "continueOnFailure" +}) +@XmlRootElement(name = "deleteTree") +public class DeleteTree { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DeleteWithMultiFilingEnum unfileMultiFiledDocuments; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean continueOnFailure; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the unfileMultiFiledDocuments property. + * + * @return + * possible object is + * {@link DeleteWithMultiFilingEnum } + * + */ + public DeleteWithMultiFilingEnum getUnfileMultiFiledDocuments() { + return unfileMultiFiledDocuments; + } + + /** + * Sets the value of the unfileMultiFiledDocuments property. + * + * @param value + * allowed object is + * {@link DeleteWithMultiFilingEnum } + * + */ + public void setUnfileMultiFiledDocuments(DeleteWithMultiFilingEnum value) { + this.unfileMultiFiledDocuments = value; + } + + /** + * Gets the value of the continueOnFailure property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isContinueOnFailure() { + return continueOnFailure; + } + + /** + * Sets the value of the continueOnFailure property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContinueOnFailure(Boolean value) { + this.continueOnFailure = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java new file mode 100644 index 0000000000..ffb61fe4ce --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java @@ -0,0 +1,139 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; + + +/** + *

Java class for deleteTreeResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteTreeResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="failedToDelete">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "failedToDelete" +}) +@XmlRootElement(name = "deleteTreeResponse") +public class DeleteTreeResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FailedToDelete failedToDelete; + + /** + * Gets the value of the failedToDelete property. + * + * @return + * possible object is + * {@link FailedToDelete } + * + */ + public FailedToDelete getFailedToDelete() { + return failedToDelete; + } + + /** + * Sets the value of the failedToDelete property. + * + * @param value + * allowed object is + * {@link FailedToDelete } + * + */ + public void setFailedToDelete(FailedToDelete value) { + this.failedToDelete = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "objectId" + }) + public static class FailedToDelete { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List objectId; + + /** + * Gets the value of the objectId property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the objectId property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getObjectId().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getObjectId() { + if (objectId == null) { + objectId = new ArrayList(); + } + return this.objectId; + } + + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java new file mode 100644 index 0000000000..4f34845ce9 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for deleteWithMultiFilingEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="deleteWithMultiFilingEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="unfile"/>
+ *     <enumeration value="deleteSingleFiledDocs"/>
+ *     <enumeration value="delete"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum DeleteWithMultiFilingEnum { + + @XmlEnumValue("delete") + DELETE("delete"), + @XmlEnumValue("deleteSingleFiledDocs") + DELETE_SINGLE_FILED_DOCS("deleteSingleFiledDocs"), + @XmlEnumValue("unfile") + UNFILE("unfile"); + private final String value; + + DeleteWithMultiFilingEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DeleteWithMultiFilingEnum fromValue(String v) { + for (DeleteWithMultiFilingEnum c: DeleteWithMultiFilingEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java new file mode 100644 index 0000000000..252bfdbc7c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentAndFolderCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="documentAndFolderCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentOrFolderObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "documentAndFolderCollection") +public class DocumentAndFolderCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DocumentOrFolderObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java new file mode 100644 index 0000000000..e446497a0a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="documentCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "documentCollection") +public class DocumentCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DocumentObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java new file mode 100644 index 0000000000..6f2f0d5a39 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java @@ -0,0 +1,92 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentFolderOrRelationshipObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="documentFolderOrRelationshipObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}documentOrFolderObjectType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/ns/1.0}sourceOID" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}targetOID" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "documentFolderOrRelationshipObjectType", propOrder = { + "sourceOID", + "targetOID" +}) +public class DocumentFolderOrRelationshipObjectType + extends DocumentOrFolderObjectType +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String sourceOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String targetOID; + + /** + * Gets the value of the sourceOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceOID() { + return sourceOID; + } + + /** + * Sets the value of the sourceOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceOID(String value) { + this.sourceOID = value; + } + + /** + * Gets the value of the targetOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetOID() { + return targetOID; + } + + /** + * Sets the value of the targetOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetOID(String value) { + this.targetOID = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java new file mode 100644 index 0000000000..676572776f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java @@ -0,0 +1,436 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="documentObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}objectTypeBase">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="isImmutable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isLatestVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isMajorVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isLatestMajorVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="versionSeriesIsCheckedOut" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="versionSeriesCheckedOutBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="versionSeriesCheckedOutOID" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         <element name="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="contentStreamLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="contentStreamMimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="contentStreamFilename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="contentStreamURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}property" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "documentObjectType", propOrder = { + "name", + "isImmutable", + "isLatestVersion", + "isMajorVersion", + "isLatestMajorVersion", + "versionSeriesIsCheckedOut", + "versionSeriesCheckedOutBy", + "versionSeriesCheckedOutOID", + "checkinComment", + "contentStreamLength", + "contentStreamMimeType", + "contentStreamFilename", + "contentStreamURI", + "property" +}) +public class DocumentObjectType + extends ObjectTypeBase +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String name; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isImmutable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isLatestVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isMajorVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isLatestMajorVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean versionSeriesIsCheckedOut; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String versionSeriesCheckedOutBy; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String versionSeriesCheckedOutOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String checkinComment; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger contentStreamLength; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String contentStreamMimeType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String contentStreamFilename; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String contentStreamURI; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the isImmutable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsImmutable() { + return isImmutable; + } + + /** + * Sets the value of the isImmutable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsImmutable(Boolean value) { + this.isImmutable = value; + } + + /** + * Gets the value of the isLatestVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsLatestVersion() { + return isLatestVersion; + } + + /** + * Sets the value of the isLatestVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsLatestVersion(Boolean value) { + this.isLatestVersion = value; + } + + /** + * Gets the value of the isMajorVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsMajorVersion() { + return isMajorVersion; + } + + /** + * Sets the value of the isMajorVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsMajorVersion(Boolean value) { + this.isMajorVersion = value; + } + + /** + * Gets the value of the isLatestMajorVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsLatestMajorVersion() { + return isLatestMajorVersion; + } + + /** + * Sets the value of the isLatestMajorVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsLatestMajorVersion(Boolean value) { + this.isLatestMajorVersion = value; + } + + /** + * Gets the value of the versionSeriesIsCheckedOut property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isVersionSeriesIsCheckedOut() { + return versionSeriesIsCheckedOut; + } + + /** + * Sets the value of the versionSeriesIsCheckedOut property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVersionSeriesIsCheckedOut(Boolean value) { + this.versionSeriesIsCheckedOut = value; + } + + /** + * Gets the value of the versionSeriesCheckedOutBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionSeriesCheckedOutBy() { + return versionSeriesCheckedOutBy; + } + + /** + * Sets the value of the versionSeriesCheckedOutBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionSeriesCheckedOutBy(String value) { + this.versionSeriesCheckedOutBy = value; + } + + /** + * Gets the value of the versionSeriesCheckedOutOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionSeriesCheckedOutOID() { + return versionSeriesCheckedOutOID; + } + + /** + * Sets the value of the versionSeriesCheckedOutOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionSeriesCheckedOutOID(String value) { + this.versionSeriesCheckedOutOID = value; + } + + /** + * Gets the value of the checkinComment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCheckinComment() { + return checkinComment; + } + + /** + * Sets the value of the checkinComment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCheckinComment(String value) { + this.checkinComment = value; + } + + /** + * Gets the value of the contentStreamLength property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getContentStreamLength() { + return contentStreamLength; + } + + /** + * Sets the value of the contentStreamLength property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setContentStreamLength(BigInteger value) { + this.contentStreamLength = value; + } + + /** + * Gets the value of the contentStreamMimeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentStreamMimeType() { + return contentStreamMimeType; + } + + /** + * Sets the value of the contentStreamMimeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentStreamMimeType(String value) { + this.contentStreamMimeType = value; + } + + /** + * Gets the value of the contentStreamFilename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentStreamFilename() { + return contentStreamFilename; + } + + /** + * Sets the value of the contentStreamFilename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentStreamFilename(String value) { + this.contentStreamFilename = value; + } + + /** + * Gets the value of the contentStreamURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentStreamURI() { + return contentStreamURI; + } + + /** + * Sets the value of the contentStreamURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentStreamURI(String value) { + this.contentStreamURI = value; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Property } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java new file mode 100644 index 0000000000..88ca50b437 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java @@ -0,0 +1,92 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentOrFolderObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="documentOrFolderObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}documentObjectType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/ns/1.0}parent" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}children" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "documentOrFolderObjectType", propOrder = { + "parent", + "children" +}) +public class DocumentOrFolderObjectType + extends DocumentObjectType +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String parent; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Children children; + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParent() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParent(String value) { + this.parent = value; + } + + /** + * Gets the value of the children property. + * + * @return + * possible object is + * {@link Children } + * + */ + public Children getChildren() { + return children; + } + + /** + * Sets the value of the children property. + * + * @param value + * allowed object is + * {@link Children } + * + */ + public void setChildren(Children value) { + this.children = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java new file mode 100644 index 0000000000..d1a25bfd08 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "FilterNotValidFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class FilterNotValidException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault filterNotValidFault; + + public FilterNotValidException() { + super(); + } + + public FilterNotValidException(String message) { + super(message); + } + + public FilterNotValidException(String message, Throwable cause) { + super(message, cause); + } + + public FilterNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault filterNotValidFault) { + super(message); + this.filterNotValidFault = filterNotValidFault; + } + + public FilterNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault filterNotValidFault, Throwable cause) { + super(message, cause); + this.filterNotValidFault = filterNotValidFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.filterNotValidFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java b/source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java new file mode 100644 index 0000000000..855a689ad3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for folderCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="folderCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}folderObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "folderCollection") +public class FolderCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FolderObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java new file mode 100644 index 0000000000..5fdcd415bb --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "FolderNotValidFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class FolderNotValidException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault folderNotValidFault; + + public FolderNotValidException() { + super(); + } + + public FolderNotValidException(String message) { + super(message); + } + + public FolderNotValidException(String message, Throwable cause) { + super(message, cause); + } + + public FolderNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault folderNotValidFault) { + super(message); + this.folderNotValidFault = folderNotValidFault; + } + + public FolderNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault folderNotValidFault, Throwable cause) { + super(message, cause); + this.folderNotValidFault = folderNotValidFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.folderNotValidFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java new file mode 100644 index 0000000000..0d80527810 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java @@ -0,0 +1,155 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for folderObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="folderObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}objectTypeBase">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}parent" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}children" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}property" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "folderObjectType", propOrder = { + "name", + "parent", + "children", + "property" +}) +public class FolderObjectType + extends ObjectTypeBase +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String name; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String parent; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Children children; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParent() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParent(String value) { + this.parent = value; + } + + /** + * Gets the value of the children property. + * + * @return + * possible object is + * {@link Children } + * + */ + public Children getChildren() { + return children; + } + + /** + * Sets the value of the children property. + * + * @param value + * allowed object is + * {@link Children } + * + */ + public void setChildren(Children value) { + this.children = value; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Property } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java new file mode 100644 index 0000000000..6048643cce --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getAllVersions element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllVersions">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "filter" +}) +@XmlRootElement(name = "getAllVersions") +public class GetAllVersions { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java new file mode 100644 index 0000000000..06a2a84145 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getAllVersionsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllVersionsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentCollection" +}) +@XmlRootElement(name = "getAllVersionsResponse") +public class GetAllVersionsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentCollection documentCollection; + + /** + * Gets the value of the documentCollection property. + * + * @return + * possible object is + * {@link DocumentCollection } + * + */ + public DocumentCollection getDocumentCollection() { + return documentCollection; + } + + /** + * Sets the value of the documentCollection property. + * + * @param value + * allowed object is + * {@link DocumentCollection } + * + */ + public void setDocumentCollection(DocumentCollection value) { + this.documentCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java new file mode 100644 index 0000000000..e1480768b3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getAllowableActions element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllowableActions">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="asUser" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "asUser" +}) +@XmlRootElement(name = "getAllowableActions") +public class GetAllowableActions { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String asUser; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the asUser property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAsUser() { + return asUser; + } + + /** + * Sets the value of the asUser property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAsUser(String value) { + this.asUser = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java new file mode 100644 index 0000000000..78f96871b2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java @@ -0,0 +1,139 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection; + + +/** + *

Java class for getAllowableActionsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllowableActionsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="allowableActionCollection">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="action" type="{http://www.cmis.org/ns/1.0}allowableActionsEnum" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "allowableActionCollection" +}) +@XmlRootElement(name = "getAllowableActionsResponse") +public class GetAllowableActionsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected AllowableActionCollection allowableActionCollection; + + /** + * Gets the value of the allowableActionCollection property. + * + * @return + * possible object is + * {@link AllowableActionCollection } + * + */ + public AllowableActionCollection getAllowableActionCollection() { + return allowableActionCollection; + } + + /** + * Sets the value of the allowableActionCollection property. + * + * @param value + * allowed object is + * {@link AllowableActionCollection } + * + */ + public void setAllowableActionCollection(AllowableActionCollection value) { + this.allowableActionCollection = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="action" type="{http://www.cmis.org/ns/1.0}allowableActionsEnum" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "action" + }) + public static class AllowableActionCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List action; + + /** + * Gets the value of the action property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the action property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAction().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AllowableActionsEnum } + * + * + */ + public List getAction() { + if (action == null) { + action = new ArrayList(); + } + return this.action; + } + + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java new file mode 100644 index 0000000000..7c5607e693 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java @@ -0,0 +1,151 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getCheckedoutDocs element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getCheckedoutDocs">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *           <element name="folderID" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "filter", + "maxItems", + "skipCount", + "folderID" +}) +@XmlRootElement(name = "getCheckedoutDocs") +public class GetCheckedoutDocs { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String folderID; + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + + /** + * Gets the value of the folderID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderID() { + return folderID; + } + + /** + * Sets the value of the folderID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderID(String value) { + this.folderID = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java new file mode 100644 index 0000000000..f41a570226 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getCheckedoutDocsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getCheckedoutDocsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getCheckedoutDocsResponse") +public class GetCheckedoutDocsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentCollection documentCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentCollection property. + * + * @return + * possible object is + * {@link DocumentCollection } + * + */ + public DocumentCollection getDocumentCollection() { + return documentCollection; + } + + /** + * Sets the value of the documentCollection property. + * + * @param value + * allowed object is + * {@link DocumentCollection } + * + */ + public void setDocumentCollection(DocumentCollection value) { + this.documentCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java new file mode 100644 index 0000000000..3e9dd73aff --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java @@ -0,0 +1,179 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getChildren element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getChildren">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}typesOfObjectsEnum"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "type", + "filter", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "getChildren") +public class GetChildren { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected TypesOfObjectsEnum type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link TypesOfObjectsEnum } + * + */ + public TypesOfObjectsEnum getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link TypesOfObjectsEnum } + * + */ + public void setType(TypesOfObjectsEnum value) { + this.type = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java new file mode 100644 index 0000000000..f6ef9690c4 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getChildrenResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getChildrenResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentAndFolderCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentAndFolderCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getChildrenResponse") +public class GetChildrenResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentAndFolderCollection documentAndFolderCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentAndFolderCollection property. + * + * @return + * possible object is + * {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection getDocumentAndFolderCollection() { + return documentAndFolderCollection; + } + + /** + * Sets the value of the documentAndFolderCollection property. + * + * @param value + * allowed object is + * {@link DocumentAndFolderCollection } + * + */ + public void setDocumentAndFolderCollection(DocumentAndFolderCollection value) { + this.documentAndFolderCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java new file mode 100644 index 0000000000..d3a059fd94 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java @@ -0,0 +1,123 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getContentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getContentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="offset" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *           <element name="length" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "offset", + "length" +}) +@XmlRootElement(name = "getContentStream") +public class GetContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger offset; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger length; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the offset property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getOffset() { + return offset; + } + + /** + * Sets the value of the offset property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setOffset(BigInteger value) { + this.offset = value; + } + + /** + * Gets the value of the length property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLength() { + return length; + } + + /** + * Sets the value of the length property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLength(BigInteger value) { + this.length = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java new file mode 100644 index 0000000000..f7c2addfda --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java @@ -0,0 +1,64 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getContentStreamResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getContentStreamResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "stream" +}) +@XmlRootElement(name = "getContentStreamResponse") +public class GetContentStreamResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected byte[] stream; + + /** + * Gets the value of the stream property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getStream() { + return stream; + } + + /** + * Sets the value of the stream property. + * + * @param value + * allowed object is + * byte[] + */ + public void setStream(byte[] value) { + this.stream = ((byte[]) value); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java new file mode 100644 index 0000000000..210a0dc99a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java @@ -0,0 +1,150 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDescendants element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDescendants">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}typesOfObjectsEnum"/>
+ *           <element name="depth" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "type", + "depth", + "filter" +}) +@XmlRootElement(name = "getDescendants") +public class GetDescendants { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected TypesOfObjectsEnum type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Object depth; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link TypesOfObjectsEnum } + * + */ + public TypesOfObjectsEnum getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link TypesOfObjectsEnum } + * + */ + public void setType(TypesOfObjectsEnum value) { + this.type = value; + } + + /** + * Gets the value of the depth property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getDepth() { + return depth; + } + + /** + * Sets the value of the depth property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setDepth(Object value) { + this.depth = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java new file mode 100644 index 0000000000..537c7a2b2a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDescendantsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDescendantsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentAndFolderCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentAndFolderCollection" +}) +@XmlRootElement(name = "getDescendantsResponse") +public class GetDescendantsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentAndFolderCollection documentAndFolderCollection; + + /** + * Gets the value of the documentAndFolderCollection property. + * + * @return + * possible object is + * {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection getDocumentAndFolderCollection() { + return documentAndFolderCollection; + } + + /** + * Sets the value of the documentAndFolderCollection property. + * + * @param value + * allowed object is + * {@link DocumentAndFolderCollection } + * + */ + public void setDocumentAndFolderCollection(DocumentAndFolderCollection value) { + this.documentAndFolderCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java new file mode 100644 index 0000000000..95d8608951 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDocumentParents element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDocumentParents">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "filter" +}) +@XmlRootElement(name = "getDocumentParents") +public class GetDocumentParents { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java new file mode 100644 index 0000000000..c5829f7c6a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDocumentParentsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDocumentParentsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}folderCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderCollection" +}) +@XmlRootElement(name = "getDocumentParentsResponse") +public class GetDocumentParentsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderCollection folderCollection; + + /** + * Gets the value of the folderCollection property. + * + * @return + * possible object is + * {@link FolderCollection } + * + */ + public FolderCollection getFolderCollection() { + return folderCollection; + } + + /** + * Sets the value of the folderCollection property. + * + * @param value + * allowed object is + * {@link FolderCollection } + * + */ + public void setFolderCollection(FolderCollection value) { + this.folderCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java new file mode 100644 index 0000000000..af53b08fe4 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getFolderParent element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getFolderParent">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element name="returnToRoot" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "filter", + "returnToRoot" +}) +@XmlRootElement(name = "getFolderParent") +public class GetFolderParent { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean returnToRoot; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the returnToRoot property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isReturnToRoot() { + return returnToRoot; + } + + /** + * Sets the value of the returnToRoot property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReturnToRoot(Boolean value) { + this.returnToRoot = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java new file mode 100644 index 0000000000..992ccd263d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getFolderParentResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getFolderParentResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}folderCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderCollection" +}) +@XmlRootElement(name = "getFolderParentResponse") +public class GetFolderParentResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderCollection folderCollection; + + /** + * Gets the value of the folderCollection property. + * + * @return + * possible object is + * {@link FolderCollection } + * + */ + public FolderCollection getFolderCollection() { + return folderCollection; + } + + /** + * Sets the value of the folderCollection property. + * + * @param value + * allowed object is + * {@link FolderCollection } + * + */ + public void setFolderCollection(FolderCollection value) { + this.folderCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java new file mode 100644 index 0000000000..8d47a79a2c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getProperties element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getProperties">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="returnVersion" type="{http://www.cmis.org/ns/1.0}versionEnum" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "returnVersion", + "filter" +}) +@XmlRootElement(name = "getProperties") +public class GetProperties { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected VersionEnum returnVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the returnVersion property. + * + * @return + * possible object is + * {@link VersionEnum } + * + */ + public VersionEnum getReturnVersion() { + return returnVersion; + } + + /** + * Sets the value of the returnVersion property. + * + * @param value + * allowed object is + * {@link VersionEnum } + * + */ + public void setReturnVersion(VersionEnum value) { + this.returnVersion = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java new file mode 100644 index 0000000000..df85015391 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getPropertiesResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getPropertiesResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentFolderOrRelationshipObjectType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "getPropertiesResponse") +public class GetPropertiesResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentFolderOrRelationshipObjectType object; + + /** + * Gets the value of the object property. + * + * @return + * possible object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public DocumentFolderOrRelationshipObjectType getObject() { + return object; + } + + /** + * Sets the value of the object property. + * + * @param value + * allowed object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public void setObject(DocumentFolderOrRelationshipObjectType value) { + this.object = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java new file mode 100644 index 0000000000..d2e87fd3d8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java @@ -0,0 +1,235 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRelationships element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRelationships">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="direction" type="{http://www.cmis.org/ns/1.0}relationshipDirectionEnum"/>
+ *           <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *           <element name="includeSubRelationshipTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "direction", + "typeId", + "includeSubRelationshipTypes", + "filter", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "getRelationships") +public class GetRelationships { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RelationshipDirectionEnum direction; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean includeSubRelationshipTypes; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the direction property. + * + * @return + * possible object is + * {@link RelationshipDirectionEnum } + * + */ + public RelationshipDirectionEnum getDirection() { + return direction; + } + + /** + * Sets the value of the direction property. + * + * @param value + * allowed object is + * {@link RelationshipDirectionEnum } + * + */ + public void setDirection(RelationshipDirectionEnum value) { + this.direction = value; + } + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the includeSubRelationshipTypes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIncludeSubRelationshipTypes() { + return includeSubRelationshipTypes; + } + + /** + * Sets the value of the includeSubRelationshipTypes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeSubRelationshipTypes(Boolean value) { + this.includeSubRelationshipTypes = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java new file mode 100644 index 0000000000..2a7120d351 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRelationshipsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRelationshipsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}relationshipCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "relationshipCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getRelationshipsResponse") +public class GetRelationshipsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RelationshipCollection relationshipCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the relationshipCollection property. + * + * @return + * possible object is + * {@link RelationshipCollection } + * + */ + public RelationshipCollection getRelationshipCollection() { + return relationshipCollection; + } + + /** + * Sets the value of the relationshipCollection property. + * + * @param value + * allowed object is + * {@link RelationshipCollection } + * + */ + public void setRelationshipCollection(RelationshipCollection value) { + this.relationshipCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java new file mode 100644 index 0000000000..d32c3fe406 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRepositoryInfo element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRepositoryInfo">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "getRepositoryInfo") +public class GetRepositoryInfo { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java new file mode 100644 index 0000000000..2b76f761c2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRepositoryInfoResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRepositoryInfoResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="repositoryInfo" type="{http://www.cmis.org/ns/1.0}repositoryInfoType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "repositoryInfo" +}) +@XmlRootElement(name = "getRepositoryInfoResponse") +public class GetRepositoryInfoResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RepositoryInfoType repositoryInfo; + + /** + * Gets the value of the repositoryInfo property. + * + * @return + * possible object is + * {@link RepositoryInfoType } + * + */ + public RepositoryInfoType getRepositoryInfo() { + return repositoryInfo; + } + + /** + * Sets the value of the repositoryInfo property. + * + * @param value + * allowed object is + * {@link RepositoryInfoType } + * + */ + public void setRepositoryInfo(RepositoryInfoType value) { + this.repositoryInfo = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java new file mode 100644 index 0000000000..5ab9b0ba82 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRootFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRootFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "filter" +}) +@XmlRootElement(name = "getRootFolder") +public class GetRootFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java new file mode 100644 index 0000000000..563ceea6a7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRootFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRootFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="rootFolder" type="{http://www.cmis.org/ns/1.0}folderObjectType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "rootFolder" +}) +@XmlRootElement(name = "getRootFolderResponse") +public class GetRootFolderResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderObjectType rootFolder; + + /** + * Gets the value of the rootFolder property. + * + * @return + * possible object is + * {@link FolderObjectType } + * + */ + public FolderObjectType getRootFolder() { + return rootFolder; + } + + /** + * Sets the value of the rootFolder property. + * + * @param value + * allowed object is + * {@link FolderObjectType } + * + */ + public void setRootFolder(FolderObjectType value) { + this.rootFolder = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java new file mode 100644 index 0000000000..38d01fb818 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getTypeDefinition element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypeDefinition">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="includeInheritedProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "includeInheritedProperties" +}) +@XmlRootElement(name = "getTypeDefinition") +public class GetTypeDefinition { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean includeInheritedProperties; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the includeInheritedProperties property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIncludeInheritedProperties() { + return includeInheritedProperties; + } + + /** + * Sets the value of the includeInheritedProperties property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeInheritedProperties(Boolean value) { + this.includeInheritedProperties = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java new file mode 100644 index 0000000000..34f85a0749 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getTypeDefinitionResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypeDefinitionResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType"/>
+ *           <element name="canCreateInstances" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "type", + "canCreateInstances" +}) +@XmlRootElement(name = "getTypeDefinitionResponse") +public class GetTypeDefinitionResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected ObjectTypeDefinitionType type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean canCreateInstances; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link ObjectTypeDefinitionType } + * + */ + public ObjectTypeDefinitionType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link ObjectTypeDefinitionType } + * + */ + public void setType(ObjectTypeDefinitionType value) { + this.type = value; + } + + /** + * Gets the value of the canCreateInstances property. + * + */ + public boolean isCanCreateInstances() { + return canCreateInstances; + } + + /** + * Sets the value of the canCreateInstances property. + * + */ + public void setCanCreateInstances(boolean value) { + this.canCreateInstances = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java new file mode 100644 index 0000000000..c3490705f6 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java @@ -0,0 +1,151 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getTypes element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypes">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}getTypesEnum"/>
+ *           <element name="returnPropertyDefinitions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "type", + "returnPropertyDefinitions", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "getTypes") +public class GetTypes { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected GetTypesEnum type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean returnPropertyDefinitions; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link GetTypesEnum } + * + */ + public GetTypesEnum getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link GetTypesEnum } + * + */ + public void setType(GetTypesEnum value) { + this.type = value; + } + + /** + * Gets the value of the returnPropertyDefinitions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isReturnPropertyDefinitions() { + return returnPropertyDefinitions; + } + + /** + * Sets the value of the returnPropertyDefinitions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReturnPropertyDefinitions(Boolean value) { + this.returnPropertyDefinitions = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java new file mode 100644 index 0000000000..ccab3f489a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java @@ -0,0 +1,55 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for getTypesEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="getTypesEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Document"/>
+ *     <enumeration value="Folder"/>
+ *     <enumeration value="Relationship"/>
+ *     <enumeration value="All"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum GetTypesEnum { + + @XmlEnumValue("All") + ALL("All"), + @XmlEnumValue("Document") + DOCUMENT("Document"), + @XmlEnumValue("Folder") + FOLDER("Folder"), + @XmlEnumValue("Relationship") + RELATIONSHIP("Relationship"); + private final String value; + + GetTypesEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static GetTypesEnum fromValue(String v) { + for (GetTypesEnum c: GetTypesEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java new file mode 100644 index 0000000000..fb774a3e64 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java @@ -0,0 +1,159 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.alfresco.repo.cmis.ws.GetTypesResponse.Types; + + +/** + *

Java class for getTypesResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypesResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="types">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "types", + "hasMoreItems" +}) +@XmlRootElement(name = "getTypesResponse") +public class GetTypesResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected Types types; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the types property. + * + * @return + * possible object is + * {@link Types } + * + */ + public Types getTypes() { + return types; + } + + /** + * Sets the value of the types property. + * + * @param value + * allowed object is + * {@link Types } + * + */ + public void setTypes(Types value) { + this.types = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "type" + }) + public static class Types { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List type; + + /** + * Gets the value of the type property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the type property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getType().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ObjectTypeDefinitionType } + * + * + */ + public List getType() { + if (type == null) { + type = new ArrayList(); + } + return this.type; + } + + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java new file mode 100644 index 0000000000..109b63afd8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java @@ -0,0 +1,123 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getUnfiledDocs element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getUnfiledDocs">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element name="maxDocuments" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *           <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "filter", + "maxDocuments", + "skipCount" +}) +@XmlRootElement(name = "getUnfiledDocs") +public class GetUnfiledDocs { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxDocuments; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxDocuments property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxDocuments() { + return maxDocuments; + } + + /** + * Sets the value of the maxDocuments property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxDocuments(BigInteger value) { + this.maxDocuments = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java new file mode 100644 index 0000000000..762bb26834 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getUnfiledDocsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getUnfiledDocsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getUnfiledDocsResponse") +public class GetUnfiledDocsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentCollection documentCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentCollection property. + * + * @return + * possible object is + * {@link DocumentCollection } + * + */ + public DocumentCollection getDocumentCollection() { + return documentCollection; + } + + /** + * Sets the value of the documentCollection property. + * + * @param value + * allowed object is + * {@link DocumentCollection } + * + */ + public void setDocumentCollection(DocumentCollection value) { + this.documentCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java new file mode 100644 index 0000000000..6e0141ebed --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "InvalidArgumentFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class InvalidArgumentException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault invalidArgumentFault; + + public InvalidArgumentException() { + super(); + } + + public InvalidArgumentException(String message) { + super(message); + } + + public InvalidArgumentException(String message, Throwable cause) { + super(message, cause); + } + + public InvalidArgumentException(String message, org.alfresco.repo.cmis.ws.BasicFault invalidArgumentFault) { + super(message); + this.invalidArgumentFault = invalidArgumentFault; + } + + public InvalidArgumentException(String message, org.alfresco.repo.cmis.ws.BasicFault invalidArgumentFault, Throwable cause) { + super(message, cause); + this.invalidArgumentFault = invalidArgumentFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.invalidArgumentFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java new file mode 100644 index 0000000000..e68554f3ae --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for moveObject element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="moveObject">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="sourceFolderId" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "folderId", + "sourceFolderId" +}) +@XmlRootElement(name = "moveObject") +public class MoveObject { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String sourceFolderId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the sourceFolderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceFolderId() { + return sourceFolderId; + } + + /** + * Sets the value of the sourceFolderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceFolderId(String value) { + this.sourceFolderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java new file mode 100644 index 0000000000..76da81fd98 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for moveObjectResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="moveObjectResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "moveObjectResponse") +public class MoveObjectResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java new file mode 100644 index 0000000000..bda5c0f409 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java @@ -0,0 +1,58 @@ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import org.alfresco.repo.cmis.ws.NavigationServicePort; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebServiceClient(name = "NavigationService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/NavigationService.wsdl") +public class NavigationService extends Service { + + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "NavigationService"); + public final static QName NavigationServicePort = new QName("http://www.cmis.org/ns/1.0", "NavigationServicePort"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/NavigationService.wsdl"); + } catch (MalformedURLException e) { + System.err.println("Can not initialize the default wsdl from file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/NavigationService.wsdl"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public NavigationService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public NavigationService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public NavigationService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns NavigationServicePort + */ + @WebEndpoint(name = "NavigationServicePort") + public NavigationServicePort getNavigationServicePort() { + return super.getPort(NavigationServicePort, NavigationServicePort.class); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java new file mode 100644 index 0000000000..aa1155e844 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java @@ -0,0 +1,70 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "NavigationServicePort") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + +public interface NavigationServicePort { + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getDescendantsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetDescendantsResponse getDescendants( + @WebParam(partName = "parameters", name = "getDescendants", targetNamespace = "http://www.cmis.org/ns/1.0") + GetDescendants parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getCheckedoutDocsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse getCheckedoutDocs( + @WebParam(partName = "parameters", name = "getCheckedoutDocs", targetNamespace = "http://www.cmis.org/ns/1.0") + GetCheckedoutDocs parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getDocumentParentsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetDocumentParentsResponse getDocumentParents( + @WebParam(partName = "parameters", name = "getDocumentParents", targetNamespace = "http://www.cmis.org/ns/1.0") + GetDocumentParents parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getChildrenResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetChildrenResponse getChildren( + @WebParam(partName = "parameters", name = "getChildren", targetNamespace = "http://www.cmis.org/ns/1.0") + GetChildren parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getFolderParentResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetFolderParentResponse getFolderParent( + @WebParam(partName = "parameters", name = "getFolderParent", targetNamespace = "http://www.cmis.org/ns/1.0") + GetFolderParent parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getUnfiledDocsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetUnfiledDocsResponse getUnfiledDocs( + @WebParam(partName = "parameters", name = "getUnfiledDocs", targetNamespace = "http://www.cmis.org/ns/1.0") + GetUnfiledDocs parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java new file mode 100644 index 0000000000..bb42996f30 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "NotInFolderFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class NotInFolderException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault notInFolderFault; + + public NotInFolderException() { + super(); + } + + public NotInFolderException(String message) { + super(message); + } + + public NotInFolderException(String message, Throwable cause) { + super(message, cause); + } + + public NotInFolderException(String message, org.alfresco.repo.cmis.ws.BasicFault notInFolderFault) { + super(message); + this.notInFolderFault = notInFolderFault; + } + + public NotInFolderException(String message, org.alfresco.repo.cmis.ws.BasicFault notInFolderFault, Throwable cause) { + super(message, cause); + this.notInFolderFault = notInFolderFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.notInFolderFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java new file mode 100644 index 0000000000..9c08f971eb --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java @@ -0,0 +1,933 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; +import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; +import org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection; +import org.alfresco.repo.cmis.ws.GetTypesResponse.Types; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.alfresco.repo.cmis.ws package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _ObjectNotFoundFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "ObjectNotFoundFault"); + private final static QName _OffsetFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "OffsetFault"); + private final static QName _StorageFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "StorageFault"); + private final static QName _RuntimeFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "RuntimeFault"); + private final static QName _StreamNotSupportedFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "StreamNotSupportedFault"); + private final static QName _HasMoreItems_QNAME = new QName("http://www.cmis.org/ns/1.0", "hasMoreItems"); + private final static QName _FilterNotValidFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "FilterNotValidFault"); + private final static QName _SkipCount_QNAME = new QName("http://www.cmis.org/ns/1.0", "skipCount"); + private final static QName _Parent_QNAME = new QName("http://www.cmis.org/ns/1.0", "parent"); + private final static QName _InvalidArgumentFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "InvalidArgumentFault"); + private final static QName _Name_QNAME = new QName("http://www.cmis.org/ns/1.0", "name"); + private final static QName _OperationNotSupportedFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "OperationNotSupportedFault"); + private final static QName _SourceOID_QNAME = new QName("http://www.cmis.org/ns/1.0", "sourceOID"); + private final static QName _Filter_QNAME = new QName("http://www.cmis.org/ns/1.0", "filter"); + private final static QName _TypeNotFoundFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "TypeNotFoundFault"); + private final static QName _PermissionDeniedFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "PermissionDeniedFault"); + private final static QName _ConcurrencyFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "ConcurrencyFault"); + private final static QName _NotInFolderFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "NotInFolderFault"); + private final static QName _FolderNotValidFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "FolderNotValidFault"); + private final static QName _AlreadyExistsFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "AlreadyExistsFault"); + private final static QName _ConstraintViolationFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "ConstraintViolationFault"); + private final static QName _MaxItems_QNAME = new QName("http://www.cmis.org/ns/1.0", "maxItems"); + private final static QName _TargetOID_QNAME = new QName("http://www.cmis.org/ns/1.0", "targetOID"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.alfresco.repo.cmis.ws + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DeleteObject } + * + */ + public DeleteObject createDeleteObject() { + return new DeleteObject(); + } + + /** + * Create an instance of {@link GetRelationships } + * + */ + public GetRelationships createGetRelationships() { + return new GetRelationships(); + } + + /** + * Create an instance of {@link DocumentFolderOrRelationshipObjectType } + * + */ + public DocumentFolderOrRelationshipObjectType createDocumentFolderOrRelationshipObjectType() { + return new DocumentFolderOrRelationshipObjectType(); + } + + /** + * Create an instance of {@link CheckInResponse } + * + */ + public CheckInResponse createCheckInResponse() { + return new CheckInResponse(); + } + + /** + * Create an instance of {@link GetDescendants } + * + */ + public GetDescendants createGetDescendants() { + return new GetDescendants(); + } + + /** + * Create an instance of {@link QueryResponse } + * + */ + public QueryResponse createQueryResponse() { + return new QueryResponse(); + } + + /** + * Create an instance of {@link GetChildrenResponse } + * + */ + public GetChildrenResponse createGetChildrenResponse() { + return new GetChildrenResponse(); + } + + /** + * Create an instance of {@link BasicFault } + * + */ + public BasicFault createBasicFault() { + return new BasicFault(); + } + + /** + * Create an instance of {@link UpdatePropertiesResponse } + * + */ + public UpdatePropertiesResponse createUpdatePropertiesResponse() { + return new UpdatePropertiesResponse(); + } + + /** + * Create an instance of {@link GetFolderParentResponse } + * + */ + public GetFolderParentResponse createGetFolderParentResponse() { + return new GetFolderParentResponse(); + } + + /** + * Create an instance of {@link ObjectTypeDefinitionType } + * + */ + public ObjectTypeDefinitionType createObjectTypeDefinitionType() { + return new ObjectTypeDefinitionType(); + } + + /** + * Create an instance of {@link DeleteAllVersions } + * + */ + public DeleteAllVersions createDeleteAllVersions() { + return new DeleteAllVersions(); + } + + /** + * Create an instance of {@link RepositoryInfoType } + * + */ + public RepositoryInfoType createRepositoryInfoType() { + return new RepositoryInfoType(); + } + + /** + * Create an instance of {@link GetCheckedoutDocs } + * + */ + public GetCheckedoutDocs createGetCheckedoutDocs() { + return new GetCheckedoutDocs(); + } + + /** + * Create an instance of {@link RemoveDocumentFromFolderResponse } + * + */ + public RemoveDocumentFromFolderResponse createRemoveDocumentFromFolderResponse() { + return new RemoveDocumentFromFolderResponse(); + } + + /** + * Create an instance of {@link DeleteTree } + * + */ + public DeleteTree createDeleteTree() { + return new DeleteTree(); + } + + /** + * Create an instance of {@link ContentStream } + * + */ + public ContentStream createContentStream() { + return new ContentStream(); + } + + /** + * Create an instance of {@link GetRepositoryInfoResponse } + * + */ + public GetRepositoryInfoResponse createGetRepositoryInfoResponse() { + return new GetRepositoryInfoResponse(); + } + + /** + * Create an instance of {@link GetAllowableActionsResponse } + * + */ + public GetAllowableActionsResponse createGetAllowableActionsResponse() { + return new GetAllowableActionsResponse(); + } + + /** + * Create an instance of {@link RemoveDocumentFromFolder } + * + */ + public RemoveDocumentFromFolder createRemoveDocumentFromFolder() { + return new RemoveDocumentFromFolder(); + } + + /** + * Create an instance of {@link GetAllVersions } + * + */ + public GetAllVersions createGetAllVersions() { + return new GetAllVersions(); + } + + /** + * Create an instance of {@link AddDocumentToFolderResponse } + * + */ + public AddDocumentToFolderResponse createAddDocumentToFolderResponse() { + return new AddDocumentToFolderResponse(); + } + + /** + * Create an instance of {@link SetContentStream } + * + */ + public SetContentStream createSetContentStream() { + return new SetContentStream(); + } + + /** + * Create an instance of {@link GetDocumentParents } + * + */ + public GetDocumentParents createGetDocumentParents() { + return new GetDocumentParents(); + } + + /** + * Create an instance of {@link CancelCheckOutResponse } + * + */ + public CancelCheckOutResponse createCancelCheckOutResponse() { + return new CancelCheckOutResponse(); + } + + /** + * Create an instance of {@link AddDocumentToFolder } + * + */ + public AddDocumentToFolder createAddDocumentToFolder() { + return new AddDocumentToFolder(); + } + + /** + * Create an instance of {@link GetChildren } + * + */ + public GetChildren createGetChildren() { + return new GetChildren(); + } + + /** + * Create an instance of {@link GetRootFolderResponse } + * + */ + public GetRootFolderResponse createGetRootFolderResponse() { + return new GetRootFolderResponse(); + } + + /** + * Create an instance of {@link GetContentStream } + * + */ + public GetContentStream createGetContentStream() { + return new GetContentStream(); + } + + /** + * Create an instance of {@link GetTypesResponse } + * + */ + public GetTypesResponse createGetTypesResponse() { + return new GetTypesResponse(); + } + + /** + * Create an instance of {@link GetUnfiledDocs } + * + */ + public GetUnfiledDocs createGetUnfiledDocs() { + return new GetUnfiledDocs(); + } + + /** + * Create an instance of {@link MoveObject } + * + */ + public MoveObject createMoveObject() { + return new MoveObject(); + } + + /** + * Create an instance of {@link GetProperties } + * + */ + public GetProperties createGetProperties() { + return new GetProperties(); + } + + /** + * Create an instance of {@link DeleteTreeResponse } + * + */ + public DeleteTreeResponse createDeleteTreeResponse() { + return new DeleteTreeResponse(); + } + + /** + * Create an instance of {@link GetUnfiledDocsResponse } + * + */ + public GetUnfiledDocsResponse createGetUnfiledDocsResponse() { + return new GetUnfiledDocsResponse(); + } + + /** + * Create an instance of {@link Types } + * + */ + public Types createGetTypesResponseTypes() { + return new Types(); + } + + /** + * Create an instance of {@link RelationshipObjectType } + * + */ + public RelationshipObjectType createRelationshipObjectType() { + return new RelationshipObjectType(); + } + + /** + * Create an instance of {@link GetRelationshipsResponse } + * + */ + public GetRelationshipsResponse createGetRelationshipsResponse() { + return new GetRelationshipsResponse(); + } + + /** + * Create an instance of {@link DocumentCollection } + * + */ + public DocumentCollection createDocumentCollection() { + return new DocumentCollection(); + } + + /** + * Create an instance of {@link DocumentObjectType } + * + */ + public DocumentObjectType createDocumentObjectType() { + return new DocumentObjectType(); + } + + /** + * Create an instance of {@link CancelCheckOut } + * + */ + public CancelCheckOut createCancelCheckOut() { + return new CancelCheckOut(); + } + + /** + * Create an instance of {@link GetTypeDefinitionResponse } + * + */ + public GetTypeDefinitionResponse createGetTypeDefinitionResponse() { + return new GetTypeDefinitionResponse(); + } + + /** + * Create an instance of {@link GetAllVersionsResponse } + * + */ + public GetAllVersionsResponse createGetAllVersionsResponse() { + return new GetAllVersionsResponse(); + } + + /** + * Create an instance of {@link Children } + * + */ + public Children createChildren() { + return new Children(); + } + + /** + * Create an instance of {@link Property } + * + */ + public Property createProperty() { + return new Property(); + } + + /** + * Create an instance of {@link DocumentOrFolderObjectType } + * + */ + public DocumentOrFolderObjectType createDocumentOrFolderObjectType() { + return new DocumentOrFolderObjectType(); + } + + /** + * Create an instance of {@link GetFolderParent } + * + */ + public GetFolderParent createGetFolderParent() { + return new GetFolderParent(); + } + + /** + * Create an instance of {@link ChoiceType } + * + */ + public ChoiceType createChoiceType() { + return new ChoiceType(); + } + + /** + * Create an instance of {@link CapabilitiesType } + * + */ + public CapabilitiesType createCapabilitiesType() { + return new CapabilitiesType(); + } + + /** + * Create an instance of {@link Query } + * + */ + public Query createQuery() { + return new Query(); + } + + /** + * Create an instance of {@link CreateFolderResponse } + * + */ + public CreateFolderResponse createCreateFolderResponse() { + return new CreateFolderResponse(); + } + + /** + * Create an instance of {@link CreateDocument } + * + */ + public CreateDocument createCreateDocument() { + return new CreateDocument(); + } + + /** + * Create an instance of {@link DeleteAllVersionsResponse } + * + */ + public DeleteAllVersionsResponse createDeleteAllVersionsResponse() { + return new DeleteAllVersionsResponse(); + } + + /** + * Create an instance of {@link GetRepositoryInfo } + * + */ + public GetRepositoryInfo createGetRepositoryInfo() { + return new GetRepositoryInfo(); + } + + /** + * Create an instance of {@link FailedToDelete } + * + */ + public FailedToDelete createDeleteTreeResponseFailedToDelete() { + return new FailedToDelete(); + } + + /** + * Create an instance of {@link DeleteContentStreamResponse } + * + */ + public DeleteContentStreamResponse createDeleteContentStreamResponse() { + return new DeleteContentStreamResponse(); + } + + /** + * Create an instance of {@link GetTypes } + * + */ + public GetTypes createGetTypes() { + return new GetTypes(); + } + + /** + * Create an instance of {@link CreateDocumentResponse } + * + */ + public CreateDocumentResponse createCreateDocumentResponse() { + return new CreateDocumentResponse(); + } + + /** + * Create an instance of {@link PropertyAttributesType } + * + */ + public PropertyAttributesType createPropertyAttributesType() { + return new PropertyAttributesType(); + } + + /** + * Create an instance of {@link GetPropertiesResponse } + * + */ + public GetPropertiesResponse createGetPropertiesResponse() { + return new GetPropertiesResponse(); + } + + /** + * Create an instance of {@link CreateRelationshipResponse } + * + */ + public CreateRelationshipResponse createCreateRelationshipResponse() { + return new CreateRelationshipResponse(); + } + + /** + * Create an instance of {@link DeleteContentStream } + * + */ + public DeleteContentStream createDeleteContentStream() { + return new DeleteContentStream(); + } + + /** + * Create an instance of {@link UpdateProperties } + * + */ + public UpdateProperties createUpdateProperties() { + return new UpdateProperties(); + } + + /** + * Create an instance of {@link FolderCollection } + * + */ + public FolderCollection createFolderCollection() { + return new FolderCollection(); + } + + /** + * Create an instance of {@link GetDocumentParentsResponse } + * + */ + public GetDocumentParentsResponse createGetDocumentParentsResponse() { + return new GetDocumentParentsResponse(); + } + + /** + * Create an instance of {@link FolderObjectType } + * + */ + public FolderObjectType createFolderObjectType() { + return new FolderObjectType(); + } + + /** + * Create an instance of {@link GetAllowableActions } + * + */ + public GetAllowableActions createGetAllowableActions() { + return new GetAllowableActions(); + } + + /** + * Create an instance of {@link MoveObjectResponse } + * + */ + public MoveObjectResponse createMoveObjectResponse() { + return new MoveObjectResponse(); + } + + /** + * Create an instance of {@link DeleteObjectResponse } + * + */ + public DeleteObjectResponse createDeleteObjectResponse() { + return new DeleteObjectResponse(); + } + + /** + * Create an instance of {@link SetContentStreamResponse } + * + */ + public SetContentStreamResponse createSetContentStreamResponse() { + return new SetContentStreamResponse(); + } + + /** + * Create an instance of {@link GetContentStreamResponse } + * + */ + public GetContentStreamResponse createGetContentStreamResponse() { + return new GetContentStreamResponse(); + } + + /** + * Create an instance of {@link CreateFolder } + * + */ + public CreateFolder createCreateFolder() { + return new CreateFolder(); + } + + /** + * Create an instance of {@link AllowableActionCollection } + * + */ + public AllowableActionCollection createGetAllowableActionsResponseAllowableActionCollection() { + return new AllowableActionCollection(); + } + + /** + * Create an instance of {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection createDocumentAndFolderCollection() { + return new DocumentAndFolderCollection(); + } + + /** + * Create an instance of {@link GetDescendantsResponse } + * + */ + public GetDescendantsResponse createGetDescendantsResponse() { + return new GetDescendantsResponse(); + } + + /** + * Create an instance of {@link CheckOutResponse } + * + */ + public CheckOutResponse createCheckOutResponse() { + return new CheckOutResponse(); + } + + /** + * Create an instance of {@link RelationshipCollection } + * + */ + public RelationshipCollection createRelationshipCollection() { + return new RelationshipCollection(); + } + + /** + * Create an instance of {@link CheckIn } + * + */ + public CheckIn createCheckIn() { + return new CheckIn(); + } + + /** + * Create an instance of {@link GetRootFolder } + * + */ + public GetRootFolder createGetRootFolder() { + return new GetRootFolder(); + } + + /** + * Create an instance of {@link GetTypeDefinition } + * + */ + public GetTypeDefinition createGetTypeDefinition() { + return new GetTypeDefinition(); + } + + /** + * Create an instance of {@link CheckOut } + * + */ + public CheckOut createCheckOut() { + return new CheckOut(); + } + + /** + * Create an instance of {@link CreateRelationship } + * + */ + public CreateRelationship createCreateRelationship() { + return new CreateRelationship(); + } + + /** + * Create an instance of {@link GetCheckedoutDocsResponse } + * + */ + public GetCheckedoutDocsResponse createGetCheckedoutDocsResponse() { + return new GetCheckedoutDocsResponse(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "ObjectNotFoundFault") + public JAXBElement createObjectNotFoundFault(BasicFault value) { + return new JAXBElement(_ObjectNotFoundFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "OffsetFault") + public JAXBElement createOffsetFault(BasicFault value) { + return new JAXBElement(_OffsetFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "StorageFault") + public JAXBElement createStorageFault(BasicFault value) { + return new JAXBElement(_StorageFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "RuntimeFault") + public JAXBElement createRuntimeFault(BasicFault value) { + return new JAXBElement(_RuntimeFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "StreamNotSupportedFault") + public JAXBElement createStreamNotSupportedFault(BasicFault value) { + return new JAXBElement(_StreamNotSupportedFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "hasMoreItems") + public JAXBElement createHasMoreItems(Boolean value) { + return new JAXBElement(_HasMoreItems_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "FilterNotValidFault") + public JAXBElement createFilterNotValidFault(BasicFault value) { + return new JAXBElement(_FilterNotValidFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "skipCount") + public JAXBElement createSkipCount(BigInteger value) { + return new JAXBElement(_SkipCount_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "parent") + public JAXBElement createParent(String value) { + return new JAXBElement(_Parent_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "InvalidArgumentFault") + public JAXBElement createInvalidArgumentFault(BasicFault value) { + return new JAXBElement(_InvalidArgumentFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "name") + public JAXBElement createName(String value) { + return new JAXBElement(_Name_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "OperationNotSupportedFault") + public JAXBElement createOperationNotSupportedFault(BasicFault value) { + return new JAXBElement(_OperationNotSupportedFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "sourceOID") + public JAXBElement createSourceOID(String value) { + return new JAXBElement(_SourceOID_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "filter") + public JAXBElement createFilter(String value) { + return new JAXBElement(_Filter_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "TypeNotFoundFault") + public JAXBElement createTypeNotFoundFault(BasicFault value) { + return new JAXBElement(_TypeNotFoundFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "PermissionDeniedFault") + public JAXBElement createPermissionDeniedFault(BasicFault value) { + return new JAXBElement(_PermissionDeniedFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "ConcurrencyFault") + public JAXBElement createConcurrencyFault(BasicFault value) { + return new JAXBElement(_ConcurrencyFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "NotInFolderFault") + public JAXBElement createNotInFolderFault(BasicFault value) { + return new JAXBElement(_NotInFolderFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "FolderNotValidFault") + public JAXBElement createFolderNotValidFault(BasicFault value) { + return new JAXBElement(_FolderNotValidFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "AlreadyExistsFault") + public JAXBElement createAlreadyExistsFault(BasicFault value) { + return new JAXBElement(_AlreadyExistsFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "ConstraintViolationFault") + public JAXBElement createConstraintViolationFault(BasicFault value) { + return new JAXBElement(_ConstraintViolationFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "maxItems") + public JAXBElement createMaxItems(BigInteger value) { + return new JAXBElement(_MaxItems_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "targetOID") + public JAXBElement createTargetOID(String value) { + return new JAXBElement(_TargetOID_QNAME, String.class, null, value); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java new file mode 100644 index 0000000000..a2969bebb2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "ObjectNotFoundFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class ObjectNotFoundException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault objectNotFoundFault; + + public ObjectNotFoundException() { + super(); + } + + public ObjectNotFoundException(String message) { + super(message); + } + + public ObjectNotFoundException(String message, Throwable cause) { + super(message, cause); + } + + public ObjectNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault objectNotFoundFault) { + super(message); + this.objectNotFoundFault = objectNotFoundFault; + } + + public ObjectNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault objectNotFoundFault, Throwable cause) { + super(message, cause); + this.objectNotFoundFault = objectNotFoundFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.objectNotFoundFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java new file mode 100644 index 0000000000..79ae14cbab --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java @@ -0,0 +1,58 @@ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import org.alfresco.repo.cmis.ws.ObjectServicePort; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:14 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebServiceClient(name = "ObjectService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/ObjectService.wsdl") +public class ObjectService extends Service { + + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); + public final static QName ObjectServicePort = new QName("http://www.cmis.org/ns/1.0", "ObjectServicePort"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/ObjectService.wsdl"); + } catch (MalformedURLException e) { + System.err.println("Can not initialize the default wsdl from file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/ObjectService.wsdl"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public ObjectService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public ObjectService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public ObjectService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns ObjectServicePort + */ + @WebEndpoint(name = "ObjectServicePort") + public ObjectServicePort getObjectServicePort() { + return super.getPort(ObjectServicePort, ObjectServicePort.class); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java new file mode 100644 index 0000000000..2bc94ae12d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java @@ -0,0 +1,152 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:14 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "ObjectServicePort") + +public interface ObjectServicePort { + + @ResponseWrapper(localName = "deleteTreeResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteTreeResponse") + @RequestWrapper(localName = "deleteTree", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteTree") + @WebResult(name = "failedToDelete", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree( + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String folderId, + @WebParam(name = "unfileMultiFiledDocuments", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.DeleteWithMultiFilingEnum unfileMultiFiledDocuments, + @WebParam(name = "continueOnFailure", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.Boolean continueOnFailure + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "getAllowableActionsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetAllowableActionsResponse") + @RequestWrapper(localName = "getAllowableActions", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetAllowableActions") + @WebResult(name = "allowableActionCollection", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection getAllowableActions( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId, + @WebParam(name = "asUser", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String asUser + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "moveObjectResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.MoveObjectResponse") + @RequestWrapper(localName = "moveObject", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.MoveObject") + @WebMethod + public void moveObject( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId, + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String folderId, + @WebParam(name = "sourceFolderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String sourceFolderId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "deleteContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteContentStreamResponse") + @RequestWrapper(localName = "deleteContentStream", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteContentStream") + @WebMethod + public void deleteContentStream( + @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String documentId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "createFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateFolderResponse") + @RequestWrapper(localName = "createFolder", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateFolder") + @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public java.lang.String createFolder( + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String typeId, + @WebParam(name = "propertyCollection", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.FolderObjectType propertyCollection, + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String folderId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "updatePropertiesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.UpdatePropertiesResponse") + @RequestWrapper(localName = "updateProperties", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.UpdateProperties") + @WebMethod + public void updateProperties( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId, + @WebParam(name = "changeToken", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String changeToken, + @WebParam(name = "object", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.DocumentFolderOrRelationshipObjectType object + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "createDocumentResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.CreateDocumentResponse createDocument( + @WebParam(partName = "parameters", name = "createDocument", targetNamespace = "http://www.cmis.org/ns/1.0") + CreateDocument parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "getContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetContentStreamResponse") + @RequestWrapper(localName = "getContentStream", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetContentStream") + @WebResult(name = "stream", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public byte[] getContentStream( + @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String documentId, + @WebParam(name = "offset", targetNamespace = "http://www.cmis.org/ns/1.0") + java.math.BigInteger offset, + @WebParam(name = "length", targetNamespace = "http://www.cmis.org/ns/1.0") + java.math.BigInteger length + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, StorageException, OperationNotSupportedException, StreamNotSupportedException, OffsetException, PermissionDeniedException; + + @ResponseWrapper(localName = "createRelationshipResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateRelationshipResponse") + @RequestWrapper(localName = "createRelationship", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateRelationship") + @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public java.lang.String createRelationship( + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String typeId, + @WebParam(name = "propertyCollection", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.RelationshipObjectType propertyCollection, + @WebParam(name = "sourceObjectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String sourceObjectId, + @WebParam(name = "targetObjectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String targetObjectId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "setContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.SetContentStreamResponse setContentStream( + @WebParam(partName = "parameters", name = "setContentStream", targetNamespace = "http://www.cmis.org/ns/1.0") + SetContentStream parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, AlreadyExistsException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "deleteObjectResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteObjectResponse") + @RequestWrapper(localName = "deleteObject", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteObject") + @WebMethod + public void deleteObject( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getPropertiesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetPropertiesResponse getProperties( + @WebParam(partName = "parameters", name = "getProperties", targetNamespace = "http://www.cmis.org/ns/1.0") + GetProperties parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java new file mode 100644 index 0000000000..0cc19bb753 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java @@ -0,0 +1,287 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for objectTypeBase complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="objectTypeBase">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectID" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element name="objectTypeID" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
+ *         <element name="baseObjectType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="createdBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="creationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="lastModifiedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="lastModificationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "objectTypeBase", propOrder = { + "objectID", + "uri", + "objectTypeID", + "baseObjectType", + "createdBy", + "creationDate", + "lastModifiedBy", + "lastModificationDate", + "changeToken" +}) +public abstract class ObjectTypeBase { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String objectID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String uri; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String objectTypeID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String baseObjectType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String createdBy; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected XMLGregorianCalendar creationDate; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String lastModifiedBy; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected XMLGregorianCalendar lastModificationDate; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String changeToken; + + /** + * Gets the value of the objectID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectID() { + return objectID; + } + + /** + * Sets the value of the objectID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectID(String value) { + this.objectID = value; + } + + /** + * Gets the value of the uri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the value of the objectTypeID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectTypeID() { + return objectTypeID; + } + + /** + * Sets the value of the objectTypeID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectTypeID(String value) { + this.objectTypeID = value; + } + + /** + * Gets the value of the baseObjectType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBaseObjectType() { + return baseObjectType; + } + + /** + * Sets the value of the baseObjectType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBaseObjectType(String value) { + this.baseObjectType = value; + } + + /** + * Gets the value of the createdBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreatedBy() { + return createdBy; + } + + /** + * Sets the value of the createdBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreatedBy(String value) { + this.createdBy = value; + } + + /** + * Gets the value of the creationDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCreationDate() { + return creationDate; + } + + /** + * Sets the value of the creationDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCreationDate(XMLGregorianCalendar value) { + this.creationDate = value; + } + + /** + * Gets the value of the lastModifiedBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastModifiedBy() { + return lastModifiedBy; + } + + /** + * Sets the value of the lastModifiedBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastModifiedBy(String value) { + this.lastModifiedBy = value; + } + + /** + * Gets the value of the lastModificationDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getLastModificationDate() { + return lastModificationDate; + } + + /** + * Sets the value of the lastModificationDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setLastModificationDate(XMLGregorianCalendar value) { + this.lastModificationDate = value; + } + + /** + * Gets the value of the changeToken property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChangeToken() { + return changeToken; + } + + /** + * Sets the value of the changeToken property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChangeToken(String value) { + this.changeToken = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java new file mode 100644 index 0000000000..858a011c01 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java @@ -0,0 +1,326 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for objectTypeDefinitionType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="objectTypeDefinitionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectTypeID" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *         <element name="objectTypeName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="parentTypeName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="rootTypeName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="versionable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="constraints" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="property" type="{http://www.cmis.org/ns/1.0}propertyAttributesType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "objectTypeDefinitionType", propOrder = { + "objectTypeID", + "objectTypeName", + "displayName", + "parentTypeName", + "rootTypeName", + "description", + "queryable", + "versionable", + "constraints", + "property" +}) +public class ObjectTypeDefinitionType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectTypeID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectTypeName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String displayName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String parentTypeName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String rootTypeName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String description; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean queryable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean versionable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List constraints; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the objectTypeID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectTypeID() { + return objectTypeID; + } + + /** + * Sets the value of the objectTypeID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectTypeID(String value) { + this.objectTypeID = value; + } + + /** + * Gets the value of the objectTypeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectTypeName() { + return objectTypeName; + } + + /** + * Sets the value of the objectTypeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectTypeName(String value) { + this.objectTypeName = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the parentTypeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentTypeName() { + return parentTypeName; + } + + /** + * Sets the value of the parentTypeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParentTypeName(String value) { + this.parentTypeName = value; + } + + /** + * Gets the value of the rootTypeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRootTypeName() { + return rootTypeName; + } + + /** + * Sets the value of the rootTypeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRootTypeName(String value) { + this.rootTypeName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the queryable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setQueryable(Boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the versionable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isVersionable() { + return versionable; + } + + /** + * Sets the value of the versionable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVersionable(Boolean value) { + this.versionable = value; + } + + /** + * Gets the value of the constraints property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the constraints property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConstraints().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getConstraints() { + if (constraints == null) { + constraints = new ArrayList(); + } + return this.constraints; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PropertyAttributesType } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java new file mode 100644 index 0000000000..1ac3cb2343 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "OffsetFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class OffsetException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault offsetFault; + + public OffsetException() { + super(); + } + + public OffsetException(String message) { + super(message); + } + + public OffsetException(String message, Throwable cause) { + super(message, cause); + } + + public OffsetException(String message, org.alfresco.repo.cmis.ws.BasicFault offsetFault) { + super(message); + this.offsetFault = offsetFault; + } + + public OffsetException(String message, org.alfresco.repo.cmis.ws.BasicFault offsetFault, Throwable cause) { + super(message, cause); + this.offsetFault = offsetFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.offsetFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java new file mode 100644 index 0000000000..ea1e0d5009 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "OperationNotSupportedFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class OperationNotSupportedException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedFault; + + public OperationNotSupportedException() { + super(); + } + + public OperationNotSupportedException(String message) { + super(message); + } + + public OperationNotSupportedException(String message, Throwable cause) { + super(message, cause); + } + + public OperationNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedFault) { + super(message); + this.operationNotSupportedFault = operationNotSupportedFault; + } + + public OperationNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedFault, Throwable cause) { + super(message, cause); + this.operationNotSupportedFault = operationNotSupportedFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.operationNotSupportedFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java new file mode 100644 index 0000000000..8c90f2468f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "PermissionDeniedFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class PermissionDeniedException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault permissionDeniedFault; + + public PermissionDeniedException() { + super(); + } + + public PermissionDeniedException(String message) { + super(message); + } + + public PermissionDeniedException(String message, Throwable cause) { + super(message, cause); + } + + public PermissionDeniedException(String message, org.alfresco.repo.cmis.ws.BasicFault permissionDeniedFault) { + super(message); + this.permissionDeniedFault = permissionDeniedFault; + } + + public PermissionDeniedException(String message, org.alfresco.repo.cmis.ws.BasicFault permissionDeniedFault, Throwable cause) { + super(message, cause); + this.permissionDeniedFault = permissionDeniedFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.permissionDeniedFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Property.java b/source/generated/org/alfresco/repo/cmis/ws/Property.java new file mode 100644 index 0000000000..237debb7c2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/Property.java @@ -0,0 +1,118 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for property element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="property">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *         <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "property") +public class Property { + + @XmlValue + protected String content; + @XmlAttribute + protected String index; + @XmlAttribute(required = true) + protected String name; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java new file mode 100644 index 0000000000..2c87216fea --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java @@ -0,0 +1,354 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for propertyAttributesType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="propertyAttributesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="propertyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="propertyType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="cardinality" type="{http://www.cmis.org/ns/1.0}cardinalityEnum"/>
+ *         <element name="maximumLength" type="{http://www.w3.org/2001/XMLSchema}integer"/>
+ *         <element name="choice" type="{http://www.cmis.org/ns/1.0}choiceType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="updatability" type="{http://www.cmis.org/ns/1.0}updatabilityEnum"/>
+ *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="orderable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "propertyAttributesType", propOrder = { + "propertyName", + "displayName", + "description", + "propertyType", + "cardinality", + "maximumLength", + "choice", + "required", + "defaultValue", + "updatability", + "queryable", + "orderable" +}) +public class PropertyAttributesType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String propertyName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String displayName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String description; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String propertyType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected CardinalityEnum cardinality; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected BigInteger maximumLength; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List choice; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean required; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String defaultValue; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected UpdatabilityEnum updatability; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean queryable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean orderable; + + /** + * Gets the value of the propertyName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPropertyName() { + return propertyName; + } + + /** + * Sets the value of the propertyName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPropertyName(String value) { + this.propertyName = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPropertyType() { + return propertyType; + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPropertyType(String value) { + this.propertyType = value; + } + + /** + * Gets the value of the cardinality property. + * + * @return + * possible object is + * {@link CardinalityEnum } + * + */ + public CardinalityEnum getCardinality() { + return cardinality; + } + + /** + * Sets the value of the cardinality property. + * + * @param value + * allowed object is + * {@link CardinalityEnum } + * + */ + public void setCardinality(CardinalityEnum value) { + this.cardinality = value; + } + + /** + * Gets the value of the maximumLength property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaximumLength() { + return maximumLength; + } + + /** + * Sets the value of the maximumLength property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaximumLength(BigInteger value) { + this.maximumLength = value; + } + + /** + * Gets the value of the choice property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the choice property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChoice().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ChoiceType } + * + * + */ + public List getChoice() { + if (choice == null) { + choice = new ArrayList(); + } + return this.choice; + } + + /** + * Gets the value of the required property. + * + */ + public boolean isRequired() { + return required; + } + + /** + * Sets the value of the required property. + * + */ + public void setRequired(boolean value) { + this.required = value; + } + + /** + * Gets the value of the defaultValue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDefaultValue() { + return defaultValue; + } + + /** + * Sets the value of the defaultValue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDefaultValue(String value) { + this.defaultValue = value; + } + + /** + * Gets the value of the updatability property. + * + * @return + * possible object is + * {@link UpdatabilityEnum } + * + */ + public UpdatabilityEnum getUpdatability() { + return updatability; + } + + /** + * Sets the value of the updatability property. + * + * @param value + * allowed object is + * {@link UpdatabilityEnum } + * + */ + public void setUpdatability(UpdatabilityEnum value) { + this.updatability = value; + } + + /** + * Gets the value of the queryable property. + * + */ + public boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + */ + public void setQueryable(boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the orderable property. + * + */ + public boolean isOrderable() { + return orderable; + } + + /** + * Sets the value of the orderable property. + * + */ + public void setOrderable(boolean value) { + this.orderable = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Query.java b/source/generated/org/alfresco/repo/cmis/ws/Query.java new file mode 100644 index 0000000000..d45e157401 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/Query.java @@ -0,0 +1,151 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for query element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="query">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="statement" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *           <element name="searchAllVersions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "statement", + "searchAllVersions", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "query") +public class Query { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String statement; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean searchAllVersions; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the statement property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatement() { + return statement; + } + + /** + * Sets the value of the statement property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatement(String value) { + this.statement = value; + } + + /** + * Gets the value of the searchAllVersions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isSearchAllVersions() { + return searchAllVersions; + } + + /** + * Sets the value of the searchAllVersions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSearchAllVersions(Boolean value) { + this.searchAllVersions = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java new file mode 100644 index 0000000000..cc5badb51a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for queryResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="queryResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentAndFolderCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentAndFolderCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "queryResponse") +public class QueryResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentAndFolderCollection documentAndFolderCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentAndFolderCollection property. + * + * @return + * possible object is + * {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection getDocumentAndFolderCollection() { + return documentAndFolderCollection; + } + + /** + * Sets the value of the documentAndFolderCollection property. + * + * @param value + * allowed object is + * {@link DocumentAndFolderCollection } + * + */ + public void setDocumentAndFolderCollection(DocumentAndFolderCollection value) { + this.documentAndFolderCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java new file mode 100644 index 0000000000..50f3e09879 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for relationshipCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="relationshipCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}relationshipObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "relationshipCollection") +public class RelationshipCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link RelationshipObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java new file mode 100644 index 0000000000..cc5588d979 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for relationshipDirectionEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="relationshipDirectionEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="source"/>
+ *     <enumeration value="target"/>
+ *     <enumeration value="sourceAndTarget"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum RelationshipDirectionEnum { + + @XmlEnumValue("source") + SOURCE("source"), + @XmlEnumValue("sourceAndTarget") + SOURCE_AND_TARGET("sourceAndTarget"), + @XmlEnumValue("target") + TARGET("target"); + private final String value; + + RelationshipDirectionEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static RelationshipDirectionEnum fromValue(String v) { + for (RelationshipDirectionEnum c: RelationshipDirectionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java new file mode 100644 index 0000000000..ec237cee1f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java @@ -0,0 +1,127 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for relationshipObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="relationshipObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}objectTypeBase">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/ns/1.0}sourceOID" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}targetOID" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}property" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "relationshipObjectType", propOrder = { + "sourceOID", + "targetOID", + "property" +}) +public class RelationshipObjectType + extends ObjectTypeBase +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String sourceOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String targetOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the sourceOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceOID() { + return sourceOID; + } + + /** + * Sets the value of the sourceOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceOID(String value) { + this.sourceOID = value; + } + + /** + * Gets the value of the targetOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetOID() { + return targetOID; + } + + /** + * Sets the value of the targetOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetOID(String value) { + this.targetOID = value; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Property } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java new file mode 100644 index 0000000000..1778e59aac --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for removeDocumentFromFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="removeDocumentFromFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "folderId" +}) +@XmlRootElement(name = "removeDocumentFromFolder") +public class RemoveDocumentFromFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String folderId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java new file mode 100644 index 0000000000..2e1f554d69 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for removeDocumentFromFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="removeDocumentFromFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "removeDocumentFromFolderResponse") +public class RemoveDocumentFromFolderResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java new file mode 100644 index 0000000000..673c805a9a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java @@ -0,0 +1,286 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for repositoryInfoType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="repositoryInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositoryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositoryDescription" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="rootFolderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         <element name="vendorName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="productVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositorySpecificInformation" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="capabilities" type="{http://www.cmis.org/ns/1.0}capabilitiesType"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "repositoryInfoType", propOrder = { + "repositoryId", + "repositoryName", + "repositoryDescription", + "rootFolderId", + "vendorName", + "productName", + "productVersion", + "repositorySpecificInformation", + "capabilities" +}) +public class RepositoryInfoType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositoryId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositoryName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositoryDescription; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String rootFolderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String vendorName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String productName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String productVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositorySpecificInformation; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected CapabilitiesType capabilities; + + /** + * Gets the value of the repositoryId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositoryId() { + return repositoryId; + } + + /** + * Sets the value of the repositoryId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositoryId(String value) { + this.repositoryId = value; + } + + /** + * Gets the value of the repositoryName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositoryName() { + return repositoryName; + } + + /** + * Sets the value of the repositoryName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositoryName(String value) { + this.repositoryName = value; + } + + /** + * Gets the value of the repositoryDescription property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositoryDescription() { + return repositoryDescription; + } + + /** + * Sets the value of the repositoryDescription property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositoryDescription(String value) { + this.repositoryDescription = value; + } + + /** + * Gets the value of the rootFolderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRootFolderId() { + return rootFolderId; + } + + /** + * Sets the value of the rootFolderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRootFolderId(String value) { + this.rootFolderId = value; + } + + /** + * Gets the value of the vendorName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVendorName() { + return vendorName; + } + + /** + * Sets the value of the vendorName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVendorName(String value) { + this.vendorName = value; + } + + /** + * Gets the value of the productName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProductName() { + return productName; + } + + /** + * Sets the value of the productName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProductName(String value) { + this.productName = value; + } + + /** + * Gets the value of the productVersion property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProductVersion() { + return productVersion; + } + + /** + * Sets the value of the productVersion property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProductVersion(String value) { + this.productVersion = value; + } + + /** + * Gets the value of the repositorySpecificInformation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositorySpecificInformation() { + return repositorySpecificInformation; + } + + /** + * Sets the value of the repositorySpecificInformation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositorySpecificInformation(String value) { + this.repositorySpecificInformation = value; + } + + /** + * Gets the value of the capabilities property. + * + * @return + * possible object is + * {@link CapabilitiesType } + * + */ + public CapabilitiesType getCapabilities() { + return capabilities; + } + + /** + * Sets the value of the capabilities property. + * + * @param value + * allowed object is + * {@link CapabilitiesType } + * + */ + public void setCapabilities(CapabilitiesType value) { + this.capabilities = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java new file mode 100644 index 0000000000..2c79af5047 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java @@ -0,0 +1,58 @@ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import org.alfresco.repo.cmis.ws.RepositoryServicePort; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:20 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebServiceClient(name = "RepositoryService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/RepositoryService.wsdl") +public class RepositoryService extends Service { + + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); + public final static QName RepositoryServicePort = new QName("http://www.cmis.org/ns/1.0", "RepositoryServicePort"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/RepositoryService.wsdl"); + } catch (MalformedURLException e) { + System.err.println("Can not initialize the default wsdl from file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/RepositoryService.wsdl"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public RepositoryService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public RepositoryService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public RepositoryService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns RepositoryServicePort + */ + @WebEndpoint(name = "RepositoryServicePort") + public RepositoryServicePort getRepositoryServicePort() { + return super.getPort(RepositoryServicePort, RepositoryServicePort.class); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java new file mode 100644 index 0000000000..94db8b7b8b --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java @@ -0,0 +1,60 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebParam.Mode; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:20 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "RepositoryServicePort") + +public interface RepositoryServicePort { + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getRootFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetRootFolderResponse getRootFolder( + @WebParam(partName = "parameters", name = "getRootFolder", targetNamespace = "http://www.cmis.org/ns/1.0") + GetRootFolder parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getTypesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetTypesResponse getTypes( + @WebParam(partName = "parameters", name = "getTypes", targetNamespace = "http://www.cmis.org/ns/1.0") + GetTypes parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "getTypeDefinitionResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetTypeDefinitionResponse") + @RequestWrapper(localName = "getTypeDefinition", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetTypeDefinition") + @WebMethod + public void getTypeDefinition( + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String typeId, + @WebParam(name = "includeInheritedProperties", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.Boolean includeInheritedProperties, + @WebParam(mode = WebParam.Mode.OUT, name = "type", targetNamespace = "http://www.cmis.org/ns/1.0") + javax.xml.ws.Holder type, + @WebParam(mode = WebParam.Mode.OUT, name = "canCreateInstances", targetNamespace = "http://www.cmis.org/ns/1.0") + javax.xml.ws.Holder canCreateInstances + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, OperationNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "getRepositoryInfoResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfoResponse") + @RequestWrapper(localName = "getRepositoryInfo", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfo") + @WebResult(name = "repositoryInfo", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public org.alfresco.repo.cmis.ws.RepositoryInfoType getRepositoryInfo() throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, PermissionDeniedException; +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java new file mode 100644 index 0000000000..0f7fd6ea9e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "RuntimeFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class RuntimeException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault runtimeFault; + + public RuntimeException() { + super(); + } + + public RuntimeException(String message) { + super(message); + } + + public RuntimeException(String message, Throwable cause) { + super(message, cause); + } + + public RuntimeException(String message, org.alfresco.repo.cmis.ws.BasicFault runtimeFault) { + super(message); + this.runtimeFault = runtimeFault; + } + + public RuntimeException(String message, org.alfresco.repo.cmis.ws.BasicFault runtimeFault, Throwable cause) { + super(message, cause); + this.runtimeFault = runtimeFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.runtimeFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java new file mode 100644 index 0000000000..8db0ff529c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for setContentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="setContentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="overwriteFlag" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "overwriteFlag", + "contentStream" +}) +@XmlRootElement(name = "setContentStream") +public class SetContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean overwriteFlag; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected ContentStream contentStream; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the overwriteFlag property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isOverwriteFlag() { + return overwriteFlag; + } + + /** + * Sets the value of the overwriteFlag property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOverwriteFlag(Boolean value) { + this.overwriteFlag = value; + } + + /** + * Gets the value of the contentStream property. + * + * @return + * possible object is + * {@link ContentStream } + * + */ + public ContentStream getContentStream() { + return contentStream; + } + + /** + * Sets the value of the contentStream property. + * + * @param value + * allowed object is + * {@link ContentStream } + * + */ + public void setContentStream(ContentStream value) { + this.contentStream = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java new file mode 100644 index 0000000000..c61012bb62 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for setContentStreamResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="setContentStreamResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "setContentStreamResponse") +public class SetContentStreamResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StorageException.java b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java new file mode 100644 index 0000000000..d225a8d7fc --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "StorageFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class StorageException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault storageFault; + + public StorageException() { + super(); + } + + public StorageException(String message) { + super(message); + } + + public StorageException(String message, Throwable cause) { + super(message, cause); + } + + public StorageException(String message, org.alfresco.repo.cmis.ws.BasicFault storageFault) { + super(message); + this.storageFault = storageFault; + } + + public StorageException(String message, org.alfresco.repo.cmis.ws.BasicFault storageFault, Throwable cause) { + super(message, cause); + this.storageFault = storageFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.storageFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java new file mode 100644 index 0000000000..67e0343b00 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "StreamNotSupportedFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class StreamNotSupportedException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedFault; + + public StreamNotSupportedException() { + super(); + } + + public StreamNotSupportedException(String message) { + super(message); + } + + public StreamNotSupportedException(String message, Throwable cause) { + super(message, cause); + } + + public StreamNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedFault) { + super(message); + this.streamNotSupportedFault = streamNotSupportedFault; + } + + public StreamNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedFault, Throwable cause) { + super(message, cause); + this.streamNotSupportedFault = streamNotSupportedFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.streamNotSupportedFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java new file mode 100644 index 0000000000..3573cdc3a3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:20 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "TypeNotFoundFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class TypeNotFoundException extends Exception { + public static final long serialVersionUID = 20080527141120L; + + private org.alfresco.repo.cmis.ws.BasicFault typeNotFoundFault; + + public TypeNotFoundException() { + super(); + } + + public TypeNotFoundException(String message) { + super(message); + } + + public TypeNotFoundException(String message, Throwable cause) { + super(message, cause); + } + + public TypeNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault typeNotFoundFault) { + super(message); + this.typeNotFoundFault = typeNotFoundFault; + } + + public TypeNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault typeNotFoundFault, Throwable cause) { + super(message, cause); + this.typeNotFoundFault = typeNotFoundFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.typeNotFoundFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java b/source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java new file mode 100644 index 0000000000..a7a7ec447a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for typesOfObjectsEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="typesOfObjectsEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Folders"/>
+ *     <enumeration value="FoldersAndDocumets"/>
+ *     <enumeration value="Documents"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum TypesOfObjectsEnum { + + @XmlEnumValue("Documents") + DOCUMENTS("Documents"), + @XmlEnumValue("Folders") + FOLDERS("Folders"), + @XmlEnumValue("FoldersAndDocumets") + FOLDERS_AND_DOCUMETS("FoldersAndDocumets"); + private final String value; + + TypesOfObjectsEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TypesOfObjectsEnum fromValue(String v) { + for (TypesOfObjectsEnum c: TypesOfObjectsEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java b/source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java new file mode 100644 index 0000000000..d20171332a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for updatabilityEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="updatabilityEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="readOnly"/>
+ *     <enumeration value="readWrite"/>
+ *     <enumeration value="readWriteWhenCheckedOut"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum UpdatabilityEnum { + + @XmlEnumValue("readOnly") + READ_ONLY("readOnly"), + @XmlEnumValue("readWrite") + READ_WRITE("readWrite"), + @XmlEnumValue("readWriteWhenCheckedOut") + READ_WRITE_WHEN_CHECKED_OUT("readWriteWhenCheckedOut"); + private final String value; + + UpdatabilityEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static UpdatabilityEnum fromValue(String v) { + for (UpdatabilityEnum c: UpdatabilityEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java new file mode 100644 index 0000000000..a7261ad903 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for updateProperties element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="updateProperties">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentFolderOrRelationshipObjectType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "changeToken", + "object" +}) +@XmlRootElement(name = "updateProperties") +public class UpdateProperties { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String changeToken; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentFolderOrRelationshipObjectType object; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the changeToken property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChangeToken() { + return changeToken; + } + + /** + * Sets the value of the changeToken property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChangeToken(String value) { + this.changeToken = value; + } + + /** + * Gets the value of the object property. + * + * @return + * possible object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public DocumentFolderOrRelationshipObjectType getObject() { + return object; + } + + /** + * Sets the value of the object property. + * + * @param value + * allowed object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public void setObject(DocumentFolderOrRelationshipObjectType value) { + this.object = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java new file mode 100644 index 0000000000..ce047adc80 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for updatePropertiesResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="updatePropertiesResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "updatePropertiesResponse") +public class UpdatePropertiesResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java new file mode 100644 index 0000000000..14ad786f84 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for versionEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="versionEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="this"/>
+ *     <enumeration value="latest"/>
+ *     <enumeration value="latestMajor"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum VersionEnum { + + @XmlEnumValue("latest") + LATEST("latest"), + @XmlEnumValue("latestMajor") + LATEST_MAJOR("latestMajor"), + @XmlEnumValue("this") + THIS("this"); + private final String value; + + VersionEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static VersionEnum fromValue(String v) { + for (VersionEnum c: VersionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java new file mode 100644 index 0000000000..25a531e600 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for versioningStateEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="versioningStateEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="checkedOut"/>
+ *     <enumeration value="checkedInMinor"/>
+ *     <enumeration value="checkedInMajor"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum VersioningStateEnum { + + @XmlEnumValue("checkedInMajor") + CHECKED_IN_MAJOR("checkedInMajor"), + @XmlEnumValue("checkedInMinor") + CHECKED_IN_MINOR("checkedInMinor"), + @XmlEnumValue("checkedOut") + CHECKED_OUT("checkedOut"); + private final String value; + + VersioningStateEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static VersioningStateEnum fromValue(String v) { + for (VersioningStateEnum c: VersioningStateEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/package-info.java b/source/generated/org/alfresco/repo/cmis/ws/package-info.java new file mode 100644 index 0000000000..8dd809b191 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.cmis.org/ns/1.0") +package org.alfresco.repo.cmis.ws; diff --git a/source/java/org/alfresco/repo/cmis/Index.java b/source/java/org/alfresco/repo/cmis/Index.java new file mode 100644 index 0000000000..57b3b42a04 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/Index.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2005-2007 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.alfresco.web.scripts.DeclarativeWebScript; +import org.alfresco.web.scripts.Description; +import org.alfresco.web.scripts.Status; +import org.alfresco.web.scripts.WebScript; +import org.alfresco.web.scripts.WebScriptRequest; + + +/** + * Index of CMIS Scripts + * + * @author davidc + */ +public class Index extends DeclarativeWebScript +{ + + /* (non-Javadoc) + * @see org.alfresco.web.scripts.DeclarativeWebScript#executeImpl(org.alfresco.web.scripts.WebScriptRequest, org.alfresco.web.scripts.WebScriptResponse) + */ + @Override + protected Map executeImpl(WebScriptRequest req, Status status) + { + List cmisScripts = new ArrayList(); + + // scan through all web scripts looking for CMIS specific ones + Collection webscripts = getContainer().getRegistry().getWebScripts(); + for (WebScript webscript : webscripts) + { + Description desc = webscript.getDescription(); + Map extensions = desc.getExtensions(); + if (extensions != null && extensions.get("cmis_version") != null) + { + cmisScripts.add(webscript); + } + } + + Map model = new HashMap(7, 1.0f); + model.put("services", cmisScripts); + return model; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java b/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java new file mode 100644 index 0000000000..d0b5810e97 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.util.List; + +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.apache.cxf.binding.soap.SoapMessage; +import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; +import org.apache.cxf.interceptor.Fault; +import org.apache.cxf.phase.Phase; +import org.apache.ws.security.WSSecurityEngineResult; +import org.apache.ws.security.WSUsernameTokenPrincipal; +import org.apache.ws.security.handler.WSHandlerConstants; +import org.apache.ws.security.handler.WSHandlerResult; + +public class AuthenticationInterceptor extends AbstractSoapInterceptor +{ + + public AuthenticationInterceptor() + { + super(Phase.PRE_INVOKE); + } + + public void handleMessage(SoapMessage message) throws Fault + { + @SuppressWarnings("unchecked") + WSHandlerResult handlerResult = ((List) message.getContextualProperty(WSHandlerConstants.RECV_RESULTS)).get(0); + WSSecurityEngineResult secRes = (WSSecurityEngineResult) handlerResult.getResults().get(0); + WSUsernameTokenPrincipal principal = (WSUsernameTokenPrincipal) secRes.get(WSSecurityEngineResult.TAG_PRINCIPAL); + + // Authenticate + AuthenticationUtil.setCurrentUser(principal.getName()); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java b/source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java new file mode 100644 index 0000000000..6aa6cf12be --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.IOException; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import org.alfresco.service.cmr.security.AuthenticationService; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.ws.security.WSPasswordCallback; + +/** + * @author Michael Shavnev + */ +public class AuthenticationTokenCallbackHandler implements CallbackHandler +{ + + private final Log LOG = LogFactory.getLog(AuthenticationTokenCallbackHandler.class); + + private AuthenticationService authenticationService; + + public void setAuthenticationService(AuthenticationService authenticationService) + { + this.authenticationService = authenticationService; + } + + public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException + { + WSPasswordCallback wssPasswordCallback = (WSPasswordCallback) callbacks[0]; + String userName = wssPasswordCallback.getIdentifer(); + String password = getPassword(userName); + + // Check the UsernameToken element. + // Depending on the password type contained in the element the processing differs. + if (wssPasswordCallback.getUsage() == WSPasswordCallback.USERNAME_TOKEN) + { + // If the password type is password digest provide stored password perform + // hash algorithm and compare the result with the transmitted password + wssPasswordCallback.setPassword(password); + } + else + { + // If the password is of type password text or any other yet unknown password type + // the delegate the password validation to the callback class. + if (!password.equals(wssPasswordCallback.getPassword())) + { + throw new SecurityException("Incorrect password"); + } + } + } + + private String getPassword(String userName) + { + // TODO Auto-generated method stub + return userName; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/CmisProperty.java b/source/java/org/alfresco/repo/cmis/ws/CmisProperty.java new file mode 100644 index 0000000000..2bfb2b93a2 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/CmisProperty.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +/** + * Cmis properties enumeration + * + * @author Dmitry Lazurkin + * + */ +public enum CmisProperty +{ + // Base properties + OBJECT_ID, + URI, + OBJECT_TYPE_ID, + CREATED_BY, + CREATION_DATE, + LAST_MODIFIED_BY, + LAST_MODIFICATION_DATE, + CHANGE_TOKEN, + + // Folder Object Type properties + PARENT, + ALLOWED_CHILD_OBJECT_TYPES, + + // Document Object Type properties + IS_IMMUTABLE, + IS_LATEST_VERSION, + IS_MAJOR_VERSION, + IS_LATEST_MAJOR_VERSION, + VERSION_SERIES_IS_CHECKED_OUT, + VERSION_SERIES_CHECKED_OUT_BY, + VERSION_SERIES_CHECKED_OUT_OID, + CHECKIN_COMMENT, + CONTENT_STREAM_ALLOWED, + CONTENT_STREAM_LENGTH, + CONTENT_STREAM_MIME_TYPE, + CONTENT_STREAM_FILENAME, + CONTENT_STREAM_URI, + + // Document Object Type and Folder Object Type properties + NAME; +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java new file mode 100644 index 0000000000..f1d25014a4 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java @@ -0,0 +1,509 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.Map; + +import javax.xml.datatype.DatatypeConfigurationException; +import javax.xml.datatype.DatatypeFactory; +import javax.xml.datatype.XMLGregorianCalendar; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.service.cmr.coci.CheckOutCheckInService; +import org.alfresco.service.cmr.dictionary.DictionaryService; +import org.alfresco.service.cmr.model.FileFolderService; +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ContentReader; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.NodeService; +import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter; +import org.alfresco.service.cmr.repository.datatype.TypeConverter; +import org.alfresco.service.cmr.search.SearchService; +import org.alfresco.service.cmr.security.AuthenticationService; +import org.alfresco.service.cmr.security.PersonService; +import org.alfresco.service.cmr.version.Version; +import org.alfresco.service.cmr.version.VersionHistory; +import org.alfresco.service.cmr.version.VersionService; +import org.alfresco.service.cmr.version.VersionType; +import org.alfresco.service.namespace.NamespaceService; +import org.alfresco.service.namespace.QName; + +/** + * @author Michael Shavnev + * @author Dmitry Lazurkin + */ +public class DMAbstractServicePort +{ + + private static final TypeConverter TYPE_CONVERTER = DefaultTypeConverter.INSTANCE; + + private DatatypeFactory _datatypeFactory; + + protected NodeService nodeService; + protected PersonService personService; + protected SearchService searchService; + protected NamespaceService namespaceService; + protected DictionaryService dictionaryService; + protected VersionService versionService; + protected CheckOutCheckInService checkOutCheckInService; + protected FileFolderService fileFolderService; + protected AuthenticationService authenticationService; + + private DatatypeFactory getDatatypeFactory() throws RuntimeException + { + if (_datatypeFactory == null) + { + try + { + _datatypeFactory = DatatypeFactory.newInstance(); + } + catch (DatatypeConfigurationException e) + { + // TODO: error code + throw new RuntimeException(e.getMessage()); + } + } + return _datatypeFactory; + } + + public void setNodeService(NodeService nodeService) + { + this.nodeService = nodeService; + } + + public void setPersonService(PersonService personService) + { + this.personService = personService; + } + + public void setSearchService(SearchService searchService) + { + this.searchService = searchService; + } + + public void setNamespaceService(NamespaceService namespaceService) + { + this.namespaceService = namespaceService; + } + + public void setDictionaryService(DictionaryService dictionaryService) + { + this.dictionaryService = dictionaryService; + } + + public void setVersionService(VersionService versionService) + { + this.versionService = versionService; + } + + public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) + { + this.checkOutCheckInService = checkOutCheckInService; + } + + public void setFileFolderService(FileFolderService fileFolderService) + { + this.fileFolderService = fileFolderService; + } + + public void setAuthenticationService(AuthenticationService authenticationService) + { + this.authenticationService = authenticationService; + } + + /** + * Sets properties for ObjectTypeBase object + * + * @param nodeRef Node reference + * @param target ObjectTypeBase object for setting + * @param propertyFilter filter for properties + * @return ObjectTypeBase object + */ + public ObjectTypeBase setObjectTypeBaseProperties(NodeRef nodeRef, ObjectTypeBase target, PropertyFilter propertyFilter) throws RuntimeException + { + Map properties = nodeService.getProperties(nodeRef); + + target.setObjectID(OIDUtils.toOID(nodeRef)); + + QName typeQName = nodeService.getType(nodeRef); + target.setObjectTypeID(typeQName.toString()); + + if (dictionaryService.isSubClass(typeQName, ContentModel.TYPE_FOLDER)) + { + target.setBaseObjectType(ContentModel.TYPE_FOLDER.toString()); + } + else + { + target.setBaseObjectType(ContentModel.TYPE_CONTENT.toString()); + } + + if (propertyFilter.allow(CmisProperty.CREATED_BY)) + { + target.setCreatedBy(TYPE_CONVERTER.convert(String.class, properties.get(ContentModel.PROP_AUTHOR))); + } + + if (propertyFilter.allow(CmisProperty.CREATION_DATE)) + { + target.setCreationDate(convert(TYPE_CONVERTER.convert(Date.class, properties.get(ContentModel.PROP_CREATED)))); + } + + if (propertyFilter.allow(CmisProperty.LAST_MODIFIED_BY)) + { + target.setLastModifiedBy(TYPE_CONVERTER.convert(String.class, properties.get(ContentModel.PROP_MODIFIER))); + } + + Date modificationDate = TYPE_CONVERTER.convert(Date.class, properties.get(ContentModel.PROP_MODIFIED)); + + if (propertyFilter.allow(CmisProperty.LAST_MODIFICATION_DATE)) + { + target.setLastModificationDate(convert(modificationDate)); + } + + if (propertyFilter.allow(CmisProperty.CHANGE_TOKEN)) + { + target.setChangeToken(String.valueOf(modificationDate.getTime())); + } + + return target; + } + + /** + * Sets properties for FolderObjectType object + * + * @param nodeRef Node reference + * @param target FolderObjectType object for setting + * @param propertyFilter filter for properties + * @return FolderObjectType object + */ + public FolderObjectType setFolderObjectTypeProperties(NodeRef folderNodeRef, FolderObjectType target, PropertyFilter propertyFilter) throws RuntimeException + { + setObjectTypeBaseProperties(folderNodeRef, target, propertyFilter); + + if (propertyFilter.allow(CmisProperty.NAME)) + { + target.setName((String) nodeService.getProperty(folderNodeRef, ContentModel.PROP_NAME)); + } + + if (propertyFilter.allow(CmisProperty.PARENT)) + { + target.setParent(OIDUtils.toOID(nodeService.getPrimaryParent(folderNodeRef).getParentRef())); + } + + if (propertyFilter.allow(CmisProperty.ALLOWED_CHILD_OBJECT_TYPES)) + { + // TODO: not set this property + } + + return target; + } + + /** + * Sets properties for DocumentOrFolderObjectType object + * + * @param nodeRef Node reference + * @param target DocumentOrFolderObjectType object for setting + * @param propertyFilter filter for properties + * @return DocumentOrFolderObjectType object + */ + public DocumentOrFolderObjectType setFolderObjectTypeProperties(NodeRef folderNodeRef, DocumentOrFolderObjectType target, PropertyFilter propertyFilter) throws RuntimeException + { + setObjectTypeBaseProperties(folderNodeRef, target, propertyFilter); + + if (propertyFilter.allow(CmisProperty.NAME)) + { + target.setName((String) nodeService.getProperty(folderNodeRef, ContentModel.PROP_NAME)); + } + + if (propertyFilter.allow(CmisProperty.PARENT)) + { + target.setParent(OIDUtils.toOID(nodeService.getPrimaryParent(folderNodeRef).getParentRef())); + } + + if (propertyFilter.allow(CmisProperty.ALLOWED_CHILD_OBJECT_TYPES)) + { + // TODO: not set this property + } + + return target; + } + + /** + * Sets properties for DocumentObjectType object + * + * @param nodeRef Node reference + * @param target DocumentObjectType object for setting + * @param propertyFilter filter for properties + * @return DocumentObjectType object + */ + public DocumentObjectType setDocumentObjectTypeProperties(NodeRef documentNodeRef, DocumentObjectType target, PropertyFilter propertyFilter) throws RuntimeException + { + setObjectTypeBaseProperties(documentNodeRef, target, propertyFilter); + + NodeRef workingCopy = null; + + if (nodeService.hasAspect(documentNodeRef, ContentModel.ASPECT_WORKING_COPY)) + { + workingCopy = documentNodeRef; + + if (propertyFilter.allow(CmisProperty.IS_LATEST_VERSION)) + { + target.setIsLatestVersion(false); + } + + if (propertyFilter.allow(CmisProperty.IS_MAJOR_VERSION)) + { + target.setIsMajorVersion(false); + } + + if (propertyFilter.allow(CmisProperty.IS_LATEST_MAJOR_VERSION)) + { + target.setIsLatestMajorVersion(false); + } + } + else + { + target.setName((String) nodeService.getProperty(documentNodeRef, ContentModel.PROP_NAME)); + + workingCopy = checkOutCheckInService.getWorkingCopy(documentNodeRef); + + Version version = versionService.getCurrentVersion(documentNodeRef); + + if (nodeService.hasAspect(documentNodeRef, ContentModel.ASPECT_VERSIONABLE) && version != null) + { + if (propertyFilter.allow(CmisProperty.IS_LATEST_VERSION)) + { + target.setIsLatestVersion(version.getVersionedNodeRef().equals(documentNodeRef)); + } + + if (propertyFilter.allow(CmisProperty.IS_MAJOR_VERSION)) + { + target.setIsMajorVersion(version.getVersionType().equals(VersionType.MAJOR)); + } + + if (propertyFilter.allow(CmisProperty.IS_LATEST_MAJOR_VERSION)) + { + NodeRef latestMajorNodeRef = getLatestVersionNodeRef(documentNodeRef, true); + target.setIsLatestMajorVersion(latestMajorNodeRef.equals(documentNodeRef)); + } + + if (propertyFilter.allow(CmisProperty.CHECKIN_COMMENT) && workingCopy == null) + { + target.setCheckinComment(version.getDescription()); + } + } + else + { + if (propertyFilter.allow(CmisProperty.IS_LATEST_VERSION)) + { + target.setIsLatestVersion(true); + } + if (propertyFilter.allow(CmisProperty.IS_MAJOR_VERSION)) + { + target.setIsMajorVersion(true); + } + if (propertyFilter.allow(CmisProperty.IS_LATEST_MAJOR_VERSION)) + { + target.setIsLatestMajorVersion(true); + } + } + } + + if (propertyFilter.allow(CmisProperty.VERSION_SERIES_IS_CHECKED_OUT)) + { + target.setVersionSeriesIsCheckedOut(workingCopy != null); + } + + if (propertyFilter.allow(CmisProperty.VERSION_SERIES_CHECKED_OUT_BY) && workingCopy != null) + { + target.setVersionSeriesCheckedOutBy((String) nodeService.getProperty(workingCopy, ContentModel.PROP_WORKING_COPY_OWNER)); + } + + if (propertyFilter.allow(CmisProperty.VERSION_SERIES_CHECKED_OUT_OID) && workingCopy != null) + { + if (AuthenticationUtil.getCurrentUserName().equals((String) nodeService.getProperty(workingCopy, ContentModel.PROP_WORKING_COPY_OWNER))) + { + target.setVersionSeriesCheckedOutOID(OIDUtils.toOID(workingCopy)); + } + } + + ContentReader contentReader = null; + + if (nodeService.getType(documentNodeRef).equals(ContentModel.TYPE_LINK)) + { + NodeRef destRef = (NodeRef) nodeService.getProperty(documentNodeRef, ContentModel.PROP_LINK_DESTINATION); + if (nodeService.exists(destRef)) + { + contentReader = fileFolderService.getReader(destRef); + } + } + else + { + contentReader = fileFolderService.getReader(documentNodeRef); + } + + if (contentReader != null) + { + if (propertyFilter.allow(CmisProperty.CONTENT_STREAM_LENGTH)) + { + target.setContentStreamLength(BigInteger.valueOf(contentReader.getSize())); + } + if (propertyFilter.allow(CmisProperty.CONTENT_STREAM_MIME_TYPE)) + { + target.setContentStreamMimeType(contentReader.getMimetype()); + } + if (propertyFilter.allow(CmisProperty.CONTENT_STREAM_FILENAME)) + { + target.setContentStreamFilename(target.getName()); // TODO: right on not? + } + } + + return target; + } + + /** + * Sets properties for RelationshipObjectType object + * + * @param associationRef Association reference + * @param target RelationshipObjectType object for setting + * @param propertyFilter filter for properties + * @return RelationshipObjectType object + */ + public RelationshipObjectType setRelationshipObjectTypeProperties(AssociationRef associationRef, RelationshipObjectType target, PropertyFilter propertyFilter) + { + target.setSourceOID(OIDUtils.toOID(associationRef.getSourceRef())); + target.setTargetOID(OIDUtils.toOID(associationRef.getTargetRef())); + // TODO: other properties + return target; + } + + /** + * Sets properties for DocumentFolderOrRelationshipObjectType object + * + * @param associationRef Association reference + * @param target DocumentFolderOrRelationshipObjectType object for setting + * @param propertyFilter filter for properties + * @return DocumentFolderOrRelationshipObjectType object + */ + public DocumentFolderOrRelationshipObjectType setRelationshipObjectTypeProperties(AssociationRef associationRef, DocumentFolderOrRelationshipObjectType target, PropertyFilter propertyFilter) + { + target.setSourceOID(OIDUtils.toOID(associationRef.getSourceRef())); + target.setTargetOID(OIDUtils.toOID(associationRef.getTargetRef())); + // TODO: other properties + return target; + } + + /** + * @param associationRef a reference to the association to look for + * @return Returns true if the association exists, otherwise false + */ + public boolean exists(AssociationRef associationRef) + { + if (nodeService.exists(associationRef.getSourceRef())) + { + return nodeService.getTargetAssocs(associationRef.getSourceRef(), associationRef.getTypeQName()).contains(associationRef); + } + + return false; + } + + /** + * @param nodeRef + * @return + */ + public boolean isFolderType(NodeRef nodeRef) + { + QName typeQName = nodeService.getType(nodeRef); + + return dictionaryService.isSubClass(typeQName, ContentModel.TYPE_FOLDER); + } + + /** + * @param nodeRef + * @return + */ + public boolean isDocumentType(NodeRef nodeRef) + { + QName typeQName = nodeService.getType(nodeRef); + + return dictionaryService.isSubClass(typeQName, ContentModel.TYPE_CONTENT); + } + + /** + * Returns latest minor or major version of document + * + * @param documentNodeRef document node reference + * @param major need latest major version + * @return latest version node reference + */ + public NodeRef getLatestVersionNodeRef(NodeRef documentNodeRef, boolean major) + { + Version currentVersion = versionService.getCurrentVersion(documentNodeRef); + NodeRef latestVersionNodeRef = documentNodeRef; + + if (currentVersion != null) + { + latestVersionNodeRef = currentVersion.getVersionedNodeRef(); + + if (major) + { + Version latestVersion = versionService.getCurrentVersion(latestVersionNodeRef); + + if (latestVersion.getVersionType().equals(VersionType.MAJOR) == false) + { + VersionHistory versionHistory = versionService.getVersionHistory(currentVersion.getVersionedNodeRef()); + + do + { + latestVersion = versionHistory.getPredecessor(latestVersion); + } while (latestVersion.getVersionType().equals(VersionType.MAJOR) == false); + + latestVersionNodeRef = latestVersion.getFrozenStateNodeRef(); + } + } + } + + return latestVersionNodeRef; + } + + /** + * Converts Date object to XMLGregorianCalendar object + * + * @param date Date object + * @return XMLGregorianCalendar object + * @throws RuntimeException + */ + private XMLGregorianCalendar convert(Date date) throws RuntimeException + { + GregorianCalendar calendar = new GregorianCalendar(); + calendar.setTime(date); + return getDatatypeFactory().newXMLGregorianCalendar(calendar); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java new file mode 100644 index 0000000000..41f571acbc --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java @@ -0,0 +1,245 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.List; + +import org.alfresco.service.cmr.model.FileInfo; +import org.alfresco.service.cmr.repository.NodeRef; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author Dmitry Lazurkin + */ + +@javax.jws.WebService(name = "NavigationServicePort", serviceName = "NavigationService", portName = "NavigationServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.NavigationServicePort") +public class DMNavigationServicePort extends DMAbstractServicePort implements NavigationServicePort +{ + private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + + public org.alfresco.repo.cmis.ws.GetDescendantsResponse getDescendants(GetDescendants parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetDescendantsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse getCheckedoutDocs(GetCheckedoutDocs parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetDocumentParentsResponse getDocumentParents(GetDocumentParents parameters) throws RuntimeException, ConcurrencyException, + InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetDocumentParentsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetChildrenResponse getChildren(GetChildren parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + + NodeRef folderNodeRef = OIDUtils.OIDtoNodeRef(parameters.getFolderId()); + + assertExistFolder(folderNodeRef); + + List listing; + if (parameters.getType().equals(TypesOfObjectsEnum.DOCUMENTS)) + { + listing = fileFolderService.listFiles(folderNodeRef); + } + else if (parameters.getType().equals(TypesOfObjectsEnum.FOLDERS)) + { + listing = fileFolderService.listFolders(folderNodeRef); + } + else + { + listing = fileFolderService.list(folderNodeRef); + } + + int maxItems = listing.size(); + int skipCount = 0; + + GetChildrenResponse response = new GetChildrenResponse(); + + // TODO: getChildren, support for BigIntegers, support for ResultSet + if (parameters.getSkipCount() != null) + { + BigInteger skipCountParam = parameters.getSkipCount(); + skipCount = skipCountParam.max(BigInteger.valueOf(skipCount)).intValue(); + } + + if (parameters.getMaxItems() != null) + { + BigInteger maxItemsParam = parameters.getMaxItems(); + maxItems = maxItemsParam.min(BigInteger.valueOf(maxItems)).intValue(); + + if (maxItems == 0) + { + maxItems = listing.size(); + } + + response.setHasMoreItems(maxItems < listing.size()); + } + + response.setDocumentAndFolderCollection(new DocumentAndFolderCollection()); + List resultListing = response.getDocumentAndFolderCollection().getObject(); + + for (int index = skipCount; index < listing.size() && maxItems > 0; ++index, --maxItems) + { + FileInfo currentFileInfo = listing.get(index); + DocumentOrFolderObjectType documentOrFolderObjectType = new DocumentOrFolderObjectType(); + + if (currentFileInfo.isFolder()) + { + setFolderObjectTypeProperties(currentFileInfo.getNodeRef(), documentOrFolderObjectType, propertyFilter); + } + else + { + setDocumentObjectTypeProperties(currentFileInfo.getNodeRef(), documentOrFolderObjectType, propertyFilter); + } + + resultListing.add(documentOrFolderObjectType); + } + + return response; + } + + /** + * Asserts "Folder with folderNodeRef exists" + * + * @param folderNodeRef node reference + * @throws FolderNotValidException folderNodeRef doesn't exist or folderNodeRef isn't for folder object + */ + private void assertExistFolder(NodeRef folderNodeRef) throws FolderNotValidException + { + if (folderNodeRef == null || nodeService.exists(folderNodeRef) == false || isFolderType(folderNodeRef) == false) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "OID for non-existent object or not folder object"); + throw new FolderNotValidException("OID for non-existent object or not folder object", basicFault); + } + } + + public org.alfresco.repo.cmis.ws.GetFolderParentResponse getFolderParent(GetFolderParent parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetFolderParentResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetUnfiledDocsResponse getUnfiledDocs(GetUnfiledDocs parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetUnfiledDocsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java new file mode 100644 index 0000000000..d2f22e511e --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java @@ -0,0 +1,459 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.IOException; +import java.io.InputStream; +import java.math.BigInteger; + +import org.alfresco.model.ContentModel; +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ContentReader; +import org.alfresco.service.cmr.repository.NodeRef; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author Dmitry Lazurkin + */ + +@javax.jws.WebService(name = "ObjectServicePort", serviceName = "ObjectService", portName = "ObjectServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.ObjectServicePort") +public class DMObjectServicePort extends DMAbstractServicePort implements ObjectServicePort +{ + private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + + public org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree(java.lang.String folderId, org.alfresco.repo.cmis.ws.DeleteWithMultiFilingEnum unfileMultiFiledDocuments, + java.lang.Boolean continueOnFailure) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(folderId); + System.out.println(unfileMultiFiledDocuments); + System.out.println(continueOnFailure); + try + { + org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection getAllowableActions(java.lang.String objectId, java.lang.String asUser) + throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(objectId); + System.out.println(asUser); + try + { + org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void moveObject(java.lang.String objectId, java.lang.String folderId, java.lang.String sourceFolderId) throws RuntimeException, ConcurrencyException, + InvalidArgumentException, ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(objectId); + System.out.println(folderId); + System.out.println(sourceFolderId); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new NotInFolderException("NotInFolderException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void deleteContentStream(java.lang.String documentId) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, + StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, PermissionDeniedException + { + System.out.println(documentId); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new StorageException("StorageException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new StreamNotSupportedException("StreamNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public java.lang.String createFolder(java.lang.String typeId, org.alfresco.repo.cmis.ws.FolderObjectType propertyCollection, java.lang.String folderId) throws RuntimeException, + ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(typeId); + System.out.println(propertyCollection); + System.out.println(folderId); + try + { + java.lang.String _return = ""; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void updateProperties(java.lang.String objectId, java.lang.String changeToken, org.alfresco.repo.cmis.ws.DocumentFolderOrRelationshipObjectType object) + throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(objectId); + System.out.println(changeToken); + System.out.println(object); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.CreateDocumentResponse createDocument(CreateDocument parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + TypeNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.CreateDocumentResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new StorageException("StorageException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new StreamNotSupportedException("StreamNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public byte[] getContentStream(java.lang.String documentId, java.math.BigInteger offset, java.math.BigInteger length) throws RuntimeException, ConcurrencyException, + InvalidArgumentException, ObjectNotFoundException, StorageException, OperationNotSupportedException, StreamNotSupportedException, OffsetException, + PermissionDeniedException + { + if (offset == null) + { + offset = new BigInteger("0"); + } + if (length == null) + { + length = new BigInteger("-1"); + } + + + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(documentId); + + if (nodeRef == null) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Invalid object ID"); + throw new InvalidArgumentException("Invalid object ID", basicFault); + } + + if (!nodeService.exists(nodeRef)) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Invalid document OID"); + throw new ObjectNotFoundException("Invalid document OID", basicFault); + } + + if (isFolderType(nodeRef)) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Stream not supported for this type of node"); + throw new StreamNotSupportedException("Stream not supported for this type of node", basicFault); + } + + ContentReader contentReader = null; + + if (nodeService.getType(nodeRef).equals(ContentModel.TYPE_LINK)) + { + NodeRef destRef = (NodeRef) nodeService.getProperty(nodeRef, ContentModel.PROP_LINK_DESTINATION); + if (nodeService.exists(destRef)) + { + contentReader = fileFolderService.getReader(destRef); + } + else + { + throw new ObjectNotFoundException("Missing link destination"); + } + } + else + { + contentReader = fileFolderService.getReader(nodeRef); + } + + if (length.intValue() == -1) + { + length = new BigInteger(String.valueOf(contentReader.getSize())); + } + + byte[] buffer = new byte[length.intValue()]; + + try + { + InputStream inputStream = contentReader.getContentInputStream(); + inputStream.skip(offset.intValue()); + int resultLength = inputStream.read(buffer, 0, length.intValue()); + + if (resultLength == -1) + { + return new byte[0]; + } + + byte[] result = new byte[resultLength]; + for (int i = 0; i < resultLength; i++) + { + result[i] = buffer[i]; + } + return result; + } + catch (IndexOutOfBoundsException e) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, e.getMessage()); + throw new OffsetException(e.getMessage(), basicFault, e); + } + catch (IOException e) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, e.getMessage()); + throw new RuntimeException(e.getMessage(), basicFault, e); + } + } + + public java.lang.String createRelationship(java.lang.String typeId, org.alfresco.repo.cmis.ws.RelationshipObjectType propertyCollection, java.lang.String sourceObjectId, + java.lang.String targetObjectId) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, + ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(typeId); + System.out.println(propertyCollection); + System.out.println(sourceObjectId); + System.out.println(targetObjectId); + try + { + java.lang.String _return = ""; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.SetContentStreamResponse setContentStream(SetContentStream parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + AlreadyExistsException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, + PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.SetContentStreamResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new AlreadyExistsException("AlreadyExistsException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new StorageException("StorageException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new StreamNotSupportedException("StreamNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void deleteObject(java.lang.String objectId) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, + ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(objectId); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetPropertiesResponse getProperties(GetProperties parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException + { + GetPropertiesResponse response = new GetPropertiesResponse(); + response.setObject(new DocumentFolderOrRelationshipObjectType()); + + PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(parameters.getObjectId()); + + if (nodeRef != null) + { + if (nodeService.exists(nodeRef) == false) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Object not found"); + throw new ObjectNotFoundException("Object not found", basicFault); + } + + if (isFolderType(nodeRef)) + { + setFolderObjectTypeProperties(nodeRef, response.getObject(), propertyFilter); + } + else + { + VersionEnum neededVersion = parameters.getReturnVersion(); + + if (neededVersion != null) + { + if (neededVersion.equals(VersionEnum.LATEST)) + { + nodeRef = getLatestVersionNodeRef(nodeRef, false); + } + else if (neededVersion.equals(VersionEnum.LATEST_MAJOR)) + { + nodeRef = getLatestVersionNodeRef(nodeRef, true); + } + } + + setDocumentObjectTypeProperties(nodeRef, response.getObject(), propertyFilter); + } + } + else + { + AssociationRef associationRef = OIDUtils.OIDtoAssocRef(parameters.getObjectId()); + + if (associationRef != null) + { + if (exists(associationRef) == false) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Object not found"); + throw new ObjectNotFoundException("Object not found", basicFault); + } + + setRelationshipObjectTypeProperties(associationRef, response.getObject(), propertyFilter); + } + else + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Invalid object ID"); + throw new InvalidArgumentException("Invalid object ID", basicFault); + } + } + + return response; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java new file mode 100644 index 0000000000..0d9e17615c --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java @@ -0,0 +1,203 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.util.List; + +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.StoreRef; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author Michael Shavnev + * @author Dmitry Lazurkin + */ + +@javax.jws.WebService(name = "RepositoryServicePort", serviceName = "RepositoryService", portName = "RepositoryServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.RepositoryServicePort") +public class DMRepositoryServicePort extends DMAbstractServicePort implements RepositoryServicePort +{ + private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + + private String rootPath; + private NodeRef rootNodeRef; + + public GetRootFolderResponse getRootFolder(GetRootFolder parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, + OperationNotSupportedException, PermissionDeniedException + { + PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + FolderObjectType folderObject = new FolderObjectType(); + + propertyFilter.disableProperty(CmisProperty.NAME); + propertyFilter.disableProperty(CmisProperty.PARENT); + setFolderObjectTypeProperties(getRootNodeRef(), folderObject, propertyFilter); + propertyFilter.enableProperty(CmisProperty.NAME); + propertyFilter.enableProperty(CmisProperty.PARENT); + + if (propertyFilter.allow(CmisProperty.NAME)) + { + folderObject.setName("CMIS_Root_Folder"); + } + + if (propertyFilter.allow(CmisProperty.PARENT)) + { + folderObject.setParent(OIDUtils.toOID(rootNodeRef)); + } + + GetRootFolderResponse response = new GetRootFolderResponse(); + response.setRootFolder(folderObject); + return response; + } + + private NodeRef getRootNodeRef() + { + if (rootNodeRef == null) + { + int indexOfStoreDelim = rootPath.indexOf(StoreRef.URI_FILLER); + + if (indexOfStoreDelim == -1) + { + throw new java.lang.RuntimeException("Bad path format, " + StoreRef.URI_FILLER + " not found"); + } + + indexOfStoreDelim += StoreRef.URI_FILLER.length(); + + int indexOfPathDelim = rootPath.indexOf("/", indexOfStoreDelim); + + if (indexOfPathDelim == -1) + { + throw new java.lang.RuntimeException("Bad path format, / not found"); + } + + String storePath = rootPath.substring(0, indexOfPathDelim); + String rootPathInStore = rootPath.substring(indexOfPathDelim); + + StoreRef storeRef = new StoreRef(storePath); + if (nodeService.exists(storeRef) == false) + { + throw new java.lang.RuntimeException("No store for path: " + storeRef); + } + + NodeRef storeRootNodeRef = nodeService.getRootNode(storeRef); + + if (rootPath.equals("/")) + { + rootNodeRef = storeRootNodeRef; + } + else + { + List nodeRefs = searchService.selectNodes(storeRootNodeRef, rootPathInStore, null, namespaceService, false); + + if (nodeRefs.size() > 1) + { + throw new java.lang.RuntimeException("Multiple possible roots for : \n" + " root path: " + rootPath + "\n" + " results: " + nodeRefs); + } + else if (nodeRefs.size() == 0) + { + throw new java.lang.RuntimeException("No root found for : \n" + " root path: " + rootPath); + } + else + { + rootNodeRef = nodeRefs.get(0); + } + } + } + + return rootNodeRef; + } + + public GetTypesResponse getTypes(GetTypes parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, + PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetTypesResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void getTypeDefinition(java.lang.String typeId, java.lang.Boolean includeInheritedProperties, javax.xml.ws.Holder type, + javax.xml.ws.Holder canCreateInstances) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, + OperationNotSupportedException, PermissionDeniedException + { + System.out.println(typeId); + System.out.println(includeInheritedProperties); + try + { + org.alfresco.repo.cmis.ws.ObjectTypeDefinitionType typeValue = null; + type.value = typeValue; + java.lang.Boolean canCreateInstancesValue = null; + canCreateInstances.value = canCreateInstancesValue; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public RepositoryInfoType getRepositoryInfo() throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, + PermissionDeniedException + { + try + { + org.alfresco.repo.cmis.ws.RepositoryInfoType _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void setRootPath(String rootPath) + { + this.rootPath = rootPath; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java new file mode 100644 index 0000000000..7ef9725758 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import org.alfresco.repo.security.permissions.AccessDeniedException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.aop.ThrowsAdvice; + +/** + * @author Dmitry Lazurkin + * + */ +public class DMServicePortThrowsAdvice implements ThrowsAdvice +{ + private static final Log log = LogFactory.getLog("org.alfresco.cmis.ws"); + + public void afterThrowing(AccessDeniedException e) throws PermissionDeniedException + { + if (log.isInfoEnabled()) + { + log.info(e); + } + + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Access denied"); + throw new PermissionDeniedException("Access denied", basicFault, e); + } + + public void afterThrowing(java.lang.RuntimeException e) throws RuntimeException + { + if (log.isErrorEnabled()) + { + log.error(e); + } + + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Runtime error"); + throw new RuntimeException("Runtime error", basicFault, e); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java b/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java new file mode 100644 index 0000000000..654ecb4db9 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; + +/** + * Utils for working with cmis exceptions + * + * @author Dmitry Lazurkin + * + */ +public class ExceptionUtils +{ + + /** + * Creates basic fault instance + * + * @param errorCode error code + * @param errorMessage error message + * @return basic fault instance + */ + public static BasicFault createBasicFault(BigInteger errorCode, String errorMessage) + { + BasicFault basicFault = new BasicFault(); + + basicFault.setErrorCode(errorCode); + basicFault.setErrorMessage(errorMessage); + + return basicFault; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/OIDType.java b/source/java/org/alfresco/repo/cmis/ws/OIDType.java new file mode 100644 index 0000000000..174354148e --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/OIDType.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +/** + * OID types enumeration + * + * @author Dmitry Lazurkin + * + */ +public enum OIDType +{ + DOCUMENT_FOLDER, + RELATIONSHIP; + + public static OIDType getOIDType(String oid) + { + try + { + return OIDType.values()[Integer.parseInt(oid.substring(0, 1))]; + } + catch (Exception e) + { + // expected if OID string is bad + } + + return null; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/OIDUtils.java b/source/java/org/alfresco/repo/cmis/ws/OIDUtils.java new file mode 100644 index 0000000000..b3d397ab7d --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/OIDUtils.java @@ -0,0 +1,111 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.NodeRef; + +/** + * @author Dmitry Lazurkin + * + */ +public class OIDUtils +{ + + /** + * Returns OID for node reference + * + * @param nodeRef node reference + * @return OID + */ + public static String toOID(NodeRef nodeRef) + { + return OIDType.DOCUMENT_FOLDER.ordinal() + nodeRef.toString(); + } + + /** + * Returns OID for association reference + * + * @param assocRef association reference + * @return OID + */ + public static String toOID(AssociationRef assocRef) + { + return OIDType.RELATIONSHIP.ordinal() + assocRef.toString(); + } + + /** + * Returns node reference for OID + * + * @param oid OID + * @return node reference + */ + public static NodeRef OIDtoNodeRef(String oid) + { + NodeRef nodeRef = null; + + OIDType oidType = OIDType.getOIDType(oid); + if (oidType != null && oidType.equals(OIDType.DOCUMENT_FOLDER)) + { + try + { + nodeRef = new NodeRef(oid.substring(1)); + } + catch (Exception e) + { + // expected if OID string is bad + } + } + + return nodeRef; + } + + /** + * Returns association reference for OID + * + * @param oid OID + * @return association reference + */ + public static AssociationRef OIDtoAssocRef(String oid) + { + AssociationRef assocRef = null; + + OIDType oidType = OIDType.getOIDType(oid); + if (oidType != null && oidType.equals(OIDType.RELATIONSHIP)) + { + try + { + assocRef = new AssociationRef(oid.substring(1)); + } + catch (Exception e) + { + // expected if oid string is bad + } + } + + return assocRef; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java b/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java new file mode 100644 index 0000000000..f389b4a6e2 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java @@ -0,0 +1,97 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.util.Arrays; +import java.util.EnumSet; +import java.util.HashSet; +import java.util.Set; +import java.util.regex.Pattern; + +/** + * Property filter class + * + * @author Dmitry Lazurkin + * + */ +public class PropertyFilter +{ + private static final Pattern PROPERTY_FILTER_REGEX = Pattern.compile("^(\\*)|([\\p{Upper}\\p{Digit}_]+(,[\\p{Upper}\\p{Digit}_]+)*)$"); + + private Set properties; + private EnumSet disabledProperties = EnumSet.noneOf(CmisProperty.class); + + /** + * Constructor + * + * @param filter filter string + * @throws FilterNotValidException if filter string isn't valid + */ + public PropertyFilter(String filter) throws FilterNotValidException + { + if (filter != null && filter.equals("") == false) + { + if (PROPERTY_FILTER_REGEX.matcher(filter).matches() == false) + { + throw new FilterNotValidException(filter, ExceptionUtils.createBasicFault(null, "Filter isn't valid")); + } + + if (filter.equals("*") == false) + { + properties = new HashSet(Arrays.asList(filter.split(","))); + } + } + } + + /** + * @param property property + * @return if property is allow by filter then returns true else false + */ + public boolean allow(CmisProperty property) + { + return disabledProperties.contains(property) == false && (properties == null || properties.contains(property.name())); + } + + /** + * Disables property + * + * @param property property + */ + public void disableProperty(CmisProperty property) + { + disabledProperties.add(property); + } + + /** + * Enables property + * + * @param property property + */ + public void enableProperty(CmisProperty property) + { + disabledProperties.remove(property); + } + +} diff --git a/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java b/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java index 50a27b6039..5330c8ad6c 100644 --- a/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java +++ b/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java @@ -27,6 +27,7 @@ package org.alfresco.repo.web.scripts.content; import java.io.IOException; import java.text.MessageFormat; import java.util.Arrays; +import java.util.Map; import javax.servlet.http.HttpServletResponse; @@ -87,10 +88,12 @@ public class ContentGet extends StreamContent // convert web script URL to node reference in Repository String match = req.getServiceMatch().getPath(); String[] matchParts = match.split("/"); - String extensionPath = req.getExtensionPath(); - String[] extParts = extensionPath == null ? new String[1] : extensionPath.split("/"); - String[] path = new String[extParts.length -1]; - System.arraycopy(extParts, 1, path, 0, extParts.length -1); + Map templateVars = req.getServiceMatch().getTemplateVars(); + String[] id = templateVars.get("id").split("/"); + String[] path = new String[id.length + 2]; + path[0] = templateVars.get("store_type"); + path[1] = templateVars.get("store_id"); + System.arraycopy(id, 0, path, 2, id.length); NodeRef nodeRef = repository.findNodeRef(matchParts[2], path); if (nodeRef == null) { @@ -99,7 +102,7 @@ public class ContentGet extends StreamContent // determine content property QName propertyQName = ContentModel.PROP_CONTENT; - String contentPart = extParts[0]; + String contentPart = templateVars.get("property"); if (contentPart.length() > 0 && contentPart.charAt(0) == ';') { if (contentPart.length() < 2) diff --git a/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java b/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java index e58c2623d7..22b2b53295 100644 --- a/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java +++ b/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java @@ -423,7 +423,6 @@ public class StreamContent extends AbstractWebScript reader.setEncoding("UTF-8"); streamContentImpl(req, res, reader, attach, this.resouceFileModifiedDate); - } /** @@ -439,7 +438,6 @@ public class StreamContent extends AbstractWebScript protected void streamContentImpl(WebScriptRequest req, WebScriptResponse res, ContentReader reader, boolean attach, Date modified) throws IOException { - HttpServletRequest httpReq = ((WebScriptServletRequest)req).getHttpServletRequest(); HttpServletResponse httpRes = ((WebScriptServletResponse)res).getHttpServletResponse(); diff --git a/source/test-resources/import-for-cmis-ws-test.acp b/source/test-resources/import-for-cmis-ws-test.acp new file mode 100644 index 0000000000..fef83b5125 Binary files /dev/null and b/source/test-resources/import-for-cmis-ws-test.acp differ diff --git a/source/test-resources/test-cmis-context.xml b/source/test-resources/test-cmis-context.xml new file mode 100644 index 0000000000..2aeb1bddfc --- /dev/null +++ b/source/test-resources/test-cmis-context.xml @@ -0,0 +1,96 @@ + + + + + + + + org.alfresco.repo.cmis.ws.RepositoryServicePort + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.NavigationServicePort + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.ObjectServicePort + + + + + + + + + + + + + + + + + + + + ${server.transaction.mode.readOnly} + ${server.transaction.mode.default} + + + + + + + workspace://CmisTestWorkspace/alf:root_folder + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/test/apptest/results.html b/source/test/apptest/results.html index d8ed6e260e..6958f775ad 100644 --- a/source/test/apptest/results.html +++ b/source/test/apptest/results.html @@ -13,7 +13,7 @@

Test Report

Date
-
Mon May 12 15:38:50 2008
+
Thu May 22 13:30:14 2008

Legend

@@ -48,27 +48,34 @@ transfer-encoding: chunked server: Apache-Coyote/1.1 pragma: no-cache cache-control: no-cache -date: Mon, 12 May 2008 14:38:47 GMT +date: Thu, 22 May 2008 12:30:05 GMT content-type: application/atom+xml;charset=UTF-8 -
<?xml version="1.0" ?><service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
-  <workspace cmis:id="63dbba8b-1224-11dd-bee8-852083ea779d"> 
+
<?xml version="1.0" ?><service xmlns="http://www.w3.org/2007/app" xmlns:alf="http://www.alfresco.org" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
+  <workspace cmis:id="62dad05d-27f9-11dd-a94d-bf697311154a"> 
     <atom:title>Main Repository</atom:title>
-     
-    <cmis:repository_info> 
+
+
+    <cmis:repositoryInfo> 
+      <cmis:repositoryId>62dad05d-27f9-11dd-a94d-bf697311154a</cmis:repositoryId>
+      <cmis:repositoryName>Main Repository</cmis:repositoryName>
+      <cmis:repositoryDescription/>         
       <cmis:vendorName>Alfresco</cmis:vendorName> 
       <cmis:productName>Alfresco Repository (Community Network)</cmis:productName>
       <cmis:productVersion>3.0.0 (dev @build-number@)</cmis:productVersion> 
       <cmis:capabilities>
         <cmis:capabilityMultifiling>true</cmis:capabilityMultifiling>
+        <cmis:capabilityUnfiling>false</cmis:capabilityUnfiling>
+        <cmis:capabilityVersionSpecificFiling>false</cmis:capabilityVersionSpecificFiling>        
         <cmis:capabilityAllVersionsSearchable>false</cmis:capabilityAllVersionsSearchable>
         <cmis:capabilityPWCUpdatable>true</cmis:capabilityPWCUpdatable>
+        <cmis:capabilityInnerJoin>true</cmis:capabilityInnerJoin>
+        <cmis:capabilityOuterJoin>true</cmis:capabilityOuterJoin>
       </cmis:capabilities> 
-      <cmis:description/>
-      <cmis:repositoryInfo/>
-    </cmis:repository_info>
+      <cmis:repositorySpecificInfo/>
+    </cmis:repositoryInfo>
 
      
     <collection cmis:collectionType="root" href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children"> 
@@ -86,7 +93,8 @@ content-type: application/atom+xml;charset=UTF-8
 </service>
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • -
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org
  • line 4, column 4: atom_title should contain a xml:lang element (4 occurrences)
  • Basic Entry Manipulation

    Add and remove three entries to the collection

    @@ -107,110 +115,196 @@ transfer-encoding: chunked server: Apache-Coyote/1.1 pragma: no-cache cache-control: no-cache -date: Mon, 12 May 2008 14:38:50 GMT +date: Thu, 22 May 2008 12:30:09 GMT content-type: application/atom+xml;type=feed;charset=UTF-8
    -
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    -  <generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    -  <title>Company Home</title> 
    -  <updated>2008-04-24T18:33:35.511+01:00</updated>
    -  <icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    -  <author> 
    -    <name>System</name>
    -  </author> 
    -  <id>urn:uuid:6413e19d-1224-11dd-bee8-852083ea779d</id>
    -  <link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    -
    -  <link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?skipCount=0&amp;guest=" rel="first" type="application/atom+xml;type=feed"/>
    -  
    -  <entry>
    -    <title>Data Dictionary</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/642ce7e4-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:642ce7e4-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:35.708+01:00</updated>
    -    <published>2008-04-24T18:32:20.013+01:00</published>
    -    <summary>User managed definitions</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/642ce7e4-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>Guest Home</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/648715e5-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:648715e5-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:36.941+01:00</updated>
    -    <published>2008-04-24T18:32:20.608+01:00</published>
    -    <summary>The guest root space</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/648715e5-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>User Homes</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/64963118-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:64963118-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:37.110+01:00</updated>
    -    <published>2008-04-24T18:32:20.699+01:00</published>
    -    <summary>User Homes</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/64963118-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>Projects</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/90df9f8b-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:90df9f8b-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:47.401+01:00</updated>
    -    <published>2008-04-24T18:33:35.091+01:00</published>
    -    <summary>Project Collaboration Spaces</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/90df9f8b-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>Web Projects</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/a3beb60b-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:a3beb60b-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:34:06.711+01:00</updated>
    -    <published>2008-04-24T18:34:06.649+01:00</published>
    -    <summary>Web Content Management Spaces</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/a3beb60b-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>5</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
     </feed>
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • -
  • [RFC4287] line 18, column 4: Undefined entry element: icon (5 occurrences)
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 line 2, column 0: Use of unknown namespace: http://www.alfresco.org -line 11, column 145: "self" link references a non-Atom representation
  • -
  • line 4, column 2: title should contain a xml:lang element (6 occurrences) -line 22, column 4: summary should contain a xml:lang element (5 occurrences)
  • +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (30 occurrences) +
  • line 4, column 0: title should contain a xml:lang element (6 occurrences) +line 23, column 0: summary should contain a xml:lang element (5 occurrences)
  • Create new entry #1
  • Request
    
     POST http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
     content-type: application/atom+xml
    -slug: ddabfdegge
    +slug: bihjefehka
     
     
     
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
     <title>Iñtërnâtiônàlizætiøn - 1</title>
    -<id>tag:bitworking.org,2008-02-26:1210603130.5665419</id>
    +<id>tag:bitworking.org,2008-02-26:1211459409.3166161</id>
     <updated>2005-07-10T12:29:29Z</updated>
     <author>
     <name>Joe Gregorio</name>
    @@ -223,12 +317,720 @@ slug: ddabfdegge
     </entry>
  • Response
    
     
    +status: 201
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:09 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.705+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • [RFC5023] Section 9.2 Content-Location: not returned in response headers.
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:09 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • Create new entry #2
  • +
  • Request
    
    +POST http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +content-type: application/atom+xml
    +slug: ljlbjjhija
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
    +<title>Iñtërnâtiônàlizætiøn - 2</title>
    +<id>tag:bitworking.org,2008-02-26:1211459411.1896939</id>
    +<updated>2005-07-10T12:29:29Z</updated>
    +<author>
    +<name>Joe Gregorio</name>
    +</author>
    +<content type="xhtml">
    +<div xmlns="http://www.w3.org/1999/xhtml">
    +<p><i>A test of utf-8</i></p>
    +</div>
    +</content>
    +</entry>
  • +
  • Response
    
    +
    +status: 201
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:11 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.278+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • [RFC5023] Section 9.2 Content-Location: not returned in response headers.
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:11 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • Create new entry #3
  • +
  • Request
    
    +POST http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +content-type: application/atom+xml
    +slug: kkaejcfjdk
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
    +<title>Iñtërnâtiônàlizætiøn - 3</title>
    +<id>tag:bitworking.org,2008-02-26:1211459412.675024</id>
    +<updated>2005-07-10T12:29:29Z</updated>
    +<author>
    +<name>Joe Gregorio</name>
    +</author>
    +<content type="xhtml">
    +<div xmlns="http://www.w3.org/1999/xhtml">
    +<p><i>A test of utf-8</i></p>
    +</div>
    +</content>
    +</entry>
  • +
  • Response
    
    +
    +status: 201
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.757+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • [RFC5023] Section 9.2 Content-Location: not returned in response headers.
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=feed;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>8</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +</feed>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (48 occurrences) +line 172, column 9: summary should not be blank (3 occurrences)
  • +
  • line 4, column 0: title should contain a xml:lang element (9 occurrences) +line 23, column 0: summary should contain a xml:lang element (8 occurrences)
  • +
  • Check order of entries in the collection document
  • +
  • [RFC5023] Section 10 Failed to preserve order of entries, was expecting urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1, but found urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1
  • +
  • Slug was honored
  • +
  • [RFC5023] Section 9.1 Member Entry did not contain an atom:link element with a relation of 'edit'
  • +
  • Update entry #2 and write back to the collection
  • +
  • Request
    
    +PUT http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
     status: 405
     transfer-encoding: chunked
     server: Apache-Coyote/1.1
     pragma: no-cache
     cache-control: no-cache
    -date: Mon, 12 May 2008 14:38:50 GMT
    +date: Thu, 22 May 2008 12:30:12 GMT
     content-type: text/html;charset=UTF-8
     
     
    @@ -248,15 +1050,15 @@ content-type: text/html;charset=UTF-8
           </table>
           <br/>
           <table>
    -         <tr><td>The Web Script <a href="/alfresco/service/api/path/workspace/SpacesStore//children">/alfresco/service/api/path/workspace/SpacesStore//children</a> has responded with a status of 405 - Method Not Allowed.</td></tr>
    +         <tr><td>The Web Script <a href="/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties">/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties</a> has responded with a status of 405 - Method Not Allowed.</td></tr>
           </table>
           <br/>
           <table>
              <tr><td><b>405 Description:</b></td><td> The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.</td></tr>
              <tr><td>&nbsp;</td></tr>
    -         <tr><td><b>Message:</b></td><td>Script url /api/path/workspace/SpacesStore//children does not support the method POST</td></tr>
    +         <tr><td><b>Message:</b></td><td>Script url /api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties does not support the method PUT</td></tr>
              <tr><td></td><td>&nbsp;</td></tr>
    -   <tr><td><b>Exception:</b></td><td>org.alfresco.web.scripts.WebScriptException - Script url /api/path/workspace/SpacesStore//children does not support the method POST</td></tr>
    +   <tr><td><b>Exception:</b></td><td>org.alfresco.web.scripts.WebScriptException - Script url /api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties does not support the method PUT</td></tr>
        <tr><td></td><td>&nbsp;</td></tr>
              <tr><td></td><td>org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:113)</td></tr>
              <tr><td></td><td>org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)</td></tr>
    @@ -280,14 +1082,633 @@ content-type: text/html;charset=UTF-8
              <tr><td></td><td>java.lang.Thread.run(Thread.java:613)</td></tr>
        <tr><td></td><td>&nbsp;</td></tr>
              <tr><td><b>Server</b>:</td><td>Alfresco Community Network v3.0.0 (dev @build-number@) schema 124</td></tr>
    -         <tr><td><b>Time</b>:</td><td>May 12, 2008 3:38:50 PM</td></tr>
    +         <tr><td><b>Time</b>:</td><td>May 22, 2008 1:30:13 PM</td></tr>
              <tr><td></td><td>&nbsp;</td></tr>
           </table>
        </body>
     </html>
     
     
  • -
  • [RFC5023] Section 9.2 Entry creation failed with status: 405 Method Not Allowed
  • +
  • [RFC2616] Section 9.6 Failed to accept updated Entry #2
  • +
  • Check order of entries in the collection document
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=feed;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>8</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +</feed>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (48 occurrences) +line 172, column 9: summary should not be blank (3 occurrences)
  • +
  • line 4, column 0: title should contain a xml:lang element (9 occurrences) +line 23, column 0: summary should contain a xml:lang element (8 occurrences)
  • +
  • [RFC5023] Section 10 Failed to preserve order of entries, was expecting urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1, but found urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:13 GMT
    +content-type: application/atom+xml;type=feed;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>8</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +</feed>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (48 occurrences) +line 172, column 9: summary should not be blank (3 occurrences)
  • +
  • line 4, column 0: title should contain a xml:lang element (9 occurrences) +line 23, column 0: summary should contain a xml:lang element (8 occurrences)
  • +
  • Internal error occured while running tests: coercing to Unicode: need string or buffer, NoneType foundTraceback (most recent call last): + File "validator/appclienttest.py", line 420, in run + test_member_function() + File "validator/appclienttest.py", line 590, in testBasic_Entry_Manipulation + remove_entries_by_id(self.collection.iter(), ids) + File "validator/appclienttest.py", line 516, in remove_entries_by_id + idelement = e.etree().find("{%s}id" % atompubbase.model.ATOM) + File "/Users/dcaruana/Dev/projects/seamist/code/root/projects/remote-api/source/test/apptest/validator/atompubbase/model.py", line 453, in etree + self.get() + File "/Users/dcaruana/Dev/projects/seamist/code/root/projects/remote-api/source/test/apptest/validator/atompubbase/events.py", line 131, in wrapped + events.trigger("PRE", methodname, self, headers, body) + File "/Users/dcaruana/Dev/projects/seamist/code/root/projects/remote-api/source/test/apptest/validator/atompubbase/events.py", line 113, in trigger + cb(headers, body, method_filter) + File "validator/appclienttest.py", line 346, in log_request_response + request_line = method + u" " + uri +TypeError: coercing to Unicode: need string or buffer, NoneType found +
  • Didn't find any Media Collections that would accept GIF images
  • diff --git a/source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java new file mode 100644 index 0000000000..f73bdc97d2 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java @@ -0,0 +1,105 @@ +package org.alfresco.repo.cmis.ws; + + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import junit.framework.TestCase; + +import org.alfresco.repo.security.authentication.AuthenticationComponent; +import org.alfresco.service.ServiceRegistry; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.StoreRef; +import org.alfresco.service.cmr.search.ResultSet; +import org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor; +import org.apache.cxf.endpoint.Client; +import org.apache.cxf.frontend.ClientProxy; +import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor; +import org.apache.ws.security.WSConstants; +import org.apache.ws.security.WSPasswordCallback; +import org.apache.ws.security.handler.WSHandlerConstants; +import org.springframework.context.support.FileSystemXmlApplicationContext; + +/** + * @author Michael Shavnev + */ +public abstract class AbstractServiceTest extends TestCase +{ + protected ServiceRegistry serviceRegistry; + protected static NodeRef ALFRESCO_TUTORIAL_NODE_REF = null; + protected static NodeRef COMPANY_HOME_NODE_REF = null; + + protected static FileSystemXmlApplicationContext fContext = null; + + protected Object servicePort = null; + + @Override + protected void setUp() throws Exception + { + super.setUp(); + if (fContext == null) + { + fContext = new FileSystemXmlApplicationContext("classpath:alfresco/application-context.xml"); + + AuthenticationComponent authenticationComponent = (AuthenticationComponent) fContext.getBean("authenticationComponent"); + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + serviceRegistry = (ServiceRegistry) fContext.getBean(ServiceRegistry.SERVICE_REGISTRY); + ResultSet resultSet = serviceRegistry.getSearchService().query(new StoreRef("workspace://SpacesStore"), "lucene", "@cm\\:name:Alfresco-Tutorial.pdf"); + ALFRESCO_TUTORIAL_NODE_REF = resultSet.getNodeRef(0); + + resultSet = serviceRegistry.getSearchService().query(new StoreRef("workspace://SpacesStore"), "lucene", "@cm\\:name:Company Home"); + COMPANY_HOME_NODE_REF = resultSet.getNodeRef(0); + + authenticationComponent.clearCurrentSecurityContext(); + } + } + + + public AbstractServiceTest() + { + + servicePort = getServicePort(); + + Map wss4jOutInterceptorProp = new HashMap(); + wss4jOutInterceptorProp.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN + " " + WSHandlerConstants.TIMESTAMP); + + wss4jOutInterceptorProp.put(WSHandlerConstants.USER, getUserName()); + // outProps.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT); + wss4jOutInterceptorProp.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST); + + wss4jOutInterceptorProp.put(WSHandlerConstants.PW_CALLBACK_REF, new CallbackHandler() + { + public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException + { + WSPasswordCallback pc = (WSPasswordCallback) callbacks[0]; + pc.setPassword(getPassword()); + } + }); + + WSS4JOutInterceptor wss4jOutInterceptor = new WSS4JOutInterceptor(wss4jOutInterceptorProp); + + Client client = ClientProxy.getClient(servicePort); + client.getEndpoint().getOutInterceptors().add(new SAAJOutInterceptor()); + client.getEndpoint().getOutInterceptors().add(wss4jOutInterceptor); + } + + protected abstract Object getServicePort(); + + protected String getUserName() + { + return "admin"; + } + + protected String getPassword() + { + return "admin"; + } + + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java new file mode 100644 index 0000000000..9718534588 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java @@ -0,0 +1,144 @@ +package org.alfresco.repo.cmis.ws; + + +import java.io.InputStream; +import java.io.Serializable; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.action.executer.ImporterActionExecuter; +import org.alfresco.repo.content.MimetypeMap; +import org.alfresco.repo.version.VersionModel; +import org.alfresco.service.cmr.action.Action; +import org.alfresco.service.cmr.action.ActionService; +import org.alfresco.service.cmr.coci.CheckOutCheckInService; +import org.alfresco.service.cmr.model.FileFolderService; +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ContentService; +import org.alfresco.service.cmr.repository.ContentWriter; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.version.Version; +import org.alfresco.service.cmr.version.VersionService; +import org.alfresco.service.cmr.version.VersionType; +import org.alfresco.service.namespace.NamespaceService; +import org.alfresco.service.namespace.QName; + +/** + * Base class for all CMIS content tests + * + * @author Dmitry Lazurkin + * + */ +public class BaseServicePortContentTest extends BaseServicePortTest +{ + protected CheckOutCheckInService checkOutCheckInService; + + private static final String IMPORT = "import-for-cmis-ws-test.acp"; + + protected static final String L0_FILE_0 = "L0-File-0"; + protected static final String L0_FILE_1 = "L0-File-1"; + protected static final String L0_FILE_2 = "L0-File-2"; + protected static final String L1_FILE_0 = "L1-File-0"; + protected static final String L1_FILE_1 = "L1-File-1"; + protected static final String L1_FILE_VERSIONABLE = "L1-File-Versionable"; + protected static final String L0_FOLDER_0 = "L0-Folder-0"; + protected static final String L0_FOLDER_1 = "L0-Folder-1"; + protected static final String L0_FOLDER_2 = "L0-Folder-2"; + protected static final String L1_FOLDER_0 = "L1-Folder-0"; + protected static final String L1_FOLDER_1 = "L1-Folder-1"; + + protected NodeRef L0_FILE_0_NODEREF; + protected NodeRef L0_FILE_1_NODEREF; + protected NodeRef L0_FILE_2_NODEREF; + protected NodeRef L1_FILE_0_NODEREF; + protected NodeRef L1_FILE_1_NODEREF; + protected NodeRef L0_FOLDER_0_NODEREF; + protected NodeRef L0_FOLDER_1_NODEREF; + protected NodeRef L0_FOLDER_2_NODEREF; + protected NodeRef L1_FOLDER_0_NODEREF; + protected NodeRef L1_FOLDER_1_NODEREF; + protected NodeRef L0_NONEXISTENT_NODEREF; + + protected NodeRef L1_FILE_VERSION_2_1_NODEREF; + protected NodeRef L1_FILE_VERSION_2_0_NODEREF; + protected NodeRef L1_FILE_VERSION_1_0_NODEREF; + + protected AssociationRef L0_FILE_1_TO_L0_FILE_0_ASSOCREF; + protected AssociationRef NONEXISTENT_ASSOCREF; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + checkOutCheckInService = serviceRegistry.getCheckOutCheckInService(); + + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + InputStream is = getClass().getClassLoader().getResourceAsStream(IMPORT); + if (is == null) + { + throw new NullPointerException("Test resource not found: " + IMPORT); + } + + NodeRef importForTest = nodeService.createNode(rootNodeRef, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "import-for-test.acp"), ContentModel.TYPE_CONTENT).getChildRef(); + ContentService contentService = serviceRegistry.getContentService(); + ContentWriter writer = contentService.getWriter(importForTest, ContentModel.PROP_CONTENT, true); + writer.setMimetype(MimetypeMap.MIMETYPE_ACP); + writer.setEncoding("UTF-8"); + writer.putContent(is); + + Map params = new HashMap(2, 1.0f); + params.put(ImporterActionExecuter.PARAM_DESTINATION_FOLDER, rootNodeRef); + params.put(ImporterActionExecuter.PARAM_ENCODING, "UTF-8"); + + ActionService actionService = serviceRegistry.getActionService(); + Action action = actionService.createAction(ImporterActionExecuter.NAME, params); + action.setExecuteAsynchronously(false); + + actionService.executeAction(action, importForTest); + + nodeService.deleteNode(importForTest); + + FileFolderService fileFolderService = serviceRegistry.getFileFolderService(); + VersionService versionService = serviceRegistry.getVersionService(); + + L0_FILE_0_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FILE_0)).getNodeRef(); + L0_FILE_1_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FILE_1)).getNodeRef(); + L0_FILE_2_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FILE_2)).getNodeRef(); + L0_FOLDER_0_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FOLDER_0)).getNodeRef(); + L0_FOLDER_1_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FOLDER_1)).getNodeRef(); + L0_FOLDER_2_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FOLDER_2)).getNodeRef(); + L1_FILE_0_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_0_NODEREF, Collections.singletonList(L1_FILE_0)).getNodeRef(); + L1_FILE_1_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_1_NODEREF, Collections.singletonList(L1_FILE_1)).getNodeRef(); + + L1_FILE_VERSION_2_1_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_2_NODEREF, Collections.singletonList(L1_FILE_VERSIONABLE)).getNodeRef(); + nodeService.addAspect(L1_FILE_VERSION_2_1_NODEREF, ContentModel.ASPECT_VERSIONABLE, Collections.singletonMap(ContentModel.PROP_AUTO_VERSION, (Serializable) Boolean.FALSE)); + contentService.getWriter(L1_FILE_VERSION_2_1_NODEREF, ContentModel.PROP_CONTENT, true).putContent("1.0"); + L1_FILE_VERSION_1_0_NODEREF = versionService.createVersion(L1_FILE_VERSION_2_1_NODEREF, createVersionProps("1.0", VersionType.MAJOR)).getFrozenStateNodeRef(); + contentService.getWriter(L1_FILE_VERSION_2_1_NODEREF, ContentModel.PROP_CONTENT, true).putContent("2.0"); + L1_FILE_VERSION_2_0_NODEREF = versionService.createVersion(L1_FILE_VERSION_2_1_NODEREF, createVersionProps("2.0", VersionType.MAJOR)).getFrozenStateNodeRef(); + contentService.getWriter(L1_FILE_VERSION_2_1_NODEREF, ContentModel.PROP_CONTENT, true).putContent("2.1"); + versionService.createVersion(L1_FILE_VERSION_2_1_NODEREF, createVersionProps("2.1", VersionType.MINOR)); + + L1_FOLDER_0_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_0_NODEREF, Collections.singletonList(L1_FOLDER_0)).getNodeRef(); + L1_FOLDER_1_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_0_NODEREF, Collections.singletonList(L1_FOLDER_1)).getNodeRef(); + L0_NONEXISTENT_NODEREF = importForTest; + + L0_FILE_1_TO_L0_FILE_0_ASSOCREF = nodeService.createAssociation(L0_FILE_1_NODEREF, L0_FILE_0_NODEREF, ContentModel.ASSOC_REFERENCES); + NONEXISTENT_ASSOCREF = new AssociationRef(L1_FILE_0_NODEREF, ContentModel.ASSOC_REFERENCES, L1_FILE_1_NODEREF); + + authenticationComponent.clearCurrentSecurityContext(); + } + + private Map createVersionProps(String comment, VersionType versionType) + { + Map props = new HashMap(1, 1.0f); + props.put(Version.PROP_DESCRIPTION, comment); + props.put(VersionModel.PROP_VERSION_TYPE, versionType); + return props; + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java new file mode 100644 index 0000000000..916e40f884 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java @@ -0,0 +1,102 @@ +package org.alfresco.repo.cmis.ws; + + +import javax.transaction.UserTransaction; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.node.integrity.IntegrityChecker; +import org.alfresco.repo.security.authentication.AuthenticationComponent; +import org.alfresco.service.ServiceRegistry; +import org.alfresco.service.cmr.dictionary.DictionaryService; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.NodeService; +import org.alfresco.service.cmr.repository.StoreRef; +import org.alfresco.service.cmr.security.AuthenticationService; +import org.alfresco.service.namespace.NamespaceService; +import org.alfresco.service.namespace.QName; +import org.alfresco.service.transaction.TransactionService; +import org.springframework.test.AbstractDependencyInjectionSpringContextTests; + +/** + * Base class for all CMIS tests + * + * @author Dmitry Lazurkin + * + */ +public class BaseServicePortTest extends AbstractDependencyInjectionSpringContextTests +{ + protected AuthenticationService authenticationService; + protected TransactionService transactionService; + protected NodeService nodeService; + protected ServiceRegistry serviceRegistry; + protected DictionaryService dictionaryService; + + protected AuthenticationComponent authenticationComponent; + + private UserTransaction txn; + + protected NodeRef rootNodeRef; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + serviceRegistry = (ServiceRegistry) applicationContext.getBean(ServiceRegistry.SERVICE_REGISTRY); + + authenticationService = serviceRegistry.getAuthenticationService(); + transactionService = serviceRegistry.getTransactionService(); + nodeService = serviceRegistry.getNodeService(); + dictionaryService = serviceRegistry.getDictionaryService(); + + authenticationComponent = (AuthenticationComponent) applicationContext.getBean("authenticationComponent"); + + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + // start the transaction + txn = transactionService.getUserTransaction(); + txn.begin(); + + IntegrityChecker.setWarnInTransaction(); + + // authenticate + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + // create a test store if need + StoreRef storeRef = new StoreRef("workspace://CmisTestWorkspace"); + if (nodeService.exists(storeRef) == false) + { + storeRef = nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "CmisTestWorkspace"); + } + NodeRef storeRootNodeRef = nodeService.getRootNode(storeRef); + + rootNodeRef = new NodeRef(storeRef, "alf:root_folder"); + if (nodeService.exists(rootNodeRef) == false) + { + rootNodeRef = nodeService.createNode(storeRootNodeRef, ContentModel.ASSOC_CHILDREN, QName.createQName(NamespaceService.ALFRESCO_URI, "root_folder"), + ContentModel.TYPE_FOLDER).getChildRef(); + } + + authenticationComponent.clearCurrentSecurityContext(); + } + + @Override + protected void onTearDown() throws Exception + { + try + { + txn.rollback(); + } + catch (Throwable e) + { + e.printStackTrace(); + } + } + + @Override + protected String[] getConfigLocations() + { + return new String[] { "classpath:alfresco/application-context.xml", "classpath:test-cmis-context.xml" }; + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java new file mode 100644 index 0000000000..e696f4dedd --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java @@ -0,0 +1,251 @@ +package org.alfresco.repo.cmis.ws; + + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.cmis.ws.OIDUtils; +import org.alfresco.service.cmr.repository.NodeRef; + +/** + * @see org.alfresco.cmis.ws.NavigationServicePortDM + * + * @author Dmitry Lazurkin + * + */ +public class DMNavigationServicePortTest extends BaseServicePortContentTest +{ + private NavigationServicePort navigationServicePort; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + navigationServicePort = (NavigationServicePort) applicationContext.getBean("dmNavigationService"); + } + + public void testGetChildrenFolders() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF }; + checkListExact(listing, 0, 3, expectedNodeRefs); + } + + public void testGetChildrenDocuments() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.DOCUMENTS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkListExact(listing, 3, 0, expectedNodeRefs); + } + + public void testGetChildrenSkipCount() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setSkipCount(BigInteger.valueOf(1)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 5, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItems() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setMaxItems(BigInteger.valueOf(3)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 3, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItemsMore() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setMaxItems(BigInteger.valueOf(10)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 6, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenSkipCountMore() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setSkipCount(BigInteger.valueOf(10)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 0, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItemsSkipCount() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setSkipCount(BigInteger.valueOf(5)); + request.setMaxItems(BigInteger.valueOf(4)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 1, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItemsZero() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setMaxItems(BigInteger.valueOf(0)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkListExact(listing, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenForDocument() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(L0_FILE_0_NODEREF)); + request.setType(TypesOfObjectsEnum.FOLDERS); + + try + { + navigationServicePort.getChildren(request); + } + catch (FolderNotValidException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetChildrenForRelationship() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF)); + request.setType(TypesOfObjectsEnum.FOLDERS); + + try + { + navigationServicePort.getChildren(request); + } + catch (FolderNotValidException e) + { + return; + } + + fail("Expects exception"); + } + + private void checkListExact(List objects, int expectedFileCount, int expectedFolderCount, NodeRef[] expectedNodeRefs) + { + int fileCount = 0; + int folderCount = 0; + List check = new ArrayList(8); + + for (NodeRef nodeRef : expectedNodeRefs) + { + check.add(nodeRef); + } + + for (DocumentOrFolderObjectType object : objects) + { + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(object.getObjectID()); + if (dictionaryService.isSubClass(nodeService.getType(nodeRef), ContentModel.TYPE_FOLDER)) + { + folderCount++; + } + else + { + fileCount++; + } + + assertTrue(check.remove(nodeRef)); + } + + assertTrue("Name list was not exact - remaining: " + check, check.size() == 0); + assertEquals("Incorrect number of files", expectedFileCount, fileCount); + assertEquals("Incorrect number of folders", expectedFolderCount, folderCount); + } + + private void checkList(List objects, int expectedCount, int expectedMaxFileCount, int expectedMaxFolderCount, NodeRef[] expectedNodeRefs) + { + int fileCount = 0; + int folderCount = 0; + List check = new ArrayList(8); + + for (NodeRef nodeRef : expectedNodeRefs) + { + check.add(nodeRef); + } + + for (DocumentOrFolderObjectType object : objects) + { + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(object.getObjectID()); + if (dictionaryService.isSubClass(nodeService.getType(nodeRef), ContentModel.TYPE_FOLDER)) + { + folderCount++; + } + else + { + fileCount++; + } + + assertTrue(check.remove(nodeRef)); + } + + assertTrue((fileCount + folderCount) == expectedCount); + assertTrue(fileCount <= expectedMaxFileCount); + assertTrue(folderCount <= expectedMaxFolderCount); + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java new file mode 100644 index 0000000000..3fd0669a4c --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java @@ -0,0 +1,231 @@ +package org.alfresco.repo.cmis.ws; + + +import java.math.BigInteger; + +import org.alfresco.repo.cmis.ws.OIDUtils; +import org.alfresco.service.cmr.repository.NodeRef; + +/** + * @see org.alfresco.cmis.ws.ObjectServicePortDM + * + * @author Dmitry Lazurkin + * + */ +public class DMObjectServicePortTest extends BaseServicePortContentTest +{ + private ObjectServicePort objectServicePort; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + objectServicePort = (ObjectServicePort) applicationContext.getBean("dmObjectService"); + } + + public void testGetExistentFolderProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_FOLDER_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(OIDUtils.toOID(rootNodeRef), response.getObject().getParent()); + assertEquals(L0_FOLDER_0, response.getObject().getName()); + } + + public void testGetExistentDocumentPropertiesThis() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L1_FILE_VERSION_1_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(response.getObject().getCheckinComment(), "1.0"); + assertEquals(response.getObject().isIsMajorVersion(), Boolean.TRUE); + assertEquals(response.getObject().isIsLatestMajorVersion(), Boolean.FALSE); + assertEquals(response.getObject().isIsLatestVersion(), Boolean.FALSE); + } + + public void testGetExistentDocumentPropertiesLatestMajor() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setReturnVersion(VersionEnum.LATEST_MAJOR); + request.setObjectId(OIDUtils.toOID(L1_FILE_VERSION_1_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(response.getObject().getCheckinComment(), "2.0"); + assertEquals(response.getObject().isIsMajorVersion(), Boolean.TRUE); + assertEquals(response.getObject().isIsLatestMajorVersion(), Boolean.TRUE); + assertEquals(response.getObject().isIsLatestVersion(), Boolean.FALSE); + } + + public void testGetExistentDocumentPropertiesLatest() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setReturnVersion(VersionEnum.LATEST); + request.setObjectId(OIDUtils.toOID(L1_FILE_VERSION_2_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(response.getObject().getCheckinComment(), "2.1"); + assertEquals(response.getObject().isIsMajorVersion(), Boolean.FALSE); + assertEquals(response.getObject().isIsLatestMajorVersion(), Boolean.FALSE); + assertEquals(response.getObject().isIsLatestVersion(), Boolean.TRUE); + } + + public void testGetExistentRelationshipProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF.getSourceRef()), response.getObject().getSourceOID()); + assertEquals(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF.getTargetRef()), response.getObject().getTargetOID()); + fail("Not implement"); + } + + public void testGetNonExistentObjectProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_NONEXISTENT_NODEREF)); + try + { + objectServicePort.getProperties(request); + } + catch (ObjectNotFoundException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetNonExistentRelationshipProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(NONEXISTENT_ASSOCREF)); + + try + { + objectServicePort.getProperties(request); + } + catch (ObjectNotFoundException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetPropertiesForInvalidOID() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId("invalid OID"); + + try + { + objectServicePort.getProperties(request); + } + catch (InvalidArgumentException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetPropertiesCheckedout() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + NodeRef workingCopyNodeRef = checkOutCheckInService.checkout(L0_FILE_0_NODEREF); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_FILE_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertNull(response.getObject().getCheckinComment()); + assertTrue(response.getObject().isIsMajorVersion()); + assertTrue(response.getObject().isIsLatestMajorVersion()); + assertTrue(response.getObject().isIsLatestVersion()); + assertTrue(response.getObject().isVersionSeriesIsCheckedOut()); + assertEquals(response.getObject().getVersionSeriesCheckedOutBy(), authenticationComponent.getSystemUserName()); + assertEquals(response.getObject().getVersionSeriesCheckedOutOID(), OIDUtils.toOID(workingCopyNodeRef)); + + request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(workingCopyNodeRef)); + + response = objectServicePort.getProperties(request); + assertNotNull(response); + assertNull(response.getObject().getCheckinComment()); + assertFalse(response.getObject().isIsMajorVersion()); + assertFalse(response.getObject().isIsLatestMajorVersion()); + assertFalse(response.getObject().isIsLatestVersion()); + assertTrue(response.getObject().isVersionSeriesIsCheckedOut()); + assertEquals(response.getObject().getVersionSeriesCheckedOutBy(), authenticationComponent.getSystemUserName()); + assertEquals(response.getObject().getVersionSeriesCheckedOutOID(), OIDUtils.toOID(workingCopyNodeRef)); + } + + public void testGetContentStream() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + String documentId = OIDUtils.toOID(L0_FILE_0_NODEREF); + for (int offset = 0; offset < 10; offset++) + { + for (int length = 0; length < 10; length++) + { + BigInteger offsetBig = new BigInteger(String.valueOf(offset)); + BigInteger lengthBig = new BigInteger(String.valueOf(length)); + + byte[] result = objectServicePort.getContentStream(documentId, offsetBig, lengthBig); + + assertNotNull(result); + if (result.length > length) + { + fail(); + } + } + + } + + byte[] result = objectServicePort.getContentStream(documentId, null, null); + assertNotNull(result); + + try + {result = objectServicePort.getContentStream("Invalid", null, null);} + catch (InvalidArgumentException e) {} + catch (Throwable e){fail();} + + try + {result = objectServicePort.getContentStream(documentId + "s", null, null);} + catch (ObjectNotFoundException e) {} + catch (Throwable e){fail();} + + try + {result = objectServicePort.getContentStream(OIDUtils.toOID(L0_FOLDER_0_NODEREF), null, null);} + catch (StreamNotSupportedException e) {} + catch (Throwable e){fail();} + + } +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java new file mode 100644 index 0000000000..53e32e2349 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java @@ -0,0 +1,104 @@ +package org.alfresco.repo.cmis.ws; + + +import java.math.BigInteger; +import java.net.MalformedURLException; +import java.net.URL; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; + +import org.alfresco.repo.cmis.ws.OIDUtils; + +public class DMObjectServiceTest extends AbstractServiceTest +{ + + public final static String SERVICE_WSDL_LOCATION = "http://localhost:8080/alfresco/cmis/ObjectService?wsdl"; + public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); + + protected Object getServicePort() + { + URL serviceWsdlURL; + try + { + serviceWsdlURL = new URL(SERVICE_WSDL_LOCATION); + } + catch (MalformedURLException e) + { + throw new java.lang.RuntimeException("Cannot get service Wsdl URL", e); + } + Service service = Service.create(serviceWsdlURL, SERVICE_NAME); + return service.getPort(ObjectServicePort.class); + } + + public void testGetDocumentProperties() throws Exception + { + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(ALFRESCO_TUTORIAL_NODE_REF)); + + GetPropertiesResponse response = ((ObjectServicePort) servicePort).getProperties(request); + assertNotNull(response); + } + + public void testGetPropertiesForInvalidOID() throws Exception + { + + GetProperties request = new GetProperties(); + request.setObjectId("invalid OID"); + + try + { + ((ObjectServicePort) servicePort).getProperties(request); + } + catch (InvalidArgumentException e) + { + return; + } + + fail("Expects exception"); + } + + + + public void testGetContentStream() throws Exception + { + String documentId = OIDUtils.toOID(ALFRESCO_TUTORIAL_NODE_REF); + + for (int offset = 0; offset < 10; offset++) + { + for (int length = 0; length < 10; length++) + { + BigInteger offsetBig = new BigInteger(String.valueOf(offset)); + BigInteger lengthBig = new BigInteger(String.valueOf(length)); + + byte[] result = ((ObjectServicePort) servicePort).getContentStream(documentId, offsetBig, lengthBig); + + assertNotNull(result); + if (result.length > length) + { + fail(); + } + } + + } + + byte[] result = ((ObjectServicePort) servicePort).getContentStream(documentId, null, BigInteger.valueOf(20)); + assertNotNull(result); + + try + {result = ((ObjectServicePort) servicePort).getContentStream("Invalid", null, null);} + catch (InvalidArgumentException e) {} + catch (Throwable e){fail();} + + try + {result = ((ObjectServicePort) servicePort).getContentStream(documentId + "s", null, null);} + catch (ObjectNotFoundException e) {} + catch (Throwable e){fail();} + + try + {result = ((ObjectServicePort) servicePort).getContentStream(OIDUtils.toOID(COMPANY_HOME_NODE_REF), null, null);} + catch (StreamNotSupportedException e) {} + catch (Throwable e){fail();} + + } +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java new file mode 100644 index 0000000000..8b1a3b25a9 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java @@ -0,0 +1,36 @@ +package org.alfresco.repo.cmis.ws; + + +import org.alfresco.repo.cmis.ws.OIDUtils; + +/** + * @see org.alfresco.cmis.ws.RepositoryServicePortDM + * + * @author Dmitry Lazurkin + * + */ +public class DMRepositoryServicePortTest extends BaseServicePortTest +{ + private RepositoryServicePort repositoryServicePort; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + repositoryServicePort = (RepositoryServicePort) applicationContext.getBean("dmRepositoryService"); + } + + public void testGetRootFolder() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetRootFolder request = new GetRootFolder(); + request.setFilter("*"); + + GetRootFolderResponse response = repositoryServicePort.getRootFolder(request); + FolderObjectType rootFolder = response.getRootFolder(); + assertEquals(rootNodeRef, OIDUtils.OIDtoNodeRef(rootFolder.getObjectID())); + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java new file mode 100644 index 0000000000..ff0f030b23 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java @@ -0,0 +1,65 @@ +package org.alfresco.repo.cmis.ws; + + +import java.net.MalformedURLException; +import java.net.URL; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; + +/** + * @author Michael Shavnev + */ +public class DMRepositoryServiceTest extends AbstractServiceTest +{ + + public final static String SERVICE_WSDL_LOCATION = "http://localhost:8080/alfresco/cmis/RepositoryService?wsdl"; + public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); + + protected Object getServicePort() + { + URL serviceWsdlURL; + try + { + serviceWsdlURL = new URL(SERVICE_WSDL_LOCATION); + } + catch (MalformedURLException e) + { + throw new java.lang.RuntimeException("Cannot get service Wsdl URL", e); + } + Service service = Service.create(serviceWsdlURL, SERVICE_NAME); + return service.getPort(RepositoryServicePort.class); + } + + public void testGetRootFolder() + { + GetRootFolder getRootFolder = new GetRootFolder(); + try + { + getRootFolder.setFilter("*"); + ((RepositoryServicePort) servicePort).getRootFolder(getRootFolder); + } + catch (Throwable e) + { + e.printStackTrace(); + fail(); + } + + try + { + getRootFolder.setFilter("name"); + ((RepositoryServicePort) servicePort).getRootFolder(getRootFolder); + fail(); + } + catch (FilterNotValidException e) + { + // expected + } + catch (Throwable e) + { + e.printStackTrace(); + fail(); + } + } + +} diff --git a/source/test/resources/create.atomentry.xml b/source/test/resources/create.atomentry.xml new file mode 100644 index 0000000000..be818f0dc4 --- /dev/null +++ b/source/test/resources/create.atomentry.xml @@ -0,0 +1,18 @@ + + + Iñtërnâtiônàlizætiøn - 2 + urn:uuid:12345678-1234-1234-1234-123412341234 + Create test 1 summary + 2007-02-123T17:09:02Z + Doolittle + content 1 + + http://example.org/atom04 + document + XML + standards + + + + +post /api/path/workspace/SpacesStore//children application/atom+xml Iñtërnâtiônàlizætiøn - 6urn:uuid:12345678-1234-1234-1234-123412341234Create test 1 summary2007-02-123T17:09:02ZDoolittlecontent 1document \ No newline at end of file diff --git a/source/test/wcftest/CmisTest.exe b/source/test/wcftest/CmisTest.exe new file mode 100644 index 0000000000..c3a7cdfae7 Binary files /dev/null and b/source/test/wcftest/CmisTest.exe differ diff --git a/source/test/wcftest/CmisTest.exe.config b/source/test/wcftest/CmisTest.exe.config new file mode 100644 index 0000000000..76c1fc4221 --- /dev/null +++ b/source/test/wcftest/CmisTest.exe.config @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/test/wcftest/CmisTest.zip b/source/test/wcftest/CmisTest.zip new file mode 100644 index 0000000000..5dda1aa9b7 Binary files /dev/null and b/source/test/wcftest/CmisTest.zip differ diff --git a/source/wsdl/NavigationService.wsdl b/source/wsdl/NavigationService.wsdl new file mode 100644 index 0000000000..1dc4c4e891 --- /dev/null +++ b/source/wsdl/NavigationService.wsdl @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/ObjectService.wsdl b/source/wsdl/ObjectService.wsdl new file mode 100644 index 0000000000..2870c550d1 --- /dev/null +++ b/source/wsdl/ObjectService.wsdl @@ -0,0 +1,493 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/RepositoryService.wsdl b/source/wsdl/RepositoryService.wsdl new file mode 100644 index 0000000000..72d19c3d0c --- /dev/null +++ b/source/wsdl/RepositoryService.wsdl @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/cmisMessageTypes.xsd b/source/wsdl/cmisMessageTypes.xsd new file mode 100644 index 0000000000..fcb227dbf8 --- /dev/null +++ b/source/wsdl/cmisMessageTypes.xsd @@ -0,0 +1,772 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/cmisObjectTypes.xsd b/source/wsdl/cmisObjectTypes.xsd new file mode 100644 index 0000000000..cf42eb7f05 --- /dev/null +++ b/source/wsdl/cmisObjectTypes.xsd @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +