diff --git a/config/alfresco/cmis-ws-context.xml b/config/alfresco/cmis-ws-context.xml index 3be4072184..34cd01c523 100644 --- a/config/alfresco/cmis-ws-context.xml +++ b/config/alfresco/cmis-ws-context.xml @@ -18,13 +18,11 @@ - - @@ -42,18 +40,16 @@ implementorClass="org.alfresco.repo.cmis.ws.DMNavigationServicePort"> - + - - @@ -75,13 +71,11 @@ - - @@ -105,13 +99,11 @@ - - @@ -134,13 +126,11 @@ - - @@ -163,13 +153,11 @@ - - @@ -192,13 +180,11 @@ - - @@ -220,13 +206,11 @@ - - @@ -276,7 +260,9 @@ - + + + @@ -373,6 +359,4 @@ - - \ No newline at end of file diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java index 57f8fe642c..b6062b8484 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java @@ -23,8 +23,8 @@ import javax.xml.bind.annotation.XmlType; * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="major" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType" minOccurs="0"/> - * <element name="contentStream" type="{http://www.cmis.org/2008/05}cmisContentStreamType" minOccurs="0"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType" minOccurs="0"/> + * <element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisContentStreamType" minOccurs="0"/> * <element name="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> @@ -50,13 +50,13 @@ public class CheckIn { protected String repositoryId; @XmlElement(required = true) protected String documentId; - @XmlElementRef(name = "major", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "major", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement major; - @XmlElementRef(name = "properties", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "properties", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement properties; - @XmlElementRef(name = "contentStream", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "contentStream", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement contentStream; - @XmlElementRef(name = "checkinComment", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "checkinComment", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement checkinComment; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlEntryType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlEntryType.java new file mode 100755 index 0000000000..f1df7841fa --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlEntryType.java @@ -0,0 +1,138 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisAccessControlEntryType complex type. + * + *

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

+ * <complexType name="cmisAccessControlEntryType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="principal" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAccessControlPrincipalType"/>
+ *         <element name="permission" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="direct" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <any/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisAccessControlEntryType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "principal", + "permission", + "direct", + "any" +}) +public class CmisAccessControlEntryType { + + @XmlElement(required = true) + protected CmisAccessControlPrincipalType principal; + @XmlElement(required = true) + protected String permission; + protected boolean direct; + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Gets the value of the principal property. + * + * @return + * possible object is + * {@link CmisAccessControlPrincipalType } + * + */ + public CmisAccessControlPrincipalType getPrincipal() { + return principal; + } + + /** + * Sets the value of the principal property. + * + * @param value + * allowed object is + * {@link CmisAccessControlPrincipalType } + * + */ + public void setPrincipal(CmisAccessControlPrincipalType value) { + this.principal = value; + } + + /** + * Gets the value of the permission property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPermission() { + return permission; + } + + /** + * Sets the value of the permission property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPermission(String value) { + this.permission = value; + } + + /** + * Gets the value of the direct property. + * + */ + public boolean isDirect() { + return direct; + } + + /** + * Sets the value of the direct property. + * + */ + public void setDirect(boolean value) { + this.direct = value; + } + + /** + * Gets the value of the any property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlListType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlListType.java new file mode 100755 index 0000000000..179eb5288e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlListType.java @@ -0,0 +1,91 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisAccessControlListType complex type. + * + *

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

+ * <complexType name="cmisAccessControlListType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="permission" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAccessControlEntryType"/>
+ *         <any/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisAccessControlListType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "permission", + "any" +}) +public class CmisAccessControlListType { + + @XmlElement(required = true) + protected CmisAccessControlEntryType permission; + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Gets the value of the permission property. + * + * @return + * possible object is + * {@link CmisAccessControlEntryType } + * + */ + public CmisAccessControlEntryType getPermission() { + return permission; + } + + /** + * Sets the value of the permission property. + * + * @param value + * allowed object is + * {@link CmisAccessControlEntryType } + * + */ + public void setPermission(CmisAccessControlEntryType value) { + this.permission = value; + } + + /** + * Gets the value of the any property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlPrincipalType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlPrincipalType.java new file mode 100755 index 0000000000..9a8af2607e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAccessControlPrincipalType.java @@ -0,0 +1,91 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisAccessControlPrincipalType complex type. + * + *

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

+ * <complexType name="cmisAccessControlPrincipalType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="principalId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <any/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisAccessControlPrincipalType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "principalId", + "any" +}) +public class CmisAccessControlPrincipalType { + + @XmlElement(required = true) + protected String principalId; + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Gets the value of the principalId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrincipalId() { + return principalId; + } + + /** + * Sets the value of the principalId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrincipalId(String value) { + this.principalId = value; + } + + /** + * Gets the value of the any property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java index 98ec0394f7..214fc1d828 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java @@ -55,7 +55,7 @@ import org.w3c.dom.Element; * <element name="canDeleteTree" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -64,7 +64,7 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisAllowableActionsType", propOrder = { +@XmlType(name = "cmisAllowableActionsType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "parentId", "parentUrl", "canDelete", @@ -846,8 +846,8 @@ public class CmisAllowableActionsType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java index 891eb5e7b3..139e42184a 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java @@ -26,7 +26,7 @@ import org.w3c.dom.Element; * <sequence> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -35,7 +35,7 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisAnyXml", propOrder = { +@XmlType(name = "cmisAnyXml", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "any" }) public class CmisAnyXml { @@ -63,8 +63,8 @@ public class CmisAnyXml { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChangedObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChangedObjectType.java new file mode 100755 index 0000000000..0c85ab97ad --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChangedObjectType.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.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for cmisChangedObjectType complex type. + * + *

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

+ * <complexType name="cmisChangedObjectType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="changeType" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumTypeOfChanges"/>
+ *         <element name="changeTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
+ *         <any/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChangedObjectType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "changeType", + "changeTime", + "any" +}) +public class CmisChangedObjectType { + + @XmlElement(required = true) + protected EnumTypeOfChanges changeType; + @XmlElement(required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar changeTime; + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Gets the value of the changeType property. + * + * @return + * possible object is + * {@link EnumTypeOfChanges } + * + */ + public EnumTypeOfChanges getChangeType() { + return changeType; + } + + /** + * Sets the value of the changeType property. + * + * @param value + * allowed object is + * {@link EnumTypeOfChanges } + * + */ + public void setChangeType(EnumTypeOfChanges value) { + this.changeType = value; + } + + /** + * Gets the value of the changeTime property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getChangeTime() { + return changeTime; + } + + /** + * Sets the value of the changeTime property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setChangeTime(XMLGregorianCalendar value) { + this.changeTime = value; + } + + /** + * Gets the value of the any property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java index 7d46e69365..48c905d0e2 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java @@ -1,8 +1,11 @@ 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; @@ -14,9 +17,9 @@ import javax.xml.bind.annotation.XmlType; *
  * <complexType name="cmisChoiceBooleanType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -26,37 +29,43 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceBooleanType", propOrder = {
+@XmlType(name = "cmisChoiceBooleanType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceBooleanType
     extends CmisChoiceType
 {
 
-    protected Boolean value;
+    @XmlElement(type = Boolean.class)
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link Boolean }
-     *     
-     */
-    public Boolean isValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Boolean } + * * - * @param value - * allowed object is - * {@link Boolean } - * */ - public void setValue(Boolean value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java index 41d0d7a534..84baefa8bb 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java @@ -1,6 +1,8 @@ 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.XmlSchemaType; @@ -16,9 +18,9 @@ import javax.xml.datatype.XMLGregorianCalendar; *

  * <complexType name="cmisChoiceDateTimeType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +30,7 @@ import javax.xml.datatype.XMLGregorianCalendar;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceDateTimeType", propOrder = {
+@XmlType(name = "cmisChoiceDateTimeType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceDateTimeType
@@ -36,30 +38,35 @@ public class CmisChoiceDateTimeType
 {
 
     @XmlSchemaType(name = "dateTime")
-    protected XMLGregorianCalendar value;
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link XMLGregorianCalendar }
-     *     
-     */
-    public XMLGregorianCalendar getValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link XMLGregorianCalendar } + * * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * */ - public void setValue(XMLGregorianCalendar value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java index bdcfd5f185..532895be8b 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java @@ -2,6 +2,8 @@ package org.alfresco.repo.cmis.ws; import java.math.BigDecimal; +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.XmlType; @@ -15,9 +17,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisChoiceDecimalType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -27,37 +29,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceDecimalType", propOrder = {
+@XmlType(name = "cmisChoiceDecimalType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceDecimalType
     extends CmisChoiceType
 {
 
-    protected BigDecimal value;
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link BigDecimal }
-     *     
-     */
-    public BigDecimal getValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BigDecimal } + * * - * @param value - * allowed object is - * {@link BigDecimal } - * */ - public void setValue(BigDecimal value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java index af7ff9c2f1..b22e59aff4 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java @@ -18,9 +18,19 @@ import org.w3c.dom.Element; *

  * <complexType name="cmisChoiceHtmlType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <any/>
+ *         <element name="value" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -30,44 +40,103 @@ import org.w3c.dom.Element;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceHtmlType", propOrder = {
-    "any"
+@XmlType(name = "cmisChoiceHtmlType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
+    "value"
 })
 public class CmisChoiceHtmlType
     extends CmisChoiceType
 {
 
-    @XmlAnyElement(lax = true)
-    protected List any;
+    protected List value;
 
     /**
-     * Gets the value of the any property.
+     * Gets the value of the value 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 any property. + * This is why there is not a set method for the value property. * *

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

-     *    getAny().add(newItem);
+     *    getValue().add(newItem);
      * 
* * *

* Objects of the following type(s) are allowed in the list - * {@link Element } - * {@link Object } + * {@link CmisChoiceHtmlType.Value } * * */ - public List getAny() { - if (any == null) { - any = new ArrayList(); + public List getValue() { + if (value == null) { + value = new ArrayList(); } - return this.any; + return this.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>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class Value { + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any 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 any property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIdType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIdType.java index b01f8b7534..497b44a1ea 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIdType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIdType.java @@ -1,6 +1,8 @@ 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.XmlType; @@ -14,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *
  * <complexType name="cmisChoiceIdType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -26,37 +28,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceIdType", propOrder = {
+@XmlType(name = "cmisChoiceIdType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceIdType
     extends CmisChoiceType
 {
 
-    protected String value;
+    protected List value;
 
     /**
      * 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.
+     * 

+ * 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * * - * @param value - * allowed object is - * {@link String } - * */ - public void setValue(String value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java index 9b35ebd7ee..50edbd11a0 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java @@ -2,6 +2,8 @@ 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.XmlType; @@ -15,9 +17,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisChoiceIntegerType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -27,37 +29,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceIntegerType", propOrder = {
+@XmlType(name = "cmisChoiceIntegerType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceIntegerType
     extends CmisChoiceType
 {
 
-    protected BigInteger value;
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link BigInteger }
-     *     
-     */
-    public BigInteger getValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BigInteger } + * * - * @param value - * allowed object is - * {@link BigInteger } - * */ - public void setValue(BigInteger value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java index f713335412..f58214f56c 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java @@ -1,6 +1,8 @@ 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.XmlType; @@ -14,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisChoiceStringType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -26,37 +28,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceStringType", propOrder = {
+@XmlType(name = "cmisChoiceStringType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceStringType
     extends CmisChoiceType
 {
 
-    protected String value;
+    protected List value;
 
     /**
      * 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.
+     * 

+ * 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * * - * @param value - * allowed object is - * {@link String } - * */ - public void setValue(String value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java index 0576c0f42e..0ede168a66 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java @@ -1,7 +1,6 @@ package org.alfresco.repo.cmis.ws; -import java.math.BigInteger; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -27,11 +26,10 @@ import javax.xml.namespace.QName; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}choice" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choice" maxOccurs="unbounded" minOccurs="0"/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> - * <attribute ref="{http://www.cmis.org/2008/05}index"/> - * <attribute ref="{http://www.cmis.org/2008/05}key"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> + * <attribute ref="{http://docs.oasis-open.org/ns/cmis/core/200901}key"/> * </restriction> * </complexContent> * </complexType> @@ -40,27 +38,25 @@ import javax.xml.namespace.QName; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisChoiceType", propOrder = { +@XmlType(name = "cmisChoiceType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "choice" }) @XmlSeeAlso({ - CmisChoiceDecimalType.class, - CmisChoiceXmlType.class, CmisChoiceDateTimeType.class, CmisChoiceStringType.class, + CmisChoiceDecimalType.class, CmisChoiceUriType.class, CmisChoiceIntegerType.class, - CmisChoiceHtmlType.class, + CmisChoiceXmlType.class, + CmisChoiceBooleanType.class, CmisChoiceIdType.class, - CmisChoiceBooleanType.class + CmisChoiceHtmlType.class }) public abstract class CmisChoiceType { - @XmlElementRef(name = "choice", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "choice", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", type = JAXBElement.class) protected List> choice; - @XmlAttribute(namespace = "http://www.cmis.org/2008/05") - protected BigInteger index; - @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + @XmlAttribute(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected String key; @XmlAnyAttribute private Map otherAttributes = new HashMap(); @@ -83,15 +79,15 @@ public abstract class CmisChoiceType { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link CmisChoiceDecimalType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceUriType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceIntegerType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceXmlType }{@code >} * {@link JAXBElement }{@code <}{@link CmisChoiceHtmlType }{@code >} * {@link JAXBElement }{@code <}{@link CmisChoiceStringType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisChoiceBooleanType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisChoiceXmlType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisChoiceIntegerType }{@code >} * {@link JAXBElement }{@code <}{@link CmisChoiceDateTimeType }{@code >} * {@link JAXBElement }{@code <}{@link CmisChoiceIdType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisChoiceUriType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceBooleanType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceDecimalType }{@code >} * {@link JAXBElement }{@code <}{@link CmisChoiceType }{@code >} * * @@ -103,30 +99,6 @@ public abstract class CmisChoiceType { return this.choice; } - /** - * 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. * diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.java index a0d5fac431..7c7613578c 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.java @@ -1,6 +1,8 @@ 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.XmlSchemaType; @@ -15,9 +17,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisChoiceUriType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -27,7 +29,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceUriType", propOrder = {
+@XmlType(name = "cmisChoiceUriType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisChoiceUriType
@@ -35,30 +37,35 @@ public class CmisChoiceUriType
 {
 
     @XmlSchemaType(name = "anyURI")
-    protected String value;
+    protected List value;
 
     /**
      * 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.
+     * 

+ * 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * * - * @param value - * allowed object is - * {@link String } - * */ - public void setValue(String value) { - this.value = value; + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java index ec7ce44ba3..0df402e30a 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java @@ -18,7 +18,7 @@ import org.w3c.dom.Element; *

  * <complexType name="cmisChoiceXmlType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceType">
  *       <sequence>
  *         <any/>
  *       </sequence>
@@ -30,7 +30,7 @@ import org.w3c.dom.Element;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisChoiceXmlType", propOrder = {
+@XmlType(name = "cmisChoiceXmlType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "any"
 })
 public class CmisChoiceXmlType
@@ -58,8 +58,8 @@ public class CmisChoiceXmlType
      * 
      * 

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java index 362f2e496e..eb1eb1a197 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java @@ -36,7 +36,7 @@ import org.w3c.dom.Element; * <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -45,7 +45,7 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisContentStreamType", propOrder = { +@XmlType(name = "cmisContentStreamType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "length", "mimeType", "filename", @@ -207,8 +207,8 @@ public class CmisContentStreamType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisException.java b/source/generated/org/alfresco/repo/cmis/ws/CmisException.java new file mode 100755 index 0000000000..d2202cd017 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisException.java @@ -0,0 +1,45 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.1.2 + * Mon Apr 27 21:08:02 EEST 2009 + * Generated source version: 2.1.2 + * + */ + +@WebFault(name = "cmisFault", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") +public class CmisException extends Exception { + public static final long serialVersionUID = 20090427210802L; + + private org.alfresco.repo.cmis.ws.CmisFaultType cmisFault; + + public CmisException() { + super(); + } + + public CmisException(String message) { + super(message); + } + + public CmisException(String message, Throwable cause) { + super(message, cause); + } + + public CmisException(String message, org.alfresco.repo.cmis.ws.CmisFaultType cmisFault) { + super(message); + this.cmisFault = cmisFault; + } + + public CmisException(String message, org.alfresco.repo.cmis.ws.CmisFaultType cmisFault, Throwable cause) { + super(message, cause); + this.cmisFault = cmisFault; + } + + public org.alfresco.repo.cmis.ws.CmisFaultType getFaultInfo() { + return this.cmisFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java index 0a01395548..8589d2e6e1 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java @@ -2,10 +2,12 @@ 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.XmlAnyElement; import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; @@ -19,8 +21,10 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}integer"/> - * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="type" type="{http://docs.oasis-open.org/ns/cmis/messaging/200901}enumServiceException"/> + * <element name="code" type="{http://www.w3.org/2001/XMLSchema}integer"/> + * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <any/> * </sequence> * </restriction> * </complexContent> @@ -31,80 +35,121 @@ import javax.xml.bind.annotation.XmlType; */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "cmisFaultType", propOrder = { - "errorCode", - "errorMessage" -}) -@XmlSeeAlso({ - OperationNotSupportedExceptionType.class, - PermissionDeniedExceptionType.class, - NotInFolderExceptionType.class, - StorageExceptionType.class, - OffsetExceptionType.class, - ConstraintViolationExceptionType.class, - VersioningExceptionType.class, - InvalidArgumentExceptionType.class, - FilterNotValidExceptionType.class, - TypeNotFoundExceptionType.class, - UpdateConflictExceptionType.class, - FolderNotValidExceptionType.class, - ObjectNotFoundExceptionType.class, - StreamNotSupportedExceptionType.class, - RuntimeExceptionType.class, - ContentAlreadyExistsExceptionType.class + "type", + "code", + "message", + "any" }) public class CmisFaultType { @XmlElement(required = true) - protected BigInteger errorCode; + protected EnumServiceException type; @XmlElement(required = true) - protected String errorMessage; + protected BigInteger code; + @XmlElement(required = true) + protected String message; + @XmlAnyElement(lax = true) + protected List any; /** - * Gets the value of the errorCode property. + * Gets the value of the type property. + * + * @return + * possible object is + * {@link EnumServiceException } + * + */ + public EnumServiceException getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link EnumServiceException } + * + */ + public void setType(EnumServiceException value) { + this.type = value; + } + + /** + * Gets the value of the code property. * * @return * possible object is * {@link BigInteger } * */ - public BigInteger getErrorCode() { - return errorCode; + public BigInteger getCode() { + return code; } /** - * Sets the value of the errorCode property. + * Sets the value of the code property. * * @param value * allowed object is * {@link BigInteger } * */ - public void setErrorCode(BigInteger value) { - this.errorCode = value; + public void setCode(BigInteger value) { + this.code = value; } /** - * Gets the value of the errorMessage property. + * Gets the value of the message property. * * @return * possible object is * {@link String } * */ - public String getErrorMessage() { - return errorMessage; + public String getMessage() { + return message; } /** - * Sets the value of the errorMessage property. + * Sets the value of the message property. * * @param value * allowed object is * {@link String } * */ - public void setErrorMessage(String value) { - this.errorMessage = value; + public void setMessage(String value) { + this.message = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java index 586540f0fe..e18841de76 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java @@ -24,13 +24,14 @@ import org.w3c.dom.Element; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType" minOccurs="0"/> - * <element ref="{http://www.cmis.org/2008/05}allowableActions" minOccurs="0"/> - * <element name="relationship" type="{http://www.cmis.org/2008/05}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/> - * <element name="child" type="{http://www.cmis.org/2008/05}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}allowableActions" minOccurs="0"/> + * <element name="relationship" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/> + * <element name="changeObject" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChangedObjectType" minOccurs="0"/> + * <element name="child" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -39,10 +40,11 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisObjectType", propOrder = { +@XmlType(name = "cmisObjectType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "properties", "allowableActions", "relationship", + "changeObject", "child", "any" }) @@ -51,6 +53,7 @@ public class CmisObjectType { protected CmisPropertiesType properties; protected CmisAllowableActionsType allowableActions; protected List relationship; + protected CmisChangedObjectType changeObject; protected List child; @XmlAnyElement(lax = true) protected List any; @@ -134,6 +137,30 @@ public class CmisObjectType { return this.relationship; } + /** + * Gets the value of the changeObject property. + * + * @return + * possible object is + * {@link CmisChangedObjectType } + * + */ + public CmisChangedObjectType getChangeObject() { + return changeObject; + } + + /** + * Sets the value of the changeObject property. + * + * @param value + * allowed object is + * {@link CmisChangedObjectType } + * + */ + public void setChangeObject(CmisChangedObjectType value) { + this.changeObject = value; + } + /** * Gets the value of the child property. * @@ -181,8 +208,8 @@ public class CmisObjectType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPermissionDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPermissionDefinitionType.java new file mode 100755 index 0000000000..831d16ba8d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPermissionDefinitionType.java @@ -0,0 +1,186 @@ + +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.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for cmisPermissionDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPermissionDefinitionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}language" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="aggregating" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPermissionDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="aggregated" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="abstract" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPermissionDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "description", + "aggregating" +}) +public class CmisPermissionDefinitionType { + + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected List description; + protected List aggregating; + @XmlAttribute + protected String name; + @XmlAttribute + protected Boolean aggregated; + @XmlAttribute(name = "abstract") + protected Boolean _abstract; + + /** + * Gets the value of the description 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 description property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getDescription() { + if (description == null) { + description = new ArrayList(); + } + return this.description; + } + + /** + * Gets the value of the aggregating 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 aggregating property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisPermissionDefinitionType } + * + * + */ + public List getAggregating() { + if (aggregating == null) { + aggregating = new ArrayList(); + } + return this.aggregating; + } + + /** + * 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 aggregated property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isAggregated() { + return aggregated; + } + + /** + * Sets the value of the aggregated property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAggregated(Boolean value) { + this.aggregated = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAbstract(Boolean value) { + this._abstract = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPermissionSetType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPermissionSetType.java new file mode 100755 index 0000000000..7cc90c1aaa --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPermissionSetType.java @@ -0,0 +1,69 @@ + +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 cmisPermissionSetType complex type. + * + *

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

+ * <complexType name="cmisPermissionSetType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="permission" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPermissionDefinitionType" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPermissionSetType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "permission" +}) +public class CmisPermissionSetType { + + @XmlElement(required = true) + protected List permission; + + /** + * Gets the value of the permission 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 permission property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisPermissionDefinitionType } + * + * + */ + public List getPermission() { + if (permission == null) { + permission = new ArrayList(); + } + return this.permission; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java index b235ad85a2..4463b33b62 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java @@ -27,19 +27,19 @@ import org.w3c.dom.Element; * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <choice maxOccurs="unbounded" minOccurs="0"> - * <element ref="{http://www.cmis.org/2008/05}propertyBoolean"/> - * <element ref="{http://www.cmis.org/2008/05}propertyId"/> - * <element ref="{http://www.cmis.org/2008/05}propertyInteger"/> - * <element ref="{http://www.cmis.org/2008/05}propertyDateTime"/> - * <element ref="{http://www.cmis.org/2008/05}propertyDecimal"/> - * <element ref="{http://www.cmis.org/2008/05}propertyHtml"/> - * <element ref="{http://www.cmis.org/2008/05}propertyString"/> - * <element ref="{http://www.cmis.org/2008/05}propertyUri"/> - * <element ref="{http://www.cmis.org/2008/05}propertyXml"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyBoolean"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyId"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyInteger"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyDateTime"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyDecimal"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyHtml"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyString"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyUri"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyXml"/> * </choice> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -48,22 +48,22 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisPropertiesType", propOrder = { +@XmlType(name = "cmisPropertiesType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "property", "any" }) public class CmisPropertiesType { @XmlElements({ - @XmlElement(name = "propertyUri", type = CmisPropertyUri.class, nillable = true), + @XmlElement(name = "propertyXml", type = CmisPropertyXml.class, nillable = true), + @XmlElement(name = "propertyDateTime", type = CmisPropertyDateTime.class, nillable = true), + @XmlElement(name = "propertyInteger", type = CmisPropertyInteger.class, nillable = true), + @XmlElement(name = "propertyDecimal", type = CmisPropertyDecimal.class, nillable = true), + @XmlElement(name = "propertyBoolean", type = CmisPropertyBoolean.class, nillable = true), @XmlElement(name = "propertyId", type = CmisPropertyId.class, nillable = true), @XmlElement(name = "propertyString", type = CmisPropertyString.class, nillable = true), - @XmlElement(name = "propertyXml", type = CmisPropertyXml.class, nillable = true), - @XmlElement(name = "propertyHtml", type = CmisPropertyHtml.class, nillable = true), - @XmlElement(name = "propertyBoolean", type = CmisPropertyBoolean.class, nillable = true), - @XmlElement(name = "propertyDecimal", type = CmisPropertyDecimal.class, nillable = true), - @XmlElement(name = "propertyDateTime", type = CmisPropertyDateTime.class, nillable = true), - @XmlElement(name = "propertyInteger", type = CmisPropertyInteger.class, nillable = true) + @XmlElement(name = "propertyUri", type = CmisPropertyUri.class, nillable = true), + @XmlElement(name = "propertyHtml", type = CmisPropertyHtml.class, nillable = true) }) protected List property; @XmlAnyElement(lax = true) @@ -89,15 +89,15 @@ public class CmisPropertiesType { * *

* Objects of the following type(s) are allowed in the list - * {@link CmisPropertyUri } - * {@link CmisPropertyId } - * {@link CmisPropertyString } * {@link CmisPropertyXml } - * {@link CmisPropertyHtml } - * {@link CmisPropertyBoolean } - * {@link CmisPropertyDecimal } * {@link CmisPropertyDateTime } * {@link CmisPropertyInteger } + * {@link CmisPropertyDecimal } + * {@link CmisPropertyBoolean } + * {@link CmisPropertyId } + * {@link CmisPropertyString } + * {@link CmisPropertyUri } + * {@link CmisPropertyHtml } * * */ @@ -126,8 +126,8 @@ public class CmisPropertiesType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java b/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java index c78b68fe1b..58474ec81d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java @@ -1,7 +1,6 @@ package org.alfresco.repo.cmis.ws; -import java.math.BigInteger; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; @@ -22,9 +21,8 @@ import javax.xml.namespace.QName; * <complexType name="cmisProperty"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> - * <attribute ref="{http://www.cmis.org/2008/05}name use="required""/> - * <attribute ref="{http://www.cmis.org/2008/05}index"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> + * <attribute ref="{http://docs.oasis-open.org/ns/cmis/core/200901}name use="required""/> * </restriction> * </complexContent> * </complexType> @@ -33,24 +31,22 @@ import javax.xml.namespace.QName; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisProperty") +@XmlType(name = "cmisProperty", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlSeeAlso({ - CmisPropertyId.class, - CmisPropertyUri.class, - CmisPropertyDecimal.class, - CmisPropertyXml.class, - CmisPropertyString.class, - CmisPropertyDateTime.class, CmisPropertyHtml.class, - CmisPropertyInteger.class, - CmisPropertyBoolean.class + CmisPropertyDecimal.class, + CmisPropertyId.class, + CmisPropertyDateTime.class, + CmisPropertyXml.class, + CmisPropertyBoolean.class, + CmisPropertyUri.class, + CmisPropertyString.class, + CmisPropertyInteger.class }) public class CmisProperty { - @XmlAttribute(namespace = "http://www.cmis.org/2008/05", required = true) + @XmlAttribute(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", required = true) protected String name; - @XmlAttribute(namespace = "http://www.cmis.org/2008/05") - protected BigInteger index; @XmlAnyAttribute private Map otherAttributes = new HashMap(); @@ -78,30 +74,6 @@ public class CmisProperty { this.name = 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 a map that contains attributes that aren't bound to any typed property on this class. * diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java index 0ebc4f3ad8..da46187a59 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java @@ -1,9 +1,11 @@ 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.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @@ -15,11 +17,10 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyBoolean">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="boolean""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -28,67 +29,43 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyBoolean", propOrder = {
+@XmlType(name = "cmisPropertyBoolean", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyBoolean
     extends CmisProperty
 {
 
-    protected Boolean value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    @XmlElement(type = Boolean.class)
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link Boolean }
-     *     
-     */
-    public Boolean isValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Boolean } * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setValue(Boolean value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.BOOLEAN; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.java index 65c2be9ae8..54447a0e2a 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.java @@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyBooleanDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceBooleanType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceBooleanType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyBooleanDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyBooleanDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue"
 })
 public class CmisPropertyBooleanDefinitionType
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java
index 9ba4db9d3e..4ff1e3bd86 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java
@@ -1,9 +1,10 @@
 
 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.XmlAttribute;
 import javax.xml.bind.annotation.XmlSchemaType;
 import javax.xml.bind.annotation.XmlType;
 import javax.xml.datatype.XMLGregorianCalendar;
@@ -17,11 +18,10 @@ import javax.xml.datatype.XMLGregorianCalendar;
  * 
  * <complexType name="cmisPropertyDateTime">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="datetime""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -30,7 +30,7 @@ import javax.xml.datatype.XMLGregorianCalendar;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyDateTime", propOrder = {
+@XmlType(name = "cmisPropertyDateTime", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyDateTime
@@ -38,60 +38,35 @@ public class CmisPropertyDateTime
 {
 
     @XmlSchemaType(name = "dateTime")
-    protected XMLGregorianCalendar value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link XMLGregorianCalendar }
-     *     
-     */
-    public XMLGregorianCalendar getValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link XMLGregorianCalendar } * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setValue(XMLGregorianCalendar value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.DATETIME; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.java index 41806deb1e..4b62310c09 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.java @@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyDateTimeDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceDateTimeType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceDateTimeType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyDateTimeDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyDateTimeDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue"
 })
 public class CmisPropertyDateTimeDefinitionType
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java
index 1552919b0b..bc8f8c6f58 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java
@@ -2,9 +2,10 @@
 package org.alfresco.repo.cmis.ws;
 
 import java.math.BigDecimal;
+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.XmlAttribute;
 import javax.xml.bind.annotation.XmlType;
 
 
@@ -16,11 +17,10 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisPropertyDecimal">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="decimal""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -29,67 +29,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyDecimal", propOrder = {
+@XmlType(name = "cmisPropertyDecimal", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyDecimal
     extends CmisProperty
 {
 
-    protected BigDecimal value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link BigDecimal }
-     *     
-     */
-    public BigDecimal getValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BigDecimal } * - * @param value - * allowed object is - * {@link BigDecimal } - * - */ - public void setValue(BigDecimal value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.DECIMAL; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java index 6d00cb64e7..12eef583e0 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java @@ -17,10 +17,10 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyDecimalDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceDecimalType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="precision" type="{http://www.cmis.org/2008/05}enumDecimalPrecision" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceDecimalType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="precision" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumDecimalPrecision" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyDecimalDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyDecimalDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue",
     "precision"
 })
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java
index 83abd860cb..a921c82b30 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java
@@ -29,30 +29,31 @@ import org.w3c.dom.Element;
  *       <sequence>
  *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
  *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="package" 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.cmis.org/2008/05}enumPropertyType"/>
- *         <element name="cardinality" type="{http://www.cmis.org/2008/05}enumCardinality"/>
- *         <element name="updateability" type="{http://www.cmis.org/2008/05}enumUpdateability"/>
+ *         <element name="propertyType" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumPropertyType"/>
+ *         <element name="cardinality" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumCardinality"/>
+ *         <element name="updatability" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumUpdatability"/>
  *         <element name="inherited" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
  *         <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
  *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
  *         <element name="orderable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
  *         <choice maxOccurs="unbounded" minOccurs="0">
- *           <element ref="{http://www.cmis.org/2008/05}choiceBoolean"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceDateTime"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceDecimal"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceHtml"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceId"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceInteger"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceString"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceUri"/>
- *           <element ref="{http://www.cmis.org/2008/05}choiceXml"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceBoolean"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceDateTime"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceDecimal"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceHtml"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceId"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceInteger"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceString"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceUri"/>
+ *           <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}choiceXml"/>
  *         </choice>
  *         <element name="openChoice" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
  *         <any/>
  *       </sequence>
- *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/>
  *     </restriction>
  *   </complexContent>
  * </complexType>
@@ -61,14 +62,15 @@ import org.w3c.dom.Element;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "name",
     "id",
+    "_package",
     "displayName",
     "description",
     "propertyType",
     "cardinality",
-    "updateability",
+    "updatability",
     "inherited",
     "required",
     "queryable",
@@ -78,15 +80,15 @@ import org.w3c.dom.Element;
     "any"
 })
 @XmlSeeAlso({
-    CmisPropertyHtmlDefinitionType.class,
-    CmisPropertyIntegerDefinitionType.class,
-    CmisPropertyBooleanDefinitionType.class,
-    CmisPropertyIdDefinitionType.class,
-    CmisPropertyStringDefinitionType.class,
-    CmisPropertyDecimalDefinitionType.class,
-    CmisPropertyDateTimeDefinitionType.class,
     CmisPropertyUriDefinitionType.class,
-    CmisPropertyXmlDefinitionType.class
+    CmisPropertyHtmlDefinitionType.class,
+    CmisPropertyStringDefinitionType.class,
+    CmisPropertyIntegerDefinitionType.class,
+    CmisPropertyIdDefinitionType.class,
+    CmisPropertyXmlDefinitionType.class,
+    CmisPropertyBooleanDefinitionType.class,
+    CmisPropertyDecimalDefinitionType.class,
+    CmisPropertyDateTimeDefinitionType.class
 })
 public class CmisPropertyDefinitionType {
 
@@ -94,6 +96,8 @@ public class CmisPropertyDefinitionType {
     protected String name;
     @XmlElement(required = true)
     protected String id;
+    @XmlElement(name = "package", required = true)
+    protected String _package;
     @XmlElement(required = true)
     protected String displayName;
     protected String description;
@@ -102,21 +106,21 @@ public class CmisPropertyDefinitionType {
     @XmlElement(required = true)
     protected EnumCardinality cardinality;
     @XmlElement(required = true)
-    protected EnumUpdateability updateability;
+    protected EnumUpdatability updatability;
     protected Boolean inherited;
     protected boolean required;
     protected boolean queryable;
     protected boolean orderable;
     @XmlElements({
-        @XmlElement(name = "choiceUri", type = CmisChoiceUriType.class),
-        @XmlElement(name = "choiceXml", type = CmisChoiceXmlType.class),
         @XmlElement(name = "choiceDateTime", type = CmisChoiceDateTimeType.class),
-        @XmlElement(name = "choiceId", type = CmisChoiceIdType.class),
-        @XmlElement(name = "choiceHtml", type = CmisChoiceHtmlType.class),
-        @XmlElement(name = "choiceString", type = CmisChoiceStringType.class),
-        @XmlElement(name = "choiceDecimal", type = CmisChoiceDecimalType.class),
+        @XmlElement(name = "choiceBoolean", type = CmisChoiceBooleanType.class),
+        @XmlElement(name = "choiceUri", type = CmisChoiceUriType.class),
         @XmlElement(name = "choiceInteger", type = CmisChoiceIntegerType.class),
-        @XmlElement(name = "choiceBoolean", type = CmisChoiceBooleanType.class)
+        @XmlElement(name = "choiceDecimal", type = CmisChoiceDecimalType.class),
+        @XmlElement(name = "choiceHtml", type = CmisChoiceHtmlType.class),
+        @XmlElement(name = "choiceXml", type = CmisChoiceXmlType.class),
+        @XmlElement(name = "choiceId", type = CmisChoiceIdType.class),
+        @XmlElement(name = "choiceString", type = CmisChoiceStringType.class)
     })
     protected List choice;
     protected Boolean openChoice;
@@ -173,6 +177,30 @@ public class CmisPropertyDefinitionType {
         this.id = value;
     }
 
+    /**
+     * Gets the value of the package property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getPackage() {
+        return _package;
+    }
+
+    /**
+     * Sets the value of the package property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setPackage(String value) {
+        this._package = value;
+    }
+
     /**
      * Gets the value of the displayName property.
      * 
@@ -270,27 +298,27 @@ public class CmisPropertyDefinitionType {
     }
 
     /**
-     * Gets the value of the updateability property.
+     * Gets the value of the updatability property.
      * 
      * @return
      *     possible object is
-     *     {@link EnumUpdateability }
+     *     {@link EnumUpdatability }
      *     
      */
-    public EnumUpdateability getUpdateability() {
-        return updateability;
+    public EnumUpdatability getUpdatability() {
+        return updatability;
     }
 
     /**
-     * Sets the value of the updateability property.
+     * Sets the value of the updatability property.
      * 
      * @param value
      *     allowed object is
-     *     {@link EnumUpdateability }
+     *     {@link EnumUpdatability }
      *     
      */
-    public void setUpdateability(EnumUpdateability value) {
-        this.updateability = value;
+    public void setUpdatability(EnumUpdatability value) {
+        this.updatability = value;
     }
 
     /**
@@ -383,15 +411,15 @@ public class CmisPropertyDefinitionType {
      * 
      * 

* Objects of the following type(s) are allowed in the list - * {@link CmisChoiceUriType } - * {@link CmisChoiceXmlType } * {@link CmisChoiceDateTimeType } - * {@link CmisChoiceIdType } - * {@link CmisChoiceHtmlType } - * {@link CmisChoiceStringType } - * {@link CmisChoiceDecimalType } - * {@link CmisChoiceIntegerType } * {@link CmisChoiceBooleanType } + * {@link CmisChoiceUriType } + * {@link CmisChoiceIntegerType } + * {@link CmisChoiceDecimalType } + * {@link CmisChoiceHtmlType } + * {@link CmisChoiceXmlType } + * {@link CmisChoiceIdType } + * {@link CmisChoiceStringType } * * */ @@ -444,8 +472,8 @@ public class CmisPropertyDefinitionType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java index b3208a96e2..ac93036ee5 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java @@ -6,7 +6,6 @@ import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import org.w3c.dom.Element; @@ -19,11 +18,20 @@ import org.w3c.dom.Element; *

  * <complexType name="cmisPropertyHtml">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <any/>
+ *         <element name="value" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="html""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -32,74 +40,103 @@ import org.w3c.dom.Element;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyHtml", propOrder = {
-    "any"
+@XmlType(name = "cmisPropertyHtml", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
+    "value"
 })
 public class CmisPropertyHtml
     extends CmisProperty
 {
 
-    @XmlAnyElement(lax = true)
-    protected List any;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
-     * Gets the value of the any property.
+     * Gets the value of the value 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 any property. + * This is why there is not a set method for the value property. * *

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

-     *    getAny().add(newItem);
+     *    getValue().add(newItem);
      * 
* * *

* Objects of the following type(s) are allowed in the list - * {@link Element } - * {@link Object } + * {@link CmisPropertyHtml.Value } * * */ - public List getAny() { - if (any == null) { - any = new ArrayList(); + public List getValue() { + if (value == null) { + value = new ArrayList(); } - return this.any; + return this.value; } - /** - * Gets the value of the propertyType property. - * - * @return - * possible object is - * {@link EnumPropertyType } - * - */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.HTML; - } else { - return propertyType; - } - } /** - * Sets the value of the propertyType property. + *

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>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * * - * @param value - * allowed object is - * {@link EnumPropertyType } - * */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class Value { + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any 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 any property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java index bec1f9a854..345ce4c6c8 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java @@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *
  * <complexType name="cmisPropertyHtmlDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceHtmlType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceHtmlType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyHtmlDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyHtmlDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue"
 })
 public class CmisPropertyHtmlDefinitionType
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java
index c34b8dade8..5b536b998a 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java
@@ -1,6 +1,8 @@
 
 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.XmlAttribute;
@@ -16,12 +18,11 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisPropertyId">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="id""/>
- *       <attribute ref="{http://www.cmis.org/2008/05}href"/>
+ *       <attribute ref="{http://docs.oasis-open.org/ns/cmis/core/200901}href"/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -30,70 +31,45 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyId", propOrder = {
+@XmlType(name = "cmisPropertyId", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyId
     extends CmisProperty
 {
 
-    protected String value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
+    protected List value;
+    @XmlAttribute(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901")
     @XmlSchemaType(name = "anyURI")
     protected String href;
 
     /**
      * 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.
+     * 

+ * 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.ID; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java index e092bbc4cf..8e7a3135f2 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java @@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyIdDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceIdType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceIdType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyIdDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyIdDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue"
 })
 public class CmisPropertyIdDefinitionType
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyInteger.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyInteger.java
index c171d7b6c7..df347f0f0b 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyInteger.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyInteger.java
@@ -2,9 +2,10 @@
 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.XmlAttribute;
 import javax.xml.bind.annotation.XmlType;
 
 
@@ -16,11 +17,10 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisPropertyInteger">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="integer""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -29,67 +29,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyInteger", propOrder = {
+@XmlType(name = "cmisPropertyInteger", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyInteger
     extends CmisProperty
 {
 
-    protected BigInteger value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
      * Gets the value of the value property.
      * 
-     * @return
-     *     possible object is
-     *     {@link BigInteger }
-     *     
-     */
-    public BigInteger getValue() {
-        return value;
-    }
-
-    /**
-     * Sets the value of the value 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BigInteger } * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setValue(BigInteger value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.INTEGER; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java index c3d8e5ccd5..56ab3c10f0 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java @@ -17,9 +17,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyIntegerDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceIntegerType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceIntegerType" maxOccurs="unbounded" minOccurs="0"/>
  *         <element name="maxValue" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
  *         <element name="minValue" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
  *       </sequence>
@@ -31,7 +31,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyIntegerDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyIntegerDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue",
     "maxValue",
     "minValue"
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java
index 848458b27e..d8f5b1a8b2 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java
@@ -1,9 +1,10 @@
 
 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.XmlAttribute;
 import javax.xml.bind.annotation.XmlType;
 
 
@@ -15,11 +16,10 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisPropertyString">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="string""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -28,67 +28,42 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyString", propOrder = {
+@XmlType(name = "cmisPropertyString", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyString
     extends CmisProperty
 {
 
-    protected String value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
      * 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.
+     * 

+ * 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.STRING; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java index f3285149d3..3dd7693465 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java @@ -17,9 +17,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyStringDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceStringType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceStringType" maxOccurs="unbounded" minOccurs="0"/>
  *         <element name="maxLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
  *       </sequence>
  *     </extension>
@@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyStringDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyStringDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue",
     "maxLength"
 })
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java
index 1ce76e4388..e555c7844f 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java
@@ -1,9 +1,10 @@
 
 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.XmlAttribute;
 import javax.xml.bind.annotation.XmlSchemaType;
 import javax.xml.bind.annotation.XmlType;
 
@@ -16,11 +17,10 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisPropertyUri">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="uri""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -29,7 +29,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyUri", propOrder = {
+@XmlType(name = "cmisPropertyUri", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "value"
 })
 public class CmisPropertyUri
@@ -37,60 +37,35 @@ public class CmisPropertyUri
 {
 
     @XmlSchemaType(name = "anyURI")
-    protected String value;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
      * 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.
+     * 

+ * 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 value property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the propertyType property. * - * @return - * possible object is - * {@link EnumPropertyType } - * */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.URI; - } else { - return propertyType; + public List getValue() { + if (value == null) { + value = new ArrayList(); } - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link EnumPropertyType } - * - */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + return this.value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java index 944346a72f..4267c49439 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java @@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisPropertyUriDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceUriType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceUriType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyUriDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyUriDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue"
 })
 public class CmisPropertyUriDefinitionType
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java
index a29ec9b85f..b31bf43999 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java
@@ -6,7 +6,6 @@ import java.util.List;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlAnyElement;
-import javax.xml.bind.annotation.XmlAttribute;
 import javax.xml.bind.annotation.XmlType;
 import org.w3c.dom.Element;
 
@@ -19,11 +18,20 @@ import org.w3c.dom.Element;
  * 
  * <complexType name="cmisPropertyXml">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
  *       <sequence>
- *         <any/>
+ *         <element name="value" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
  *       </sequence>
- *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="xml""/>
  *     </extension>
  *   </complexContent>
  * </complexType>
@@ -32,74 +40,103 @@ import org.w3c.dom.Element;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyXml", propOrder = {
-    "any"
+@XmlType(name = "cmisPropertyXml", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
+    "value"
 })
 public class CmisPropertyXml
     extends CmisProperty
 {
 
-    @XmlAnyElement(lax = true)
-    protected List any;
-    @XmlAttribute(namespace = "http://www.cmis.org/2008/05")
-    protected EnumPropertyType propertyType;
+    protected List value;
 
     /**
-     * Gets the value of the any property.
+     * Gets the value of the value 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 any property. + * This is why there is not a set method for the value property. * *

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

-     *    getAny().add(newItem);
+     *    getValue().add(newItem);
      * 
* * *

* Objects of the following type(s) are allowed in the list - * {@link Element } - * {@link Object } + * {@link CmisPropertyXml.Value } * * */ - public List getAny() { - if (any == null) { - any = new ArrayList(); + public List getValue() { + if (value == null) { + value = new ArrayList(); } - return this.any; + return this.value; } - /** - * Gets the value of the propertyType property. - * - * @return - * possible object is - * {@link EnumPropertyType } - * - */ - public EnumPropertyType getPropertyType() { - if (propertyType == null) { - return EnumPropertyType.XML; - } else { - return propertyType; - } - } /** - * Sets the value of the propertyType property. + *

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>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * * - * @param value - * allowed object is - * {@link EnumPropertyType } - * */ - public void setPropertyType(EnumPropertyType value) { - this.propertyType = value; + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class Value { + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any 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 any property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java index 4831e89f08..056e1ccf36 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java @@ -17,11 +17,10 @@ import javax.xml.bind.annotation.XmlType; *
  * <complexType name="cmisPropertyXmlDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceXmlType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisChoiceXmlType" maxOccurs="unbounded" minOccurs="0"/>
  *         <element name="schemaURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
- *         <element name="encoding" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -31,10 +30,9 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisPropertyXmlDefinitionType", propOrder = {
+@XmlType(name = "cmisPropertyXmlDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "defaultValue",
-    "schemaURI",
-    "encoding"
+    "schemaURI"
 })
 public class CmisPropertyXmlDefinitionType
     extends CmisPropertyDefinitionType
@@ -43,7 +41,6 @@ public class CmisPropertyXmlDefinitionType
     protected List defaultValue;
     @XmlSchemaType(name = "anyURI")
     protected String schemaURI;
-    protected String encoding;
 
     /**
      * Gets the value of the defaultValue property.
@@ -98,28 +95,4 @@ public class CmisPropertyXmlDefinitionType
         this.schemaURI = value;
     }
 
-    /**
-     * Gets the value of the encoding property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link String }
-     *     
-     */
-    public String getEncoding() {
-        return encoding;
-    }
-
-    /**
-     * Sets the value of the encoding property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *     
-     */
-    public void setEncoding(String value) {
-        this.encoding = value;
-    }
-
 }
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisQueryType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisQueryType.java
index 4ab06c38cc..22521b5d7d 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisQueryType.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisQueryType.java
@@ -2,18 +2,14 @@
 package org.alfresco.repo.cmis.ws;
 
 import java.math.BigInteger;
-import java.util.ArrayList;
 import java.util.HashMap;
-import java.util.List;
 import java.util.Map;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlAnyAttribute;
-import javax.xml.bind.annotation.XmlAnyElement;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlType;
 import javax.xml.namespace.QName;
-import org.w3c.dom.Element;
 
 
 /**
@@ -26,14 +22,15 @@ import org.w3c.dom.Element;
  *   <complexContent>
  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       <sequence>
+ *         <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  *         <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 name="pageSize" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
  *         <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
  *         <element name="returnAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         <any/>
+ *         <element name="extension" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAnyXml" minOccurs="0"/>
  *       </sequence>
- *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/>
  *     </restriction>
  *   </complexContent>
  * </complexType>
@@ -42,27 +39,52 @@ import org.w3c.dom.Element;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisQueryType", propOrder = {
+@XmlType(name = "cmisQueryType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
+    "repositoryId",
     "statement",
     "searchAllVersions",
     "pageSize",
     "skipCount",
     "returnAllowableActions",
-    "any"
+    "extension"
 })
 public class CmisQueryType {
 
+    protected String repositoryId;
     @XmlElement(required = true)
     protected String statement;
     protected Boolean searchAllVersions;
     protected BigInteger pageSize;
     protected BigInteger skipCount;
     protected Boolean returnAllowableActions;
-    @XmlAnyElement(lax = true)
-    protected List any;
+    protected CmisAnyXml extension;
     @XmlAnyAttribute
     private Map otherAttributes = new HashMap();
 
+    /**
+     * 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 statement property.
      * 
@@ -184,33 +206,27 @@ public class CmisQueryType {
     }
 
     /**
-     * Gets the value of the any 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 any property. - * - *

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

-     *    getAny().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Element } - * {@link Object } - * + * Gets the value of the extension property. * + * @return + * possible object is + * {@link CmisAnyXml } + * */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; + public CmisAnyXml getExtension() { + return extension; + } + + /** + * Sets the value of the extension property. + * + * @param value + * allowed object is + * {@link CmisAnyXml } + * + */ + public void setExtension(CmisAnyXml value) { + this.extension = value; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java index b65f5fee1c..c7844dec1f 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java @@ -31,12 +31,15 @@ import org.w3c.dom.Element; * <element name="capabilityPWCUpdateable" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * <element name="capabilityPWCSearchable" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * <element name="capabilityAllVersionsSearchable" type="{http://www.w3.org/2001/XMLSchema}boolean"/> - * <element name="capabilityQuery" type="{http://www.cmis.org/2008/05}enumCapabilityQuery"/> - * <element name="capabilityJoin" type="{http://www.cmis.org/2008/05}enumCapabilityJoin"/> - * <element name="capabilityFullText" type="{http://www.cmis.org/2008/05}enumCapabilityFullText"/> + * <element name="capabilityQuery" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumCapabilityQuery"/> + * <element name="capabilityJoin" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumCapabilityJoin"/> + * <element name="capabilityChanges" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumCapabilityChanges" maxOccurs="unbounded"/> + * <element name="changesIncomplete" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="capabilityACL" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumCapabilityACL"/> + * <element name="permissionsSupported" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPermissionSetType" maxOccurs="unbounded" minOccurs="0"/> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -45,7 +48,7 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisRepositoryCapabilitiesType", propOrder = { +@XmlType(name = "cmisRepositoryCapabilitiesType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "capabilityMultifiling", "capabilityUnfiling", "capabilityVersionSpecificFiling", @@ -54,7 +57,10 @@ import org.w3c.dom.Element; "capabilityAllVersionsSearchable", "capabilityQuery", "capabilityJoin", - "capabilityFullText", + "capabilityChanges", + "changesIncomplete", + "capabilityACL", + "permissionsSupported", "any" }) public class CmisRepositoryCapabilitiesType { @@ -70,7 +76,11 @@ public class CmisRepositoryCapabilitiesType { @XmlElement(required = true) protected EnumCapabilityJoin capabilityJoin; @XmlElement(required = true) - protected EnumCapabilityFullText capabilityFullText; + protected List capabilityChanges; + protected Boolean changesIncomplete; + @XmlElement(required = true) + protected EnumCapabilityACL capabilityACL; + protected List permissionsSupported; @XmlAnyElement protected List any; @XmlAnyAttribute @@ -221,27 +231,109 @@ public class CmisRepositoryCapabilitiesType { } /** - * Gets the value of the capabilityFullText property. + * Gets the value of the capabilityChanges 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 capabilityChanges property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EnumCapabilityChanges } + * * - * @return - * possible object is - * {@link EnumCapabilityFullText } - * */ - public EnumCapabilityFullText getCapabilityFullText() { - return capabilityFullText; + public List getCapabilityChanges() { + if (capabilityChanges == null) { + capabilityChanges = new ArrayList(); + } + return this.capabilityChanges; } /** - * Sets the value of the capabilityFullText property. + * Gets the value of the changesIncomplete property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isChangesIncomplete() { + return changesIncomplete; + } + + /** + * Sets the value of the changesIncomplete property. * * @param value * allowed object is - * {@link EnumCapabilityFullText } + * {@link Boolean } * */ - public void setCapabilityFullText(EnumCapabilityFullText value) { - this.capabilityFullText = value; + public void setChangesIncomplete(Boolean value) { + this.changesIncomplete = value; + } + + /** + * Gets the value of the capabilityACL property. + * + * @return + * possible object is + * {@link EnumCapabilityACL } + * + */ + public EnumCapabilityACL getCapabilityACL() { + return capabilityACL; + } + + /** + * Sets the value of the capabilityACL property. + * + * @param value + * allowed object is + * {@link EnumCapabilityACL } + * + */ + public void setCapabilityACL(EnumCapabilityACL value) { + this.capabilityACL = value; + } + + /** + * Gets the value of the permissionsSupported 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 permissionsSupported property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisPermissionSetType } + * + * + */ + public List getPermissionsSupported() { + if (permissionsSupported == null) { + permissionsSupported = new ArrayList(); + } + return this.permissionsSupported; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java index 478a12b072..2483941153 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java @@ -26,12 +26,12 @@ import org.w3c.dom.Element; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="repositoryID" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="repositoryName" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="repositoryURI" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -40,8 +40,8 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisRepositoryEntryType", propOrder = { - "repositoryID", +@XmlType(name = "cmisRepositoryEntryType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { + "repositoryId", "repositoryName", "repositoryURI", "any" @@ -49,7 +49,7 @@ import org.w3c.dom.Element; public class CmisRepositoryEntryType { @XmlElement(required = true) - protected String repositoryID; + protected String repositoryId; @XmlElement(required = true) protected String repositoryName; @XmlElement(required = true) @@ -61,27 +61,27 @@ public class CmisRepositoryEntryType { private Map otherAttributes = new HashMap(); /** - * Gets the value of the repositoryID property. + * Gets the value of the repositoryId property. * * @return * possible object is * {@link String } * */ - public String getRepositoryID() { - return repositoryID; + public String getRepositoryId() { + return repositoryId; } /** - * Sets the value of the repositoryID property. + * Sets the value of the repositoryId property. * * @param value * allowed object is * {@link String } * */ - public void setRepositoryID(String value) { - this.repositoryID = value; + public void setRepositoryId(String value) { + this.repositoryId = value; } /** @@ -150,8 +150,8 @@ public class CmisRepositoryEntryType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java index 6179045207..3275710026 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java @@ -33,12 +33,12 @@ import org.w3c.dom.Element; * <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="productVersion" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="rootFolderId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="capabilities" type="{http://www.cmis.org/2008/05}cmisRepositoryCapabilitiesType"/> - * <element name="cmisVersionsSupported" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="repositorySpecificInformation" type="{http://www.cmis.org/2008/05}cmisAnyXml" minOccurs="0"/> + * <element name="capabilities" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisRepositoryCapabilitiesType"/> + * <element name="cmisVersionSupported" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="repositorySpecificInformation" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAnyXml" minOccurs="0"/> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -47,7 +47,7 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisRepositoryInfoType", propOrder = { +@XmlType(name = "cmisRepositoryInfoType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "repositoryId", "repositoryName", "repositoryRelationship", @@ -57,7 +57,7 @@ import org.w3c.dom.Element; "productVersion", "rootFolderId", "capabilities", - "cmisVersionsSupported", + "cmisVersionSupported", "repositorySpecificInformation", "any" }) @@ -82,7 +82,7 @@ public class CmisRepositoryInfoType { @XmlElement(required = true) protected CmisRepositoryCapabilitiesType capabilities; @XmlElement(required = true) - protected String cmisVersionsSupported; + protected String cmisVersionSupported; protected CmisAnyXml repositorySpecificInformation; @XmlAnyElement(lax = true) protected List any; @@ -306,27 +306,27 @@ public class CmisRepositoryInfoType { } /** - * Gets the value of the cmisVersionsSupported property. + * Gets the value of the cmisVersionSupported property. * * @return * possible object is * {@link String } * */ - public String getCmisVersionsSupported() { - return cmisVersionsSupported; + public String getCmisVersionSupported() { + return cmisVersionSupported; } /** - * Sets the value of the cmisVersionsSupported property. + * Sets the value of the cmisVersionSupported property. * * @param value * allowed object is * {@link String } * */ - public void setCmisVersionsSupported(String value) { - this.cmisVersionsSupported = value; + public void setCmisVersionSupported(String value) { + this.cmisVersionSupported = value; } /** @@ -371,8 +371,8 @@ public class CmisRepositoryInfoType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java index 3664a70019..ddff71c6f8 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java @@ -30,9 +30,9 @@ import org.w3c.dom.Element; * <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="queryName" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="baseType" type="{http://www.cmis.org/2008/05}enumObjectType"/> + * <element name="baseType" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumBaseObjectType"/> * <element name="baseTypeQueryName" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="parentId" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/> + * <element name="parentId" 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="creatable" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * <element name="fileable" type="{http://www.w3.org/2001/XMLSchema}boolean"/> @@ -40,19 +40,19 @@ import org.w3c.dom.Element; * <element name="controllable" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * <element name="includedInSupertypeQuery" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * <choice maxOccurs="unbounded" minOccurs="0"> - * <element ref="{http://www.cmis.org/2008/05}propertyBooleanDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyDateTimeDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyDecimalDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyHtmlDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyIdDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyIntegerDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyStringDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyUriDefinition"/> - * <element ref="{http://www.cmis.org/2008/05}propertyXmlDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyBooleanDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyDateTimeDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyDecimalDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyHtmlDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyIdDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyIntegerDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyStringDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyUriDefinition"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}propertyXmlDefinition"/> * </choice> * <any/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -61,7 +61,7 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cmisTypeDefinitionType", propOrder = { +@XmlType(name = "cmisTypeDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "typeId", "queryName", "displayName", @@ -78,9 +78,9 @@ import org.w3c.dom.Element; "any" }) @XmlSeeAlso({ - CmisTypeFolderDefinitionType.class, - CmisTypeRelationshipDefinitionType.class, CmisTypeDocumentDefinitionType.class, + CmisTypeRelationshipDefinitionType.class, + CmisTypeFolderDefinitionType.class, CmisTypePolicyDefinitionType.class }) public class CmisTypeDefinitionType { @@ -92,10 +92,10 @@ public class CmisTypeDefinitionType { @XmlElement(required = true) protected String displayName; @XmlElement(required = true) - protected EnumObjectType baseType; + protected EnumBaseObjectType baseType; @XmlElement(required = true) protected String baseTypeQueryName; - protected Object parentId; + protected String parentId; protected String description; protected boolean creatable; protected boolean fileable; @@ -104,15 +104,15 @@ public class CmisTypeDefinitionType { @XmlElement(defaultValue = "true") protected boolean includedInSupertypeQuery; @XmlElements({ - @XmlElement(name = "propertyHtmlDefinition", type = CmisPropertyHtmlDefinitionType.class), - @XmlElement(name = "propertyIdDefinition", type = CmisPropertyIdDefinitionType.class), - @XmlElement(name = "propertyIntegerDefinition", type = CmisPropertyIntegerDefinitionType.class), - @XmlElement(name = "propertyDateTimeDefinition", type = CmisPropertyDateTimeDefinitionType.class), - @XmlElement(name = "propertyDecimalDefinition", type = CmisPropertyDecimalDefinitionType.class), - @XmlElement(name = "propertyUriDefinition", type = CmisPropertyUriDefinitionType.class), - @XmlElement(name = "propertyStringDefinition", type = CmisPropertyStringDefinitionType.class), @XmlElement(name = "propertyXmlDefinition", type = CmisPropertyXmlDefinitionType.class), - @XmlElement(name = "propertyBooleanDefinition", type = CmisPropertyBooleanDefinitionType.class) + @XmlElement(name = "propertyStringDefinition", type = CmisPropertyStringDefinitionType.class), + @XmlElement(name = "propertyIdDefinition", type = CmisPropertyIdDefinitionType.class), + @XmlElement(name = "propertyBooleanDefinition", type = CmisPropertyBooleanDefinitionType.class), + @XmlElement(name = "propertyDecimalDefinition", type = CmisPropertyDecimalDefinitionType.class), + @XmlElement(name = "propertyIntegerDefinition", type = CmisPropertyIntegerDefinitionType.class), + @XmlElement(name = "propertyHtmlDefinition", type = CmisPropertyHtmlDefinitionType.class), + @XmlElement(name = "propertyDateTimeDefinition", type = CmisPropertyDateTimeDefinitionType.class), + @XmlElement(name = "propertyUriDefinition", type = CmisPropertyUriDefinitionType.class) }) protected List propertyDefinition; @XmlAnyElement(lax = true) @@ -197,10 +197,10 @@ public class CmisTypeDefinitionType { * * @return * possible object is - * {@link EnumObjectType } + * {@link EnumBaseObjectType } * */ - public EnumObjectType getBaseType() { + public EnumBaseObjectType getBaseType() { return baseType; } @@ -209,10 +209,10 @@ public class CmisTypeDefinitionType { * * @param value * allowed object is - * {@link EnumObjectType } + * {@link EnumBaseObjectType } * */ - public void setBaseType(EnumObjectType value) { + public void setBaseType(EnumBaseObjectType value) { this.baseType = value; } @@ -245,10 +245,10 @@ public class CmisTypeDefinitionType { * * @return * possible object is - * {@link Object } + * {@link String } * */ - public Object getParentId() { + public String getParentId() { return parentId; } @@ -257,10 +257,10 @@ public class CmisTypeDefinitionType { * * @param value * allowed object is - * {@link Object } + * {@link String } * */ - public void setParentId(Object value) { + public void setParentId(String value) { this.parentId = value; } @@ -386,15 +386,15 @@ public class CmisTypeDefinitionType { * *

* Objects of the following type(s) are allowed in the list - * {@link CmisPropertyHtmlDefinitionType } - * {@link CmisPropertyIdDefinitionType } - * {@link CmisPropertyIntegerDefinitionType } - * {@link CmisPropertyDateTimeDefinitionType } - * {@link CmisPropertyDecimalDefinitionType } - * {@link CmisPropertyUriDefinitionType } - * {@link CmisPropertyStringDefinitionType } * {@link CmisPropertyXmlDefinitionType } + * {@link CmisPropertyStringDefinitionType } + * {@link CmisPropertyIdDefinitionType } * {@link CmisPropertyBooleanDefinitionType } + * {@link CmisPropertyDecimalDefinitionType } + * {@link CmisPropertyIntegerDefinitionType } + * {@link CmisPropertyHtmlDefinitionType } + * {@link CmisPropertyDateTimeDefinitionType } + * {@link CmisPropertyUriDefinitionType } * * */ @@ -423,8 +423,8 @@ public class CmisTypeDefinitionType { * *

* Objects of the following type(s) are allowed in the list - * {@link Element } * {@link Object } + * {@link Element } * * */ diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java index 4749b16dbd..42ab8d3564 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java @@ -15,10 +15,10 @@ import javax.xml.bind.annotation.XmlType; *

  * <complexType name="cmisTypeDocumentDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisTypeDefinitionType">
  *       <sequence>
  *         <element name="versionable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="contentStreamAllowed" type="{http://www.cmis.org/2008/05}enumContentStreamAllowed"/>
+ *         <element name="contentStreamAllowed" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumContentStreamAllowed"/>
  *       </sequence>
  *     </extension>
  *   </complexContent>
@@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisTypeDocumentDefinitionType", propOrder = {
+@XmlType(name = "cmisTypeDocumentDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "versionable",
     "contentStreamAllowed"
 })
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java
index 92a24ecc5b..2b73169d79 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java
@@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisTypeFolderDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisTypeDefinitionType">
  *       <sequence>
  *       </sequence>
  *     </extension>
@@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisTypeFolderDefinitionType")
+@XmlType(name = "cmisTypeFolderDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901")
 public class CmisTypeFolderDefinitionType
     extends CmisTypeDefinitionType
 {
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypePolicyDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypePolicyDefinitionType.java
index f45e970383..b89ec089f9 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisTypePolicyDefinitionType.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypePolicyDefinitionType.java
@@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisTypePolicyDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisTypeDefinitionType">
  *       <sequence>
  *       </sequence>
  *     </extension>
@@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisTypePolicyDefinitionType")
+@XmlType(name = "cmisTypePolicyDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901")
 public class CmisTypePolicyDefinitionType
     extends CmisTypeDefinitionType
 {
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeRelationshipDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeRelationshipDefinitionType.java
index aaa1ac38f4..e4e15ee34a 100755
--- a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeRelationshipDefinitionType.java
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeRelationshipDefinitionType.java
@@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  * <complexType name="cmisTypeRelationshipDefinitionType">
  *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *     <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisTypeDefinitionType">
  *       <sequence>
  *         <element name="allowedSourceTypes" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  *         <element name="allowedTargetTypes" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
@@ -29,7 +29,7 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "cmisTypeRelationshipDefinitionType", propOrder = {
+@XmlType(name = "cmisTypeRelationshipDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
     "allowedSourceTypes",
     "allowedTargetTypes"
 })
diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java
deleted file mode 100644
index e463b4a0cb..0000000000
--- a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java
+++ /dev/null
@@ -1,45 +0,0 @@
-
-package org.alfresco.repo.cmis.ws;
-
-import javax.xml.ws.WebFault;
-
-
-/**
- * This class was generated by Apache CXF 2.1.2
- * Fri Sep 05 13:45:08 EEST 2008
- * Generated source version: 2.1.2
- * 
- */
-
-@WebFault(name = "constraintViolationException", targetNamespace = "http://www.cmis.org/2008/05")
-public class ConstraintViolationException extends Exception {
-    public static final long serialVersionUID = 20080905134508L;
-    
-    private org.alfresco.repo.cmis.ws.ConstraintViolationExceptionType constraintViolationException;
-
-    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.ConstraintViolationExceptionType constraintViolationException) {
-        super(message);
-        this.constraintViolationException = constraintViolationException;
-    }
-
-    public ConstraintViolationException(String message, org.alfresco.repo.cmis.ws.ConstraintViolationExceptionType constraintViolationException, Throwable cause) {
-        super(message, cause);
-        this.constraintViolationException = constraintViolationException;
-    }
-
-    public org.alfresco.repo.cmis.ws.ConstraintViolationExceptionType getFaultInfo() {
-        return this.constraintViolationException;
-    }
-}
diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationExceptionType.java
deleted file mode 100755
index e69c375f20..0000000000
--- a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationExceptionType.java
+++ /dev/null
@@ -1,32 +0,0 @@
-
-package org.alfresco.repo.cmis.ws;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * 

Java class for constraintViolationExceptionType complex type. - * - *

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

- * <complexType name="constraintViolationExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "constraintViolationExceptionType") -public class ConstraintViolationExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsException.java b/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsException.java deleted file mode 100755 index 8caad2573d..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:38 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "contentAlreadyExistsException", targetNamespace = "http://www.cmis.org/2008/05") -public class ContentAlreadyExistsException extends Exception { - public static final long serialVersionUID = 20080905134438L; - - private org.alfresco.repo.cmis.ws.ContentAlreadyExistsExceptionType contentAlreadyExistsException; - - public ContentAlreadyExistsException() { - super(); - } - - public ContentAlreadyExistsException(String message) { - super(message); - } - - public ContentAlreadyExistsException(String message, Throwable cause) { - super(message, cause); - } - - public ContentAlreadyExistsException(String message, org.alfresco.repo.cmis.ws.ContentAlreadyExistsExceptionType contentAlreadyExistsException) { - super(message); - this.contentAlreadyExistsException = contentAlreadyExistsException; - } - - public ContentAlreadyExistsException(String message, org.alfresco.repo.cmis.ws.ContentAlreadyExistsExceptionType contentAlreadyExistsException, Throwable cause) { - super(message, cause); - this.contentAlreadyExistsException = contentAlreadyExistsException; - } - - public org.alfresco.repo.cmis.ws.ContentAlreadyExistsExceptionType getFaultInfo() { - return this.contentAlreadyExistsException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsExceptionType.java deleted file mode 100755 index 239882ae3f..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for contentAlreadyExistsExceptionType complex type. - * - *

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

- * <complexType name="contentAlreadyExistsExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "contentAlreadyExistsExceptionType") -public class ContentAlreadyExistsExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java index 93915c838d..192391195a 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java @@ -22,10 +22,10 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType"/> * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> - * <element name="contentStream" type="{http://www.cmis.org/2008/05}cmisContentStreamType" minOccurs="0"/> - * <element name="versioningState" type="{http://www.cmis.org/2008/05}enumVersioningState" minOccurs="0"/> + * <element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisContentStreamType" minOccurs="0"/> + * <element name="versioningState" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumVersioningState" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -53,9 +53,9 @@ public class CreateDocument { @XmlElement(required = true) protected CmisPropertiesType properties; protected String folderId; - @XmlElementRef(name = "contentStream", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "contentStream", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement contentStream; - @XmlElementRef(name = "versioningState", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "versioningState", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement versioningState; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java index d6974690b0..627fbdd06b 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java @@ -20,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType"/> * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/> * </sequence> * </restriction> diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java b/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java index f5cfce22e1..60400cce04 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType"/> * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> @@ -48,7 +48,7 @@ public class CreatePolicy { protected String typeId; @XmlElement(required = true) protected CmisPropertiesType properties; - @XmlElementRef(name = "folderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "folderId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement folderId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java index 52f0597337..6aec6816da 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java @@ -20,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType"/> * <element name="sourceObjectId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="targetObjectId" type="{http://www.w3.org/2001/XMLSchema}string"/> * </sequence> diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java index 07fb677168..1876695115 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="unfileNonfolderObjects" type="{http://www.cmis.org/2008/05}enumUnfileNonfolderObjects"/> + * <element name="unfileNonfolderObjects" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumUnfileNonfolderObjects"/> * <element name="continueOnFailure" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * </sequence> * </restriction> @@ -48,7 +48,7 @@ public class DeleteTree { protected String folderId; @XmlElement(required = true) protected EnumUnfileNonfolderObjects unfileNonfolderObjects; - @XmlElementRef(name = "continueOnFailure", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "continueOnFailure", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement continueOnFailure; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java index 349db7da86..f50abe979b 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:51 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "DiscoveryService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/DiscoveryService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class DiscoveryService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "DiscoveryService"); - public final static QName DiscoveryServicePort = new QName("http://www.cmis.org/2008/05", "DiscoveryServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "DiscoveryService"); + public final static QName DiscoveryServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "DiscoveryServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/DiscoveryService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/DiscoveryService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java index 8d1567fa9e..4b94453a52 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java @@ -2,28 +2,51 @@ 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.bind.annotation.XmlSeeAlso; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:51 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "DiscoveryServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "DiscoveryServicePort") @XmlSeeAlso({ObjectFactory.class}) -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public interface DiscoveryServicePort { - @WebResult(name = "queryResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "queryResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") @WebMethod public QueryResponse query( - @WebParam(partName = "parameters", name = "query", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(partName = "parameters", name = "query", targetNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901") CmisQueryType parameters - ) throws PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; + + @RequestWrapper(localName = "getContentChanges", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetContentChanges") + @ResponseWrapper(localName = "getContentChangesResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetContentChangesResponse") + @WebMethod + public void getContentChanges( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(mode = WebParam.Mode.INOUT, name = "changeToken", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder changeToken, + @WebParam(name = "maxItems", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.math.BigInteger maxItems, + @WebParam(name = "includeACL", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.Boolean includeACL, + @WebParam(name = "includeProperties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.Boolean includeProperties, + @WebParam(name = "filter", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String filter, + @WebParam(mode = WebParam.Mode.OUT, name = "changedObject", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder> changedObject + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumBaseObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumBaseObjectType.java new file mode 100755 index 0000000000..b30b1b8de5 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumBaseObjectType.java @@ -0,0 +1,57 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumBaseObjectType. + * + *

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

+ *

+ * <simpleType name="enumBaseObjectType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="document"/>
+ *     <enumeration value="folder"/>
+ *     <enumeration value="relationship"/>
+ *     <enumeration value="policy"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumBaseObjectType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") +@XmlEnum +public enum EnumBaseObjectType { + + @XmlEnumValue("document") + DOCUMENT("document"), + @XmlEnumValue("folder") + FOLDER("folder"), + @XmlEnumValue("relationship") + RELATIONSHIP("relationship"), + @XmlEnumValue("policy") + POLICY("policy"); + private final String value; + + EnumBaseObjectType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumBaseObjectType fromValue(String v) { + for (EnumBaseObjectType c: EnumBaseObjectType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumBasicPrivileges.java b/source/generated/org/alfresco/repo/cmis/ws/EnumBasicPrivileges.java new file mode 100755 index 0000000000..a91f3b1863 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumBasicPrivileges.java @@ -0,0 +1,54 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumBasicPrivileges. + * + *

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

+ *

+ * <simpleType name="enumBasicPrivileges">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="CMIS.BasicPermission.Read"/>
+ *     <enumeration value="CMIS.BasicPermission.Write"/>
+ *     <enumeration value="CMIS.BasicPermission.All"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumBasicPrivileges", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") +@XmlEnum +public enum EnumBasicPrivileges { + + @XmlEnumValue("CMIS.BasicPermission.Read") + CMIS_BASIC_PERMISSION_READ("CMIS.BasicPermission.Read"), + @XmlEnumValue("CMIS.BasicPermission.Write") + CMIS_BASIC_PERMISSION_WRITE("CMIS.BasicPermission.Write"), + @XmlEnumValue("CMIS.BasicPermission.All") + CMIS_BASIC_PERMISSION_ALL("CMIS.BasicPermission.All"); + private final String value; + + EnumBasicPrivileges(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumBasicPrivileges fromValue(String v) { + for (EnumBasicPrivileges c: EnumBasicPrivileges.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityFullText.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityACL.java similarity index 53% rename from source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityFullText.java rename to source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityACL.java index b1564f5936..319c0feed0 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityFullText.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityACL.java @@ -7,34 +7,34 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for enumCapabilityFullText. + *

Java class for enumCapabilityACL. * *

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

*

- * <simpleType name="enumCapabilityFullText">
+ * <simpleType name="enumCapabilityACL">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
  *     <enumeration value="none"/>
- *     <enumeration value="fulltextonly"/>
- *     <enumeration value="fulltextandstructured"/>
+ *     <enumeration value="read"/>
+ *     <enumeration value="set"/>
  *   </restriction>
  * </simpleType>
  * 
* */ -@XmlType(name = "enumCapabilityFullText") +@XmlType(name = "enumCapabilityACL", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum -public enum EnumCapabilityFullText { +public enum EnumCapabilityACL { @XmlEnumValue("none") NONE("none"), - @XmlEnumValue("fulltextonly") - FULLTEXTONLY("fulltextonly"), - @XmlEnumValue("fulltextandstructured") - FULLTEXTANDSTRUCTURED("fulltextandstructured"); + @XmlEnumValue("read") + READ("read"), + @XmlEnumValue("set") + SET("set"); private final String value; - EnumCapabilityFullText(String v) { + EnumCapabilityACL(String v) { value = v; } @@ -42,8 +42,8 @@ public enum EnumCapabilityFullText { return value; } - public static EnumCapabilityFullText fromValue(String v) { - for (EnumCapabilityFullText c: EnumCapabilityFullText.values()) { + public static EnumCapabilityACL fromValue(String v) { + for (EnumCapabilityACL c: EnumCapabilityACL.values()) { if (c.value.equals(v)) { return c; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityChanges.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityChanges.java new file mode 100755 index 0000000000..175e34151f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityChanges.java @@ -0,0 +1,69 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumCapabilityChanges. + * + *

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

+ *

+ * <simpleType name="enumCapabilityChanges">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="includeACL"/>
+ *     <enumeration value="includeProperties"/>
+ *     <enumeration value="includeFolders"/>
+ *     <enumeration value="includeDocuments"/>
+ *     <enumeration value="includeRelationships"/>
+ *     <enumeration value="includePolicies"/>
+ *     <enumeration value="all"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumCapabilityChanges", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") +@XmlEnum +public enum EnumCapabilityChanges { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("includeACL") + INCLUDE_ACL("includeACL"), + @XmlEnumValue("includeProperties") + INCLUDE_PROPERTIES("includeProperties"), + @XmlEnumValue("includeFolders") + INCLUDE_FOLDERS("includeFolders"), + @XmlEnumValue("includeDocuments") + INCLUDE_DOCUMENTS("includeDocuments"), + @XmlEnumValue("includeRelationships") + INCLUDE_RELATIONSHIPS("includeRelationships"), + @XmlEnumValue("includePolicies") + INCLUDE_POLICIES("includePolicies"), + @XmlEnumValue("all") + ALL("all"); + private final String value; + + EnumCapabilityChanges(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumCapabilityChanges fromValue(String v) { + for (EnumCapabilityChanges c: EnumCapabilityChanges.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityJoin.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityJoin.java index e376d29812..60ea348691 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityJoin.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityJoin.java @@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlType; *
  * <simpleType name="enumCapabilityJoin">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="nojoin"/>
+ *     <enumeration value="none"/>
  *     <enumeration value="inneronly"/>
  *     <enumeration value="innerandouter"/>
  *   </restriction>
@@ -22,12 +22,12 @@ import javax.xml.bind.annotation.XmlType;
  * 
* */ -@XmlType(name = "enumCapabilityJoin") +@XmlType(name = "enumCapabilityJoin", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumCapabilityJoin { - @XmlEnumValue("nojoin") - NOJOIN("nojoin"), + @XmlEnumValue("none") + NONE("none"), @XmlEnumValue("inneronly") INNERONLY("inneronly"), @XmlEnumValue("innerandouter") diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java index d1c66688ca..a4e86cb2e7 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java @@ -17,13 +17,14 @@ import javax.xml.bind.annotation.XmlType; * <enumeration value="none"/> * <enumeration value="metadataonly"/> * <enumeration value="fulltextonly"/> - * <enumeration value="both"/> + * <enumeration value="bothseparate"/> + * <enumeration value="bothcombined"/> * </restriction> * </simpleType> *
* */ -@XmlType(name = "enumCapabilityQuery") +@XmlType(name = "enumCapabilityQuery", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumCapabilityQuery { @@ -33,8 +34,10 @@ public enum EnumCapabilityQuery { METADATAONLY("metadataonly"), @XmlEnumValue("fulltextonly") FULLTEXTONLY("fulltextonly"), - @XmlEnumValue("both") - BOTH("both"); + @XmlEnumValue("bothseparate") + BOTHSEPARATE("bothseparate"), + @XmlEnumValue("bothcombined") + BOTHCOMBINED("bothcombined"); private final String value; EnumCapabilityQuery(String v) { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java index 11401b726e..c9b1f3d3f3 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java @@ -21,7 +21,7 @@ import javax.xml.bind.annotation.XmlType; *
* */ -@XmlType(name = "enumCardinality") +@XmlType(name = "enumCardinality", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumCardinality { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java index 6cf4f82e3b..d45ed804bb 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java @@ -14,36 +14,39 @@ import javax.xml.bind.annotation.XmlType; *
  * <simpleType name="enumCollectionType">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="root-children"/>
- *     <enumeration value="root-descendants"/>
+ *     <enumeration value="rootchildren"/>
+ *     <enumeration value="rootdescendants"/>
  *     <enumeration value="unfiled"/>
  *     <enumeration value="checkedout"/>
- *     <enumeration value="types-children"/>
- *     <enumeration value="types-descendants"/>
+ *     <enumeration value="typeschildren"/>
+ *     <enumeration value="typesdescendants"/>
  *     <enumeration value="query"/>
+ *     <enumeration value="changes"/>
  *   </restriction>
  * </simpleType>
  * 
* */ -@XmlType(name = "enumCollectionType") +@XmlType(name = "enumCollectionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumCollectionType { - @XmlEnumValue("root-children") - ROOT_CHILDREN("root-children"), - @XmlEnumValue("root-descendants") - ROOT_DESCENDANTS("root-descendants"), + @XmlEnumValue("rootchildren") + ROOTCHILDREN("rootchildren"), + @XmlEnumValue("rootdescendants") + ROOTDESCENDANTS("rootdescendants"), @XmlEnumValue("unfiled") UNFILED("unfiled"), @XmlEnumValue("checkedout") CHECKEDOUT("checkedout"), - @XmlEnumValue("types-children") - TYPES_CHILDREN("types-children"), - @XmlEnumValue("types-descendants") - TYPES_DESCENDANTS("types-descendants"), + @XmlEnumValue("typeschildren") + TYPESCHILDREN("typeschildren"), + @XmlEnumValue("typesdescendants") + TYPESDESCENDANTS("typesdescendants"), @XmlEnumValue("query") - QUERY("query"); + QUERY("query"), + @XmlEnumValue("changes") + CHANGES("changes"); private final String value; EnumCollectionType(String v) { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java b/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java index 25c82fccc3..739a85d259 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; *
* */ -@XmlType(name = "enumContentStreamAllowed") +@XmlType(name = "enumContentStreamAllowed", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumContentStreamAllowed { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.java b/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.java index 45fbe4e55a..10aa84dfdc 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.java @@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlType; *
* */ -@XmlType(name = "enumIncludeRelationships") +@XmlType(name = "enumIncludeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumIncludeRelationships { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.java index 64cd594cd7..8e96590ad7 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.java @@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumObjectType") +@XmlType(name = "enumObjectType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumObjectType { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.java index 5aef9d5265..a4d73868dd 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.java @@ -17,17 +17,19 @@ import javax.xml.bind.annotation.XmlType; * <enumeration value="ObjectId"/> * <enumeration value="Uri"/> * <enumeration value="ObjectTypeId"/> + * <enumeration value="BaseTypeId"/> * <enumeration value="CreatedBy"/> * <enumeration value="CreationDate"/> * <enumeration value="LastModifiedBy"/> * <enumeration value="LastModificationDate"/> * <enumeration value="ChangeToken"/> + * <enumeration value="Name"/> * </restriction> * </simpleType> * * */ -@XmlType(name = "enumPropertiesBase") +@XmlType(name = "enumPropertiesBase", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumPropertiesBase { @@ -37,6 +39,8 @@ public enum EnumPropertiesBase { URI("Uri"), @XmlEnumValue("ObjectTypeId") OBJECT_TYPE_ID("ObjectTypeId"), + @XmlEnumValue("BaseTypeId") + BASE_TYPE_ID("BaseTypeId"), @XmlEnumValue("CreatedBy") CREATED_BY("CreatedBy"), @XmlEnumValue("CreationDate") @@ -46,7 +50,9 @@ public enum EnumPropertiesBase { @XmlEnumValue("LastModificationDate") LAST_MODIFICATION_DATE("LastModificationDate"), @XmlEnumValue("ChangeToken") - CHANGE_TOKEN("ChangeToken"); + CHANGE_TOKEN("ChangeToken"), + @XmlEnumValue("Name") + NAME("Name"); private final String value; EnumPropertiesBase(String v) { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesDocument.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesDocument.java new file mode 100755 index 0000000000..8aff6969bd --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesDocument.java @@ -0,0 +1,120 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumPropertiesDocument. + * + *

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

+ *

+ * <simpleType name="enumPropertiesDocument">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Name"/>
+ *     <enumeration value="ObjectId"/>
+ *     <enumeration value="BaseTypeId"/>
+ *     <enumeration value="Uri"/>
+ *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="CreatedBy"/>
+ *     <enumeration value="CreationDate"/>
+ *     <enumeration value="LastModifiedBy"/>
+ *     <enumeration value="LastModificationDate"/>
+ *     <enumeration value="ChangeToken"/>
+ *     <enumeration value="IsImmutable"/>
+ *     <enumeration value="IsLatestVersion"/>
+ *     <enumeration value="IsMajorVersion"/>
+ *     <enumeration value="IsLatestMajorVersion"/>
+ *     <enumeration value="VersionLabel"/>
+ *     <enumeration value="VersionSeriesId"/>
+ *     <enumeration value="IsVersionSeriesCheckedOut"/>
+ *     <enumeration value="VersionSeriesCheckedOutBy"/>
+ *     <enumeration value="VersionSeriesCheckedOutId"/>
+ *     <enumeration value="CheckinComment"/>
+ *     <enumeration value="ContentStreamAllowed"/>
+ *     <enumeration value="ContentStreamLength"/>
+ *     <enumeration value="ContentStreamMimeType"/>
+ *     <enumeration value="ContentStreamFilename"/>
+ *     <enumeration value="ContentStreamUri"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumPropertiesDocument", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") +@XmlEnum +public enum EnumPropertiesDocument { + + @XmlEnumValue("Name") + NAME("Name"), + @XmlEnumValue("ObjectId") + OBJECT_ID("ObjectId"), + @XmlEnumValue("BaseTypeId") + BASE_TYPE_ID("BaseTypeId"), + @XmlEnumValue("Uri") + URI("Uri"), + @XmlEnumValue("ObjectTypeId") + OBJECT_TYPE_ID("ObjectTypeId"), + @XmlEnumValue("CreatedBy") + CREATED_BY("CreatedBy"), + @XmlEnumValue("CreationDate") + CREATION_DATE("CreationDate"), + @XmlEnumValue("LastModifiedBy") + LAST_MODIFIED_BY("LastModifiedBy"), + @XmlEnumValue("LastModificationDate") + LAST_MODIFICATION_DATE("LastModificationDate"), + @XmlEnumValue("ChangeToken") + CHANGE_TOKEN("ChangeToken"), + @XmlEnumValue("IsImmutable") + IS_IMMUTABLE("IsImmutable"), + @XmlEnumValue("IsLatestVersion") + IS_LATEST_VERSION("IsLatestVersion"), + @XmlEnumValue("IsMajorVersion") + IS_MAJOR_VERSION("IsMajorVersion"), + @XmlEnumValue("IsLatestMajorVersion") + IS_LATEST_MAJOR_VERSION("IsLatestMajorVersion"), + @XmlEnumValue("VersionLabel") + VERSION_LABEL("VersionLabel"), + @XmlEnumValue("VersionSeriesId") + VERSION_SERIES_ID("VersionSeriesId"), + @XmlEnumValue("IsVersionSeriesCheckedOut") + IS_VERSION_SERIES_CHECKED_OUT("IsVersionSeriesCheckedOut"), + @XmlEnumValue("VersionSeriesCheckedOutBy") + VERSION_SERIES_CHECKED_OUT_BY("VersionSeriesCheckedOutBy"), + @XmlEnumValue("VersionSeriesCheckedOutId") + VERSION_SERIES_CHECKED_OUT_ID("VersionSeriesCheckedOutId"), + @XmlEnumValue("CheckinComment") + CHECKIN_COMMENT("CheckinComment"), + @XmlEnumValue("ContentStreamAllowed") + CONTENT_STREAM_ALLOWED("ContentStreamAllowed"), + @XmlEnumValue("ContentStreamLength") + CONTENT_STREAM_LENGTH("ContentStreamLength"), + @XmlEnumValue("ContentStreamMimeType") + CONTENT_STREAM_MIME_TYPE("ContentStreamMimeType"), + @XmlEnumValue("ContentStreamFilename") + CONTENT_STREAM_FILENAME("ContentStreamFilename"), + @XmlEnumValue("ContentStreamUri") + CONTENT_STREAM_URI("ContentStreamUri"); + private final String value; + + EnumPropertiesDocument(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumPropertiesDocument fromValue(String v) { + for (EnumPropertiesDocument c: EnumPropertiesDocument.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesFolder.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesFolder.java index 463d6ce7b0..0dbf9067cf 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesFolder.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesFolder.java @@ -14,7 +14,9 @@ import javax.xml.bind.annotation.XmlType; *
  * <simpleType name="enumPropertiesFolder">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Name"/>
  *     <enumeration value="ObjectId"/>
+ *     <enumeration value="BaseTypeId"/>
  *     <enumeration value="Uri"/>
  *     <enumeration value="ObjectTypeId"/>
  *     <enumeration value="CreatedBy"/>
@@ -29,12 +31,16 @@ import javax.xml.bind.annotation.XmlType;
  * 
* */ -@XmlType(name = "enumPropertiesFolder") +@XmlType(name = "enumPropertiesFolder", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumPropertiesFolder { + @XmlEnumValue("Name") + NAME("Name"), @XmlEnumValue("ObjectId") OBJECT_ID("ObjectId"), + @XmlEnumValue("BaseTypeId") + BASE_TYPE_ID("BaseTypeId"), @XmlEnumValue("Uri") URI("Uri"), @XmlEnumValue("ObjectTypeId") diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java index 16a3665104..f3d4195b4b 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java @@ -14,9 +14,11 @@ import javax.xml.bind.annotation.XmlType; *
  * <simpleType name="enumPropertiesPolicy">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Name"/>
  *     <enumeration value="ObjectId"/>
  *     <enumeration value="Uri"/>
  *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="BaseTypeId"/>
  *     <enumeration value="CreatedBy"/>
  *     <enumeration value="CreationDate"/>
  *     <enumeration value="LastModifiedBy"/>
@@ -29,16 +31,20 @@ import javax.xml.bind.annotation.XmlType;
  * 
* */ -@XmlType(name = "enumPropertiesPolicy") +@XmlType(name = "enumPropertiesPolicy", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumPropertiesPolicy { + @XmlEnumValue("Name") + NAME("Name"), @XmlEnumValue("ObjectId") OBJECT_ID("ObjectId"), @XmlEnumValue("Uri") URI("Uri"), @XmlEnumValue("ObjectTypeId") OBJECT_TYPE_ID("ObjectTypeId"), + @XmlEnumValue("BaseTypeId") + BASE_TYPE_ID("BaseTypeId"), @XmlEnumValue("CreatedBy") CREATED_BY("CreatedBy"), @XmlEnumValue("CreationDate") diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java index 40be3b8483..cced8c646d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java @@ -14,9 +14,11 @@ import javax.xml.bind.annotation.XmlType; *
  * <simpleType name="enumPropertiesRelationship">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Name"/>
  *     <enumeration value="ObjectId"/>
  *     <enumeration value="Uri"/>
  *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="BaseTypeId"/>
  *     <enumeration value="CreatedBy"/>
  *     <enumeration value="CreationDate"/>
  *     <enumeration value="LastModifiedBy"/>
@@ -29,16 +31,20 @@ import javax.xml.bind.annotation.XmlType;
  * 
* */ -@XmlType(name = "enumPropertiesRelationship") +@XmlType(name = "enumPropertiesRelationship", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumPropertiesRelationship { + @XmlEnumValue("Name") + NAME("Name"), @XmlEnumValue("ObjectId") OBJECT_ID("ObjectId"), @XmlEnumValue("Uri") URI("Uri"), @XmlEnumValue("ObjectTypeId") OBJECT_TYPE_ID("ObjectTypeId"), + @XmlEnumValue("BaseTypeId") + BASE_TYPE_ID("BaseTypeId"), @XmlEnumValue("CreatedBy") CREATED_BY("CreatedBy"), @XmlEnumValue("CreationDate") diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java index a56e0008f4..bf89ee019b 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java @@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumPropertyType") +@XmlType(name = "enumPropertyType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumPropertyType { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java index 59a8969892..bb9604e6af 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java @@ -16,13 +16,13 @@ import javax.xml.bind.annotation.XmlType; * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="source"/> * <enumeration value="target"/> - * <enumeration value="both"/> + * <enumeration value="either"/> * </restriction> * </simpleType> * * */ -@XmlType(name = "enumRelationshipDirection") +@XmlType(name = "enumRelationshipDirection", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumRelationshipDirection { @@ -30,8 +30,8 @@ public enum EnumRelationshipDirection { SOURCE("source"), @XmlEnumValue("target") TARGET("target"), - @XmlEnumValue("both") - BOTH("both"); + @XmlEnumValue("either") + EITHER("either"); private final String value; EnumRelationshipDirection(String v) { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java index be7b83db04..b0cad47085 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java @@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumRepositoryRelationship") +@XmlType(name = "enumRepositoryRelationship", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumRepositoryRelationship { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.java index 310f2bb65c..d11de9e7ef 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.java @@ -16,15 +16,19 @@ import javax.xml.bind.annotation.XmlType; * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="childTypes"/> * <enumeration value="continueOnFailure"/> + * <enumeration value="checkin"/> + * <enumeration value="checkinComment"/> * <enumeration value="depth"/> * <enumeration value="direction"/> * <enumeration value="filter"/> * <enumeration value="folderByPath"/> + * <enumeration value="folderId"/> * <enumeration value="includeAllowableActions"/> * <enumeration value="includePropertyDefinitions"/> * <enumeration value="includeRelationships"/> * <enumeration value="includeSubrelationshipTypes"/> * <enumeration value="length"/> + * <enumeration value="major"/> * <enumeration value="majorVersion"/> * <enumeration value="maxItems"/> * <enumeration value="offset"/> @@ -44,7 +48,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumRestArguments") +@XmlType(name = "enumRestArguments", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumRestArguments { @@ -52,6 +56,10 @@ public enum EnumRestArguments { CHILD_TYPES("childTypes"), @XmlEnumValue("continueOnFailure") CONTINUE_ON_FAILURE("continueOnFailure"), + @XmlEnumValue("checkin") + CHECKIN("checkin"), + @XmlEnumValue("checkinComment") + CHECKIN_COMMENT("checkinComment"), @XmlEnumValue("depth") DEPTH("depth"), @XmlEnumValue("direction") @@ -60,6 +68,8 @@ public enum EnumRestArguments { FILTER("filter"), @XmlEnumValue("folderByPath") FOLDER_BY_PATH("folderByPath"), + @XmlEnumValue("folderId") + FOLDER_ID("folderId"), @XmlEnumValue("includeAllowableActions") INCLUDE_ALLOWABLE_ACTIONS("includeAllowableActions"), @XmlEnumValue("includePropertyDefinitions") @@ -70,6 +80,8 @@ public enum EnumRestArguments { INCLUDE_SUBRELATIONSHIP_TYPES("includeSubrelationshipTypes"), @XmlEnumValue("length") LENGTH("length"), + @XmlEnumValue("major") + MAJOR("major"), @XmlEnumValue("majorVersion") MAJOR_VERSION("majorVersion"), @XmlEnumValue("maxItems") diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java index 2261d692d9..b640d747a9 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java @@ -20,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumRestOutputHeaders") +@XmlType(name = "enumRestOutputHeaders", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumRestOutputHeaders { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java b/source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java index 0badec073c..b7004c8727 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumReturnVersion") +@XmlType(name = "enumReturnVersion", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumReturnVersion { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumServiceException.java b/source/generated/org/alfresco/repo/cmis/ws/EnumServiceException.java new file mode 100755 index 0000000000..58b16eb169 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumServiceException.java @@ -0,0 +1,93 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumServiceException. + * + *

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

+ *

+ * <simpleType name="enumServiceException">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="constraint"/>
+ *     <enumeration value="contentAlreadyExists"/>
+ *     <enumeration value="filterNotValid"/>
+ *     <enumeration value="folderNotValid"/>
+ *     <enumeration value="invalidArgument"/>
+ *     <enumeration value="notInFolder"/>
+ *     <enumeration value="objectNotFound"/>
+ *     <enumeration value="offset"/>
+ *     <enumeration value="notSupported"/>
+ *     <enumeration value="permissionDenied"/>
+ *     <enumeration value="runtime"/>
+ *     <enumeration value="storage"/>
+ *     <enumeration value="streamNotSupported"/>
+ *     <enumeration value="type"/>
+ *     <enumeration value="updateConflict"/>
+ *     <enumeration value="versioning"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumServiceException") +@XmlEnum +public enum EnumServiceException { + + @XmlEnumValue("constraint") + CONSTRAINT("constraint"), + @XmlEnumValue("contentAlreadyExists") + CONTENT_ALREADY_EXISTS("contentAlreadyExists"), + @XmlEnumValue("filterNotValid") + FILTER_NOT_VALID("filterNotValid"), + @XmlEnumValue("folderNotValid") + FOLDER_NOT_VALID("folderNotValid"), + @XmlEnumValue("invalidArgument") + INVALID_ARGUMENT("invalidArgument"), + @XmlEnumValue("notInFolder") + NOT_IN_FOLDER("notInFolder"), + @XmlEnumValue("objectNotFound") + OBJECT_NOT_FOUND("objectNotFound"), + @XmlEnumValue("offset") + OFFSET("offset"), + @XmlEnumValue("notSupported") + NOT_SUPPORTED("notSupported"), + @XmlEnumValue("permissionDenied") + PERMISSION_DENIED("permissionDenied"), + @XmlEnumValue("runtime") + RUNTIME("runtime"), + @XmlEnumValue("storage") + STORAGE("storage"), + @XmlEnumValue("streamNotSupported") + STREAM_NOT_SUPPORTED("streamNotSupported"), + @XmlEnumValue("type") + TYPE("type"), + @XmlEnumValue("updateConflict") + UPDATE_CONFLICT("updateConflict"), + @XmlEnumValue("versioning") + VERSIONING("versioning"); + private final String value; + + EnumServiceException(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumServiceException fromValue(String v) { + for (EnumServiceException c: EnumServiceException.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumTypeOfChanges.java b/source/generated/org/alfresco/repo/cmis/ws/EnumTypeOfChanges.java new file mode 100755 index 0000000000..04e5ac2b10 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumTypeOfChanges.java @@ -0,0 +1,57 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumTypeOfChanges. + * + *

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

+ *

+ * <simpleType name="enumTypeOfChanges">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="created"/>
+ *     <enumeration value="updated"/>
+ *     <enumeration value="deleted"/>
+ *     <enumeration value="security"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumTypeOfChanges", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") +@XmlEnum +public enum EnumTypeOfChanges { + + @XmlEnumValue("created") + CREATED("created"), + @XmlEnumValue("updated") + UPDATED("updated"), + @XmlEnumValue("deleted") + DELETED("deleted"), + @XmlEnumValue("security") + SECURITY("security"); + private final String value; + + EnumTypeOfChanges(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumTypeOfChanges fromValue(String v) { + for (EnumTypeOfChanges c: EnumTypeOfChanges.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumTypesOfFileableObjects.java b/source/generated/org/alfresco/repo/cmis/ws/EnumTypesOfFileableObjects.java index c89071f554..ca0f5be7b3 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumTypesOfFileableObjects.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumTypesOfFileableObjects.java @@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumTypesOfFileableObjects") +@XmlType(name = "enumTypesOfFileableObjects", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumTypesOfFileableObjects { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java b/source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java index d9893bd4cd..f9ff6f29c7 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumUnfileNonfolderObjects") +@XmlType(name = "enumUnfileNonfolderObjects", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumUnfileNonfolderObjects { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumUpdatability.java b/source/generated/org/alfresco/repo/cmis/ws/EnumUpdatability.java new file mode 100755 index 0000000000..563cedc176 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumUpdatability.java @@ -0,0 +1,54 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumUpdatability. + * + *

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

+ *

+ * <simpleType name="enumUpdatability">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="readonly"/>
+ *     <enumeration value="readwrite"/>
+ *     <enumeration value="whencheckedout"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumUpdatability", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") +@XmlEnum +public enum EnumUpdatability { + + @XmlEnumValue("readonly") + READONLY("readonly"), + @XmlEnumValue("readwrite") + READWRITE("readwrite"), + @XmlEnumValue("whencheckedout") + WHENCHECKEDOUT("whencheckedout"); + private final String value; + + EnumUpdatability(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumUpdatability fromValue(String v) { + for (EnumUpdatability c: EnumUpdatability.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumUpdateability.java b/source/generated/org/alfresco/repo/cmis/ws/EnumUpdateability.java index 2a6a643f95..cfe8549df8 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumUpdateability.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumUpdateability.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumUpdateability") +@XmlType(name = "enumUpdateability", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumUpdateability { diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.java b/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.java index ce2c2032a7..495b8ca089 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.java @@ -22,7 +22,7 @@ import javax.xml.bind.annotation.XmlType; * * */ -@XmlType(name = "enumVersioningState") +@XmlType(name = "enumVersioningState", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") @XmlEnum public enum EnumVersioningState { diff --git a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java deleted file mode 100644 index f095a4078a..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "filterNotValidException", targetNamespace = "http://www.cmis.org/2008/05") -public class FilterNotValidException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.FilterNotValidExceptionType filterNotValidException; - - 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.FilterNotValidExceptionType filterNotValidException) { - super(message); - this.filterNotValidException = filterNotValidException; - } - - public FilterNotValidException(String message, org.alfresco.repo.cmis.ws.FilterNotValidExceptionType filterNotValidException, Throwable cause) { - super(message, cause); - this.filterNotValidException = filterNotValidException; - } - - public org.alfresco.repo.cmis.ws.FilterNotValidExceptionType getFaultInfo() { - return this.filterNotValidException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidExceptionType.java deleted file mode 100755 index bc1447acbf..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for filterNotValidExceptionType complex type. - * - *

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

- * <complexType name="filterNotValidExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "filterNotValidExceptionType") -public class FilterNotValidExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java deleted file mode 100644 index 9b4e5f0994..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:55 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "folderNotValidException", targetNamespace = "http://www.cmis.org/2008/05") -public class FolderNotValidException extends Exception { - public static final long serialVersionUID = 20080905134455L; - - private org.alfresco.repo.cmis.ws.FolderNotValidExceptionType folderNotValidException; - - 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.FolderNotValidExceptionType folderNotValidException) { - super(message); - this.folderNotValidException = folderNotValidException; - } - - public FolderNotValidException(String message, org.alfresco.repo.cmis.ws.FolderNotValidExceptionType folderNotValidException, Throwable cause) { - super(message, cause); - this.folderNotValidException = folderNotValidException; - } - - public org.alfresco.repo.cmis.ws.FolderNotValidExceptionType getFaultInfo() { - return this.folderNotValidException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidExceptionType.java deleted file mode 100755 index f759d492cf..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for folderNotValidExceptionType complex type. - * - *

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

- * <complexType name="folderNotValidExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "folderNotValidExceptionType") -public class FolderNotValidExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java index 038bd3e3b1..fd462cb7b7 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java @@ -24,7 +24,7 @@ import javax.xml.bind.annotation.XmlType; * <element name="versionSeriesId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -48,12 +48,12 @@ public class GetAllVersions { protected String repositoryId; @XmlElement(required = true) protected String versionSeriesId; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -156,10 +156,10 @@ public class GetAllVersions { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -168,11 +168,11 @@ public class GetAllVersions { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java index 8cd1442f88..14df04b4d3 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -35,6 +36,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getAllVersionsResponse") public class GetAllVersionsResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java index 84965c952a..9d0f1306ca 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java @@ -18,7 +18,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="allowableActions" type="{http://www.cmis.org/2008/05}cmisAllowableActionsType"/> + * <element name="allowableActions" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAllowableActionsType"/> * </sequence> * </restriction> * </complexContent> diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java index 93c8513ad2..7a3b7d7bc7 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java @@ -44,7 +44,7 @@ public class GetAppliedPolicies { protected String repositoryId; @XmlElement(required = true) protected String objectId; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java index fa5105226d..e4fa207b87 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -35,6 +36,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getAppliedPoliciesResponse") public class GetAppliedPoliciesResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java index 7e64618566..fa1c931f20 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java @@ -22,10 +22,11 @@ import javax.xml.bind.annotation.XmlType; * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="folderID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="orderBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * <element name="maxItems" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * </sequence> @@ -39,8 +40,9 @@ import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "repositoryId", - "folderID", + "folderId", "filter", + "orderBy", "includeAllowableActions", "includeRelationships", "maxItems", @@ -51,17 +53,19 @@ public class GetCheckedoutDocs { @XmlElement(required = true) protected String repositoryId; - @XmlElementRef(name = "folderID", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement folderID; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "folderId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement folderId; + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "orderBy", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement orderBy; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; - @XmlElementRef(name = "maxItems", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; + @XmlElementRef(name = "maxItems", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement maxItems; - @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "skipCount", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement skipCount; /** @@ -89,27 +93,27 @@ public class GetCheckedoutDocs { } /** - * Gets the value of the folderID property. + * Gets the value of the folderId property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public JAXBElement getFolderID() { - return folderID; + public JAXBElement getFolderId() { + return folderId; } /** - * Sets the value of the folderID property. + * Sets the value of the folderId property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFolderID(JAXBElement value) { - this.folderID = ((JAXBElement ) value); + public void setFolderId(JAXBElement value) { + this.folderId = ((JAXBElement ) value); } /** @@ -136,6 +140,30 @@ public class GetCheckedoutDocs { this.filter = ((JAXBElement ) value); } + /** + * Gets the value of the orderBy property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getOrderBy() { + return orderBy; + } + + /** + * Sets the value of the orderBy property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setOrderBy(JAXBElement value) { + this.orderBy = ((JAXBElement ) value); + } + /** * Gets the value of the includeAllowableActions property. * @@ -165,10 +193,10 @@ public class GetCheckedoutDocs { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -177,11 +205,11 @@ public class GetCheckedoutDocs { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java index f699eb45be..1ce7c5aa03 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * </sequence> * </restriction> @@ -37,6 +38,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getCheckedoutDocsResponse") public class GetCheckedoutDocsResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; protected boolean hasMoreItems; diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java index c4f88c1540..277949a1e4 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java @@ -23,12 +23,13 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="type" type="{http://www.cmis.org/2008/05}enumTypesOfFileableObjects" minOccurs="0"/> + * <element name="type" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumTypesOfFileableObjects" minOccurs="0"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * <element name="maxItems" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> + * <element name="orderBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -46,7 +47,8 @@ import javax.xml.bind.annotation.XmlType; "includeAllowableActions", "includeRelationships", "maxItems", - "skipCount" + "skipCount", + "orderBy" }) @XmlRootElement(name = "getChildren") public class GetChildren { @@ -55,18 +57,19 @@ public class GetChildren { protected String repositoryId; @XmlElement(required = true) protected String folderId; - @XmlElementRef(name = "type", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "type", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement type; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; - @XmlElementRef(name = "maxItems", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; + @XmlElementRef(name = "maxItems", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement maxItems; - @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "skipCount", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement skipCount; + protected String orderBy; /** * Gets the value of the repositoryId property. @@ -193,10 +196,10 @@ public class GetChildren { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -205,11 +208,11 @@ public class GetChildren { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** @@ -260,4 +263,28 @@ public class GetChildren { this.skipCount = ((JAXBElement ) value); } + /** + * Gets the value of the orderBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrderBy() { + return orderBy; + } + + /** + * Sets the value of the orderBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrderBy(String value) { + this.orderBy = value; + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java index 6e6b650a6d..44c15c62c3 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * </sequence> * </restriction> @@ -37,6 +38,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getChildrenResponse") public class GetChildrenResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; protected boolean hasMoreItems; diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentChanges.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentChanges.java new file mode 100755 index 0000000000..0f68b2084d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentChanges.java @@ -0,0 +1,205 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

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="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="maxItems" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="includeACL" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="includeProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "repositoryId", + "changeToken", + "maxItems", + "includeACL", + "includeProperties", + "filter" +}) +@XmlRootElement(name = "getContentChanges") +public class GetContentChanges { + + @XmlElement(required = true) + protected String repositoryId; + protected String changeToken; + @XmlElementRef(name = "maxItems", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement maxItems; + @XmlElementRef(name = "includeACL", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeACL; + @XmlElementRef(name = "includeProperties", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeProperties; + protected String filter; + + /** + * 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 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 maxItems property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} + * + */ + public JAXBElement getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} + * + */ + public void setMaxItems(JAXBElement value) { + this.maxItems = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeACL property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeACL() { + return includeACL; + } + + /** + * Sets the value of the includeACL property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeACL(JAXBElement value) { + this.includeACL = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeProperties property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeProperties() { + return includeProperties; + } + + /** + * Sets the value of the includeProperties property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeProperties(JAXBElement value) { + this.includeProperties = ((JAXBElement ) 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/GetContentChangesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentChangesResponse.java new file mode 100755 index 0000000000..e6730708b7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentChangesResponse.java @@ -0,0 +1,99 @@ + +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 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="changedObject" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "changedObject", + "changeToken" +}) +@XmlRootElement(name = "getContentChangesResponse") +public class GetContentChangesResponse { + + @XmlElement(nillable = true) + protected List changedObject; + @XmlElement(required = true) + protected String changeToken; + + /** + * Gets the value of the changedObject 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 changedObject property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } + * + * + */ + public List getChangedObject() { + if (changedObject == null) { + changedObject = new ArrayList(); + } + return this.changedObject; + } + + /** + * 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/GetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java index 761001c298..059d44ddd7 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java @@ -18,7 +18,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="contentStream" type="{http://www.cmis.org/2008/05}cmisContentStreamType"/> + * <element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisContentStreamType"/> * </sequence> * </restriction> * </complexContent> diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java index cfddbe4ac0..47dc40cff1 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java @@ -23,11 +23,12 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="type" type="{http://www.cmis.org/2008/05}enumTypesOfFileableObjects" minOccurs="0"/> + * <element name="type" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumTypesOfFileableObjects" minOccurs="0"/> * <element name="depth" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> + * <element name="orderBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -44,7 +45,8 @@ import javax.xml.bind.annotation.XmlType; "depth", "filter", "includeAllowableActions", - "includeRelationships" + "includeRelationships", + "orderBy" }) @XmlRootElement(name = "getDescendants") public class GetDescendants { @@ -54,14 +56,15 @@ public class GetDescendants { @XmlElement(required = true) protected String folderId; protected EnumTypesOfFileableObjects type; - @XmlElementRef(name = "depth", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "depth", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement depth; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; + protected String orderBy; /** * Gets the value of the repositoryId property. @@ -212,10 +215,10 @@ public class GetDescendants { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -224,11 +227,35 @@ public class GetDescendants { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); + } + + /** + * Gets the value of the orderBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrderBy() { + return orderBy; + } + + /** + * Sets the value of the orderBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrderBy(String value) { + this.orderBy = value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java index b8ed7bdadc..5f218b6c91 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -35,6 +36,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getDescendantsResponse") public class GetDescendantsResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java index 3450ba290d..3a0e3b63dc 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java @@ -24,7 +24,7 @@ import javax.xml.bind.annotation.XmlType; * <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * <element name="returnToRoot" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * </sequence> * </restriction> @@ -51,11 +51,11 @@ public class GetFolderParent { @XmlElement(required = true) protected String folderId; protected String filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; - @XmlElementRef(name = "returnToRoot", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; + @XmlElementRef(name = "returnToRoot", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement returnToRoot; /** @@ -159,10 +159,10 @@ public class GetFolderParent { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -171,11 +171,11 @@ public class GetFolderParent { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java index 2b24c1f6b2..acaa54f957 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -35,6 +36,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getFolderParentResponse") public class GetFolderParentResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java index d8410550dd..fdcc479428 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java @@ -24,7 +24,7 @@ import javax.xml.bind.annotation.XmlType; * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -49,10 +49,10 @@ public class GetObjectParents { @XmlElement(required = true) protected String objectId; protected String filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -155,10 +155,10 @@ public class GetObjectParents { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -167,11 +167,11 @@ public class GetObjectParents { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParentsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParentsResponse.java index 344ef7ab4c..3441924f31 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParentsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParentsResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -35,6 +36,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getObjectParentsResponse") public class GetObjectParentsResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java index 97e694be15..a8646d5e67 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java @@ -22,10 +22,10 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="returnVersion" type="{http://www.cmis.org/2008/05}enumReturnVersion" minOccurs="0"/> + * <element name="returnVersion" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumReturnVersion" minOccurs="0"/> * <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -50,14 +50,14 @@ public class GetProperties { protected String repositoryId; @XmlElement(required = true) protected String objectId; - @XmlElementRef(name = "returnVersion", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "returnVersion", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement returnVersion; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -184,10 +184,10 @@ public class GetProperties { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -196,11 +196,11 @@ public class GetProperties { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersion.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersion.java index 005ea25aee..ca51eed5c4 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersion.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersion.java @@ -47,7 +47,7 @@ public class GetPropertiesOfLatestVersion { @XmlElement(required = true) protected String versionSeriesId; protected boolean majorVersion; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java index c4f09a659c..1c60d18098 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java @@ -18,7 +18,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getPropertiesOfLatestVersionResponse") public class GetPropertiesOfLatestVersionResponse { - @XmlElement(required = true) + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", required = true) protected CmisObjectType object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java index c3b14d7cbf..0682eda53e 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java @@ -18,7 +18,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getPropertiesResponse") public class GetPropertiesResponse { - @XmlElement(required = true) + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", required = true) protected CmisObjectType object; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java index cd9acb1fa1..ef105fb547 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java @@ -23,12 +23,12 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="direction" type="{http://www.cmis.org/2008/05}enumRelationshipDirection" minOccurs="0"/> + * <element name="direction" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumRelationshipDirection" minOccurs="0"/> * <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 name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="includeRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includeRelationships" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumIncludeRelationships" minOccurs="0"/> * <element name="maxItems" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * </sequence> @@ -59,21 +59,21 @@ public class GetRelationships { protected String repositoryId; @XmlElement(required = true) protected String objectId; - @XmlElementRef(name = "direction", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "direction", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement direction; - @XmlElementRef(name = "typeId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "typeId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement typeId; - @XmlElementRef(name = "includeSubRelationshipTypes", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeSubRelationshipTypes", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeSubRelationshipTypes; - @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "filter", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement filter; - @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeAllowableActions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement includeAllowableActions; - @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement includeRelationships; - @XmlElementRef(name = "maxItems", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includeRelationships", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includeRelationships; + @XmlElementRef(name = "maxItems", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement maxItems; - @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "skipCount", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement skipCount; /** @@ -249,10 +249,10 @@ public class GetRelationships { * * @return * possible object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public JAXBElement getIncludeRelationships() { + public JAXBElement getIncludeRelationships() { return includeRelationships; } @@ -261,11 +261,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >} * */ - public void setIncludeRelationships(JAXBElement value) { - this.includeRelationships = ((JAXBElement ) value); + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java index 9cbb191d0d..bebf688167 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * </sequence> * </restriction> @@ -37,6 +38,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getRelationshipsResponse") public class GetRelationshipsResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; protected boolean hasMoreItems; diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java index 37f7f33d5d..ac73e38ad3 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java @@ -20,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="repository" type="{http://www.cmis.org/2008/05}cmisRepositoryEntryType" maxOccurs="unbounded" minOccurs="0"/> + * <element name="repository" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisRepositoryEntryType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> 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 100755 index 0000000000..8962c4d091 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.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 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="repositoryInfo" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisRepositoryInfoType"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "repositoryInfo" +}) +@XmlRootElement(name = "getRepositoryInfoResponse") +public class GetRepositoryInfoResponse { + + @XmlElement(required = true) + protected CmisRepositoryInfoType repositoryInfo; + + /** + * Gets the value of the repositoryInfo property. + * + * @return + * possible object is + * {@link CmisRepositoryInfoType } + * + */ + public CmisRepositoryInfoType getRepositoryInfo() { + return repositoryInfo; + } + + /** + * Sets the value of the repositoryInfo property. + * + * @param value + * allowed object is + * {@link CmisRepositoryInfoType } + * + */ + public void setRepositoryInfo(CmisRepositoryInfoType value) { + this.repositoryInfo = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java index adfbfc9e78..d27e7416f0 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java @@ -1,10 +1,8 @@ package org.alfresco.repo.cmis.ws; -import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @@ -19,7 +17,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}type" minOccurs="0"/> + * <element name="type" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisTypeDefinitionType" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -35,22 +33,17 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getTypeDefinitionResponse") public class GetTypeDefinitionResponse { - @XmlElementRef(name = "type", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement type; + protected CmisTypeDefinitionType type; /** * Gets the value of the type property. * * @return * possible object is - * {@link JAXBElement }{@code <}{@link CmisTypeFolderDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypePolicyDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeDocumentDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeRelationshipDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeDefinitionType }{@code >} + * {@link CmisTypeDefinitionType } * */ - public JAXBElement getType() { + public CmisTypeDefinitionType getType() { return type; } @@ -59,15 +52,11 @@ public class GetTypeDefinitionResponse { * * @param value * allowed object is - * {@link JAXBElement }{@code <}{@link CmisTypeFolderDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypePolicyDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeDocumentDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeRelationshipDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeDefinitionType }{@code >} + * {@link CmisTypeDefinitionType } * */ - public void setType(JAXBElement value) { - this.type = ((JAXBElement ) value); + public void setType(CmisTypeDefinitionType value) { + this.type = value; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java index d95bcfb87e..dd812154fa 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java @@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlType; * <sequence> * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> - * <element name="returnPropertyDefinitions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="includePropertyDefinitions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <element name="maxItems" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> * </sequence> @@ -38,7 +38,7 @@ import javax.xml.bind.annotation.XmlType; @XmlType(name = "", propOrder = { "repositoryId", "typeId", - "returnPropertyDefinitions", + "includePropertyDefinitions", "maxItems", "skipCount" }) @@ -47,13 +47,13 @@ public class GetTypes { @XmlElement(required = true) protected String repositoryId; - @XmlElementRef(name = "typeId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "typeId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement typeId; - @XmlElementRef(name = "returnPropertyDefinitions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected JAXBElement returnPropertyDefinitions; - @XmlElementRef(name = "maxItems", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "includePropertyDefinitions", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) + protected JAXBElement includePropertyDefinitions; + @XmlElementRef(name = "maxItems", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement maxItems; - @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "skipCount", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement skipCount; /** @@ -105,27 +105,27 @@ public class GetTypes { } /** - * Gets the value of the returnPropertyDefinitions property. + * Gets the value of the includePropertyDefinitions property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public JAXBElement getReturnPropertyDefinitions() { - return returnPropertyDefinitions; + public JAXBElement getIncludePropertyDefinitions() { + return includePropertyDefinitions; } /** - * Sets the value of the returnPropertyDefinitions property. + * Sets the value of the includePropertyDefinitions property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setReturnPropertyDefinitions(JAXBElement value) { - this.returnPropertyDefinitions = ((JAXBElement ) value); + public void setIncludePropertyDefinitions(JAXBElement value) { + this.includePropertyDefinitions = ((JAXBElement ) value); } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java index 50d5976719..795a454f45 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java @@ -3,10 +3,8 @@ package org.alfresco.repo.cmis.ws; import java.util.ArrayList; import java.util.List; -import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @@ -21,7 +19,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}type" maxOccurs="unbounded" minOccurs="0"/> + * <element name="type" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/> * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * </sequence> * </restriction> @@ -39,8 +37,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getTypesResponse") public class GetTypesResponse { - @XmlElementRef(name = "type", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) - protected List> type; + protected List type; protected boolean hasMoreItems; /** @@ -61,17 +58,13 @@ public class GetTypesResponse { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link CmisTypeFolderDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypePolicyDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeDocumentDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeRelationshipDefinitionType }{@code >} - * {@link JAXBElement }{@code <}{@link CmisTypeDefinitionType }{@code >} + * {@link CmisTypeDefinitionType } * * */ - public List> getType() { + public List getType() { if (type == null) { - type = new ArrayList>(); + type = new ArrayList(); } return this.type; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java deleted file mode 100644 index 85aac0c4bc..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "invalidArgumentException", targetNamespace = "http://www.cmis.org/2008/05") -public class InvalidArgumentException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.InvalidArgumentExceptionType invalidArgumentException; - - 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.InvalidArgumentExceptionType invalidArgumentException) { - super(message); - this.invalidArgumentException = invalidArgumentException; - } - - public InvalidArgumentException(String message, org.alfresco.repo.cmis.ws.InvalidArgumentExceptionType invalidArgumentException, Throwable cause) { - super(message, cause); - this.invalidArgumentException = invalidArgumentException; - } - - public org.alfresco.repo.cmis.ws.InvalidArgumentExceptionType getFaultInfo() { - return this.invalidArgumentException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentExceptionType.java deleted file mode 100755 index 0ad32d46f1..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for invalidArgumentExceptionType complex type. - * - *

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

- * <complexType name="invalidArgumentExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "invalidArgumentExceptionType") -public class InvalidArgumentExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java index 55ef7cab82..a79af106c8 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java @@ -48,7 +48,7 @@ public class MoveObject { protected String objectId; @XmlElement(required = true) protected String targetFolderId; - @XmlElementRef(name = "sourceFolderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "sourceFolderId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement sourceFolderId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java index 31c6598238..134b32a26c 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:55 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "MultiFilingService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/MultiFilingService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class MultiFilingService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "MultiFilingService"); - public final static QName MultiFilingServicePort = new QName("http://www.cmis.org/2008/05", "MultiFilingServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "MultiFilingService"); + public final static QName MultiFilingServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "MultiFilingServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/MultiFilingService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/MultiFilingService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java index 5ba99bfc0d..8cdd524d95 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java @@ -9,36 +9,36 @@ import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:55 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "MultiFilingServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "MultiFilingServicePort") @XmlSeeAlso({ObjectFactory.class}) public interface MultiFilingServicePort { - @ResponseWrapper(localName = "removeObjectFromFolderResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.RemoveObjectFromFolderResponse") - @RequestWrapper(localName = "removeObjectFromFolder", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.RemoveObjectFromFolder") + @RequestWrapper(localName = "removeObjectFromFolder", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.RemoveObjectFromFolder") + @ResponseWrapper(localName = "removeObjectFromFolderResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.RemoveObjectFromFolderResponse") @WebMethod public void removeObjectFromFolder( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String objectId, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "folderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String folderId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, NotInFolderException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; - @ResponseWrapper(localName = "addObjectToFolderResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.AddObjectToFolderResponse") - @RequestWrapper(localName = "addObjectToFolder", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.AddObjectToFolder") + @RequestWrapper(localName = "addObjectToFolder", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.AddObjectToFolder") + @ResponseWrapper(localName = "addObjectToFolderResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.AddObjectToFolderResponse") @WebMethod public void addObjectToFolder( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String objectId, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "folderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String folderId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java index ed6424a598..71cf740157 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:47 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "NavigationService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/NavigationService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class NavigationService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "NavigationService"); - public final static QName NavigationServicePort = new QName("http://www.cmis.org/2008/05", "NavigationServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "NavigationService"); + public final static QName NavigationServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "NavigationServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/NavigationService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/NavigationService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java index 1c4685a7ec..b61e509bf0 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java @@ -10,48 +10,48 @@ import javax.xml.bind.annotation.XmlSeeAlso; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:47 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "NavigationServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "NavigationServicePort") @XmlSeeAlso({ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public interface NavigationServicePort { - @WebResult(name = "getCheckedoutDocsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") - @WebMethod - public GetCheckedoutDocsResponse getCheckedoutDocs( - @WebParam(partName = "parameters", name = "getCheckedoutDocs", targetNamespace = "http://www.cmis.org/2008/05") - GetCheckedoutDocs parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @WebResult(name = "getChildrenResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") - @WebMethod - public GetChildrenResponse getChildren( - @WebParam(partName = "parameters", name = "getChildren", targetNamespace = "http://www.cmis.org/2008/05") - GetChildren parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @WebResult(name = "getObjectParentsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") - @WebMethod - public GetObjectParentsResponse getObjectParents( - @WebParam(partName = "parameters", name = "getObjectParents", targetNamespace = "http://www.cmis.org/2008/05") - GetObjectParents parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @WebResult(name = "getFolderParentResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "getFolderParentResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") @WebMethod public GetFolderParentResponse getFolderParent( - @WebParam(partName = "parameters", name = "getFolderParent", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(partName = "parameters", name = "getFolderParent", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") GetFolderParent parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; - @WebResult(name = "getDescendantsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "getObjectParentsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") + @WebMethod + public GetObjectParentsResponse getObjectParents( + @WebParam(partName = "parameters", name = "getObjectParents", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + GetObjectParents parameters + ) throws CmisException; + + @WebResult(name = "getCheckedoutDocsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") + @WebMethod + public GetCheckedoutDocsResponse getCheckedoutDocs( + @WebParam(partName = "parameters", name = "getCheckedoutDocs", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + GetCheckedoutDocs parameters + ) throws CmisException; + + @WebResult(name = "getDescendantsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") @WebMethod public GetDescendantsResponse getDescendants( - @WebParam(partName = "parameters", name = "getDescendants", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(partName = "parameters", name = "getDescendants", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") GetDescendants parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; + + @WebResult(name = "getChildrenResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") + @WebMethod + public GetChildrenResponse getChildren( + @WebParam(partName = "parameters", name = "getChildren", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + GetChildren parameters + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java deleted file mode 100644 index ba51feda4f..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:55 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "notInFolderException", targetNamespace = "http://www.cmis.org/2008/05") -public class NotInFolderException extends Exception { - public static final long serialVersionUID = 20080905134455L; - - private org.alfresco.repo.cmis.ws.NotInFolderExceptionType notInFolderException; - - 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.NotInFolderExceptionType notInFolderException) { - super(message); - this.notInFolderException = notInFolderException; - } - - public NotInFolderException(String message, org.alfresco.repo.cmis.ws.NotInFolderExceptionType notInFolderException, Throwable cause) { - super(message, cause); - this.notInFolderException = notInFolderException; - } - - public org.alfresco.repo.cmis.ws.NotInFolderExceptionType getFaultInfo() { - return this.notInFolderException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderExceptionType.java deleted file mode 100755 index c2559b9103..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for notInFolderExceptionType complex type. - * - *

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

- * <complexType name="notInFolderExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "notInFolderExceptionType") -public class NotInFolderExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java index fcd509e534..a4dfad6c82 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java @@ -25,87 +25,74 @@ import javax.xml.namespace.QName; @XmlRegistry public class ObjectFactory { - private final static QName _UpdatePropertiesChangeToken_QNAME = new QName("http://www.cmis.org/2008/05", "changeToken"); - private final static QName _CreatePolicyFolderId_QNAME = new QName("http://www.cmis.org/2008/05", "folderId"); - private final static QName _CreateDocumentVersioningState_QNAME = new QName("http://www.cmis.org/2008/05", "versioningState"); - private final static QName _CreateDocumentContentStream_QNAME = new QName("http://www.cmis.org/2008/05", "contentStream"); - private final static QName _GetAllVersionsIncludeAllowableActions_QNAME = new QName("http://www.cmis.org/2008/05", "includeAllowableActions"); - private final static QName _GetAllVersionsFilter_QNAME = new QName("http://www.cmis.org/2008/05", "filter"); - private final static QName _GetAllVersionsIncludeRelationships_QNAME = new QName("http://www.cmis.org/2008/05", "includeRelationships"); - private final static QName _GetRelationshipsSkipCount_QNAME = new QName("http://www.cmis.org/2008/05", "skipCount"); - private final static QName _GetRelationshipsTypeId_QNAME = new QName("http://www.cmis.org/2008/05", "typeId"); - private final static QName _GetRelationshipsIncludeSubRelationshipTypes_QNAME = new QName("http://www.cmis.org/2008/05", "includeSubRelationshipTypes"); - private final static QName _GetRelationshipsDirection_QNAME = new QName("http://www.cmis.org/2008/05", "direction"); - private final static QName _GetRelationshipsMaxItems_QNAME = new QName("http://www.cmis.org/2008/05", "maxItems"); - private final static QName _PropertyStringDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyStringDefinition"); - private final static QName _PropertyXml_QNAME = new QName("http://www.cmis.org/2008/05", "propertyXml"); - private final static QName _ChoiceDateTime_QNAME = new QName("http://www.cmis.org/2008/05", "choiceDateTime"); - private final static QName _Terminator_QNAME = new QName("http://www.cmis.org/2008/05", "terminator"); - private final static QName _Object_QNAME = new QName("http://www.cmis.org/2008/05", "object"); - private final static QName _ObjectNotFoundException_QNAME = new QName("http://www.cmis.org/2008/05", "objectNotFoundException"); - private final static QName _HasMoreItems_QNAME = new QName("http://www.cmis.org/2008/05", "hasMoreItems"); - private final static QName _ChoiceBoolean_QNAME = new QName("http://www.cmis.org/2008/05", "choiceBoolean"); - private final static QName _PropertyDecimal_QNAME = new QName("http://www.cmis.org/2008/05", "propertyDecimal"); - private final static QName _PropertyDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyDefinition"); - private final static QName _ChoiceHtml_QNAME = new QName("http://www.cmis.org/2008/05", "choiceHtml"); - private final static QName _ConstraintViolationException_QNAME = new QName("http://www.cmis.org/2008/05", "constraintViolationException"); - private final static QName _OperationNotSupportedException_QNAME = new QName("http://www.cmis.org/2008/05", "operationNotSupportedException"); - private final static QName _TypeNotFoundException_QNAME = new QName("http://www.cmis.org/2008/05", "typeNotFoundException"); - private final static QName _FolderNotValidException_QNAME = new QName("http://www.cmis.org/2008/05", "folderNotValidException"); - private final static QName _DocumentType_QNAME = new QName("http://www.cmis.org/2008/05", "documentType"); - private final static QName _Type_QNAME = new QName("http://www.cmis.org/2008/05", "type"); - private final static QName _ChoiceInteger_QNAME = new QName("http://www.cmis.org/2008/05", "choiceInteger"); - private final static QName _InvalidArgumentException_QNAME = new QName("http://www.cmis.org/2008/05", "invalidArgumentException"); - private final static QName _OffsetException_QNAME = new QName("http://www.cmis.org/2008/05", "offsetException"); - private final static QName _StorageException_QNAME = new QName("http://www.cmis.org/2008/05", "storageException"); - private final static QName _ChoiceDecimal_QNAME = new QName("http://www.cmis.org/2008/05", "choiceDecimal"); - private final static QName _RelationshipType_QNAME = new QName("http://www.cmis.org/2008/05", "relationshipType"); - private final static QName _AllowableActions_QNAME = new QName("http://www.cmis.org/2008/05", "allowableActions"); - private final static QName _ChoiceString_QNAME = new QName("http://www.cmis.org/2008/05", "choiceString"); - private final static QName _FolderType_QNAME = new QName("http://www.cmis.org/2008/05", "folderType"); - private final static QName _VersioningException_QNAME = new QName("http://www.cmis.org/2008/05", "versioningException"); - private final static QName _ChoiceId_QNAME = new QName("http://www.cmis.org/2008/05", "choiceId"); - private final static QName _Query_QNAME = new QName("http://www.cmis.org/2008/05", "query"); - private final static QName _ChoiceUri_QNAME = new QName("http://www.cmis.org/2008/05", "choiceUri"); - private final static QName _PropertyBoolean_QNAME = new QName("http://www.cmis.org/2008/05", "propertyBoolean"); - private final static QName _PropertyDecimalDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyDecimalDefinition"); - private final static QName _PolicyType_QNAME = new QName("http://www.cmis.org/2008/05", "policyType"); - private final static QName _PropertyInteger_QNAME = new QName("http://www.cmis.org/2008/05", "propertyInteger"); - private final static QName _PropertyBooleanDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyBooleanDefinition"); - private final static QName _PropertyString_QNAME = new QName("http://www.cmis.org/2008/05", "propertyString"); - private final static QName _PropertyIdDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyIdDefinition"); - private final static QName _GetRepositoryInfoResponse_QNAME = new QName("http://www.cmis.org/2008/05", "getRepositoryInfoResponse"); - private final static QName _PropertyUriDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyUriDefinition"); - private final static QName _PropertyDateTime_QNAME = new QName("http://www.cmis.org/2008/05", "propertyDateTime"); - private final static QName _RepositoryInfo_QNAME = new QName("http://www.cmis.org/2008/05", "repositoryInfo"); - private final static QName _ContentAlreadyExistsException_QNAME = new QName("http://www.cmis.org/2008/05", "contentAlreadyExistsException"); - private final static QName _UpdateConflictException_QNAME = new QName("http://www.cmis.org/2008/05", "updateConflictException"); - private final static QName _Choice_QNAME = new QName("http://www.cmis.org/2008/05", "choice"); - private final static QName _PropertyXmlDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyXmlDefinition"); - private final static QName _PermissionDeniedException_QNAME = new QName("http://www.cmis.org/2008/05", "permissionDeniedException"); - private final static QName _ChoiceXml_QNAME = new QName("http://www.cmis.org/2008/05", "choiceXml"); - private final static QName _NotInFolderException_QNAME = new QName("http://www.cmis.org/2008/05", "notInFolderException"); - private final static QName _StreamNotSupportedException_QNAME = new QName("http://www.cmis.org/2008/05", "streamNotSupportedException"); - private final static QName _Property_QNAME = new QName("http://www.cmis.org/2008/05", "property"); - private final static QName _FilterNotValidException_QNAME = new QName("http://www.cmis.org/2008/05", "filterNotValidException"); - private final static QName _PropertyHtmlDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyHtmlDefinition"); - private final static QName _PropertyUri_QNAME = new QName("http://www.cmis.org/2008/05", "propertyUri"); - private final static QName _PropertyDateTimeDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyDateTimeDefinition"); - private final static QName _PropertyHtml_QNAME = new QName("http://www.cmis.org/2008/05", "propertyHtml"); - private final static QName _PropertyId_QNAME = new QName("http://www.cmis.org/2008/05", "propertyId"); - private final static QName _RuntimeException_QNAME = new QName("http://www.cmis.org/2008/05", "runtimeException"); - private final static QName _PropertyIntegerDefinition_QNAME = new QName("http://www.cmis.org/2008/05", "propertyIntegerDefinition"); - private final static QName _DeleteTreeContinueOnFailure_QNAME = new QName("http://www.cmis.org/2008/05", "continueOnFailure"); - private final static QName _CheckInProperties_QNAME = new QName("http://www.cmis.org/2008/05", "properties"); - private final static QName _CheckInMajor_QNAME = new QName("http://www.cmis.org/2008/05", "major"); - private final static QName _CheckInCheckinComment_QNAME = new QName("http://www.cmis.org/2008/05", "checkinComment"); - private final static QName _GetDescendantsDepth_QNAME = new QName("http://www.cmis.org/2008/05", "depth"); - private final static QName _GetTypesReturnPropertyDefinitions_QNAME = new QName("http://www.cmis.org/2008/05", "returnPropertyDefinitions"); - private final static QName _GetCheckedoutDocsFolderID_QNAME = new QName("http://www.cmis.org/2008/05", "folderID"); - private final static QName _GetPropertiesReturnVersion_QNAME = new QName("http://www.cmis.org/2008/05", "returnVersion"); - private final static QName _SetContentStreamOverwriteFlag_QNAME = new QName("http://www.cmis.org/2008/05", "overwriteFlag"); - private final static QName _MoveObjectSourceFolderId_QNAME = new QName("http://www.cmis.org/2008/05", "sourceFolderId"); - private final static QName _GetFolderParentReturnToRoot_QNAME = new QName("http://www.cmis.org/2008/05", "returnToRoot"); + private final static QName _ChoiceDateTime_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceDateTime"); + private final static QName _AllowableActions_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "allowableActions"); + private final static QName _DocumentType_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "documentType"); + private final static QName _PropertyUriDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyUriDefinition"); + private final static QName _ChoiceDecimal_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceDecimal"); + private final static QName _ChoiceString_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceString"); + private final static QName _Query_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "query"); + private final static QName _PropertyHtml_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyHtml"); + private final static QName _Choice_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choice"); + private final static QName _Object_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "object"); + private final static QName _RepositoryInfo_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "repositoryInfo"); + private final static QName _PropertyDecimal_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyDecimal"); + private final static QName _Type_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "type"); + private final static QName _PropertyHtmlDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyHtmlDefinition"); + private final static QName _RelationshipType_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "relationshipType"); + private final static QName _PropertyStringDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyStringDefinition"); + private final static QName _ChoiceXml_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceXml"); + private final static QName _PropertyId_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyId"); + private final static QName _ChoiceUri_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceUri"); + private final static QName _ChoiceInteger_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceInteger"); + private final static QName _PropertyIntegerDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyIntegerDefinition"); + private final static QName _HasMoreItems_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "hasMoreItems"); + private final static QName _ChoiceBoolean_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceBoolean"); + private final static QName _PropertyIdDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyIdDefinition"); + private final static QName _PropertyXmlDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyXmlDefinition"); + private final static QName _PropertyDateTime_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyDateTime"); + private final static QName _CmisFault_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "cmisFault"); + private final static QName _PropertyBooleanDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyBooleanDefinition"); + private final static QName _Terminator_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "terminator"); + private final static QName _FolderType_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "folderType"); + private final static QName _Property_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "property"); + private final static QName _PropertyDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyDefinition"); + private final static QName _PropertyXml_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyXml"); + private final static QName _PolicyType_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "policyType"); + private final static QName _PropertyBoolean_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyBoolean"); + private final static QName _PropertyString_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyString"); + private final static QName _PropertyUri_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyUri"); + private final static QName _PropertyDecimalDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyDecimalDefinition"); + private final static QName _ChoiceId_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceId"); + private final static QName _ChoiceHtml_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "choiceHtml"); + private final static QName _PropertyDateTimeDefinition_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyDateTimeDefinition"); + private final static QName _PropertyInteger_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/core/200901", "propertyInteger"); + private final static QName _RemoveObjectFromFolderFolderId_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "folderId"); + private final static QName _GetDescendantsFilter_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "filter"); + private final static QName _GetDescendantsDepth_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "depth"); + private final static QName _GetDescendantsIncludeRelationships_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "includeRelationships"); + private final static QName _GetDescendantsIncludeAllowableActions_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "includeAllowableActions"); + private final static QName _GetPropertiesReturnVersion_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "returnVersion"); + private final static QName _GetContentChangesIncludeProperties_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "includeProperties"); + private final static QName _GetContentChangesIncludeACL_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "includeACL"); + private final static QName _GetContentChangesMaxItems_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "maxItems"); + private final static QName _DeleteTreeContinueOnFailure_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "continueOnFailure"); + private final static QName _SetContentStreamOverwriteFlag_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "overwriteFlag"); + private final static QName _GetTypesIncludePropertyDefinitions_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "includePropertyDefinitions"); + private final static QName _GetTypesSkipCount_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "skipCount"); + private final static QName _GetTypesTypeId_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "typeId"); + private final static QName _CreateDocumentContentStream_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "contentStream"); + private final static QName _CreateDocumentVersioningState_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "versioningState"); + private final static QName _GetFolderParentReturnToRoot_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "returnToRoot"); + private final static QName _MoveObjectSourceFolderId_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "sourceFolderId"); + private final static QName _GetChildrenType_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "type"); + private final static QName _GetRelationshipsIncludeSubRelationshipTypes_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "includeSubRelationshipTypes"); + private final static QName _GetRelationshipsDirection_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "direction"); + private final static QName _UpdatePropertiesChangeToken_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "changeToken"); + private final static QName _CheckInProperties_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "properties"); + private final static QName _CheckInMajor_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "major"); + private final static QName _CheckInCheckinComment_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "checkinComment"); + private final static QName _GetCheckedoutDocsOrderBy_QNAME = new QName("http://docs.oasis-open.org/ns/cmis/messaging/200901", "orderBy"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.alfresco.repo.cmis.ws @@ -115,19 +102,27 @@ public class ObjectFactory { } /** - * Create an instance of {@link GetAllowableActionsResponse } + * Create an instance of {@link CmisChoiceXmlType } * */ - public GetAllowableActionsResponse createGetAllowableActionsResponse() { - return new GetAllowableActionsResponse(); + public CmisChoiceXmlType createCmisChoiceXmlType() { + return new CmisChoiceXmlType(); } /** - * Create an instance of {@link GetPropertiesOfLatestVersionResponse } + * Create an instance of {@link GetProperties } * */ - public GetPropertiesOfLatestVersionResponse createGetPropertiesOfLatestVersionResponse() { - return new GetPropertiesOfLatestVersionResponse(); + public GetProperties createGetProperties() { + return new GetProperties(); + } + + /** + * Create an instance of {@link CancelCheckOut } + * + */ + public CancelCheckOut createCancelCheckOut() { + return new CancelCheckOut(); } /** @@ -139,99 +134,243 @@ public class ObjectFactory { } /** - * Create an instance of {@link DeleteTree } + * Create an instance of {@link GetAllVersionsResponse } * */ - public DeleteTree createDeleteTree() { - return new DeleteTree(); + public GetAllVersionsResponse createGetAllVersionsResponse() { + return new GetAllVersionsResponse(); } /** - * Create an instance of {@link CmisPropertyStringDefinitionType } + * Create an instance of {@link GetCheckedoutDocsResponse } * */ - public CmisPropertyStringDefinitionType createCmisPropertyStringDefinitionType() { - return new CmisPropertyStringDefinitionType(); + public GetCheckedoutDocsResponse createGetCheckedoutDocsResponse() { + return new GetCheckedoutDocsResponse(); } /** - * Create an instance of {@link ApplyPolicyResponse } + * Create an instance of {@link CmisChoiceBooleanType } * */ - public ApplyPolicyResponse createApplyPolicyResponse() { - return new ApplyPolicyResponse(); + public CmisChoiceBooleanType createCmisChoiceBooleanType() { + return new CmisChoiceBooleanType(); } /** - * Create an instance of {@link DeleteAllVersions } + * Create an instance of {@link CmisPropertyXml.Value } * */ - public DeleteAllVersions createDeleteAllVersions() { - return new DeleteAllVersions(); + public CmisPropertyXml.Value createCmisPropertyXmlValue() { + return new CmisPropertyXml.Value(); } /** - * Create an instance of {@link CmisPropertyUriDefinitionType } + * Create an instance of {@link CmisTypePolicyDefinitionType } * */ - public CmisPropertyUriDefinitionType createCmisPropertyUriDefinitionType() { - return new CmisPropertyUriDefinitionType(); + public CmisTypePolicyDefinitionType createCmisTypePolicyDefinitionType() { + return new CmisTypePolicyDefinitionType(); } /** - * Create an instance of {@link RemoveObjectFromFolderResponse } + * Create an instance of {@link CmisPropertyIdDefinitionType } * */ - public RemoveObjectFromFolderResponse createRemoveObjectFromFolderResponse() { - return new RemoveObjectFromFolderResponse(); + public CmisPropertyIdDefinitionType createCmisPropertyIdDefinitionType() { + return new CmisPropertyIdDefinitionType(); } /** - * Create an instance of {@link CmisPropertyBoolean } + * Create an instance of {@link GetObjectParents } * */ - public CmisPropertyBoolean createCmisPropertyBoolean() { - return new CmisPropertyBoolean(); + public GetObjectParents createGetObjectParents() { + return new GetObjectParents(); } /** - * Create an instance of {@link CreatePolicy } + * Create an instance of {@link GetContentChangesResponse } * */ - public CreatePolicy createCreatePolicy() { - return new CreatePolicy(); + public GetContentChangesResponse createGetContentChangesResponse() { + return new GetContentChangesResponse(); } /** - * Create an instance of {@link CmisRepositoryEntryType } + * Create an instance of {@link CheckInResponse } * */ - public CmisRepositoryEntryType createCmisRepositoryEntryType() { - return new CmisRepositoryEntryType(); + public CheckInResponse createCheckInResponse() { + return new CheckInResponse(); } /** - * Create an instance of {@link DeleteTreeResponse.FailedToDelete } + * Create an instance of {@link GetContentStream } * */ - public DeleteTreeResponse.FailedToDelete createDeleteTreeResponseFailedToDelete() { - return new DeleteTreeResponse.FailedToDelete(); + public GetContentStream createGetContentStream() { + return new GetContentStream(); } /** - * Create an instance of {@link CreateFolderResponse } + * Create an instance of {@link CmisAccessControlEntryType } * */ - public CreateFolderResponse createCreateFolderResponse() { - return new CreateFolderResponse(); + public CmisAccessControlEntryType createCmisAccessControlEntryType() { + return new CmisAccessControlEntryType(); } /** - * Create an instance of {@link CmisRepositoryInfoType } + * Create an instance of {@link GetContentChanges } * */ - public CmisRepositoryInfoType createCmisRepositoryInfoType() { - return new CmisRepositoryInfoType(); + public GetContentChanges createGetContentChanges() { + return new GetContentChanges(); + } + + /** + * Create an instance of {@link CmisPropertyHtml } + * + */ + public CmisPropertyHtml createCmisPropertyHtml() { + return new CmisPropertyHtml(); + } + + /** + * Create an instance of {@link GetRepositoriesResponse } + * + */ + public GetRepositoriesResponse createGetRepositoriesResponse() { + return new GetRepositoriesResponse(); + } + + /** + * Create an instance of {@link CmisPropertyDecimal } + * + */ + public CmisPropertyDecimal createCmisPropertyDecimal() { + return new CmisPropertyDecimal(); + } + + /** + * Create an instance of {@link CheckOut } + * + */ + public CheckOut createCheckOut() { + return new CheckOut(); + } + + /** + * Create an instance of {@link GetFolderParentResponse } + * + */ + public GetFolderParentResponse createGetFolderParentResponse() { + return new GetFolderParentResponse(); + } + + /** + * Create an instance of {@link CmisChoiceStringType } + * + */ + public CmisChoiceStringType createCmisChoiceStringType() { + return new CmisChoiceStringType(); + } + + /** + * Create an instance of {@link CmisChoiceUriType } + * + */ + public CmisChoiceUriType createCmisChoiceUriType() { + return new CmisChoiceUriType(); + } + + /** + * Create an instance of {@link GetChildren } + * + */ + public GetChildren createGetChildren() { + return new GetChildren(); + } + + /** + * Create an instance of {@link CmisPropertyHtml.Value } + * + */ + public CmisPropertyHtml.Value createCmisPropertyHtmlValue() { + return new CmisPropertyHtml.Value(); + } + + /** + * Create an instance of {@link CmisPropertiesType } + * + */ + public CmisPropertiesType createCmisPropertiesType() { + return new CmisPropertiesType(); + } + + /** + * Create an instance of {@link UpdateProperties } + * + */ + public UpdateProperties createUpdateProperties() { + return new UpdateProperties(); + } + + /** + * Create an instance of {@link CmisChoiceHtmlType } + * + */ + public CmisChoiceHtmlType createCmisChoiceHtmlType() { + return new CmisChoiceHtmlType(); + } + + /** + * Create an instance of {@link CheckIn } + * + */ + public CheckIn createCheckIn() { + return new CheckIn(); + } + + /** + * Create an instance of {@link DeleteObject } + * + */ + public DeleteObject createDeleteObject() { + return new DeleteObject(); + } + + /** + * Create an instance of {@link CmisTypeDocumentDefinitionType } + * + */ + public CmisTypeDocumentDefinitionType createCmisTypeDocumentDefinitionType() { + return new CmisTypeDocumentDefinitionType(); + } + + /** + * Create an instance of {@link CmisChangedObjectType } + * + */ + public CmisChangedObjectType createCmisChangedObjectType() { + return new CmisChangedObjectType(); + } + + /** + * Create an instance of {@link CmisRepositoryCapabilitiesType } + * + */ + public CmisRepositoryCapabilitiesType createCmisRepositoryCapabilitiesType() { + return new CmisRepositoryCapabilitiesType(); + } + + /** + * Create an instance of {@link CmisPropertyBooleanDefinitionType } + * + */ + public CmisPropertyBooleanDefinitionType createCmisPropertyBooleanDefinitionType() { + return new CmisPropertyBooleanDefinitionType(); } /** @@ -242,6 +381,334 @@ public class ObjectFactory { return new CmisPropertyUri(); } + /** + * Create an instance of {@link DeleteAllVersionsResponse } + * + */ + public DeleteAllVersionsResponse createDeleteAllVersionsResponse() { + return new DeleteAllVersionsResponse(); + } + + /** + * Create an instance of {@link GetRepositoryInfoResponse } + * + */ + public GetRepositoryInfoResponse createGetRepositoryInfoResponse() { + return new GetRepositoryInfoResponse(); + } + + /** + * Create an instance of {@link DeleteObjectResponse } + * + */ + public DeleteObjectResponse createDeleteObjectResponse() { + return new DeleteObjectResponse(); + } + + /** + * Create an instance of {@link CmisPropertyIntegerDefinitionType } + * + */ + public CmisPropertyIntegerDefinitionType createCmisPropertyIntegerDefinitionType() { + return new CmisPropertyIntegerDefinitionType(); + } + + /** + * Create an instance of {@link GetRelationshipsResponse } + * + */ + public GetRelationshipsResponse createGetRelationshipsResponse() { + return new GetRelationshipsResponse(); + } + + /** + * Create an instance of {@link CmisPermissionSetType } + * + */ + public CmisPermissionSetType createCmisPermissionSetType() { + return new CmisPermissionSetType(); + } + + /** + * 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 CmisChoiceIdType } + * + */ + public CmisChoiceIdType createCmisChoiceIdType() { + return new CmisChoiceIdType(); + } + + /** + * Create an instance of {@link GetRelationships } + * + */ + public GetRelationships createGetRelationships() { + return new GetRelationships(); + } + + /** + * Create an instance of {@link DeleteTreeResponse.FailedToDelete } + * + */ + public DeleteTreeResponse.FailedToDelete createDeleteTreeResponseFailedToDelete() { + return new DeleteTreeResponse.FailedToDelete(); + } + + /** + * Create an instance of {@link CmisPropertyUriDefinitionType } + * + */ + public CmisPropertyUriDefinitionType createCmisPropertyUriDefinitionType() { + return new CmisPropertyUriDefinitionType(); + } + + /** + * Create an instance of {@link ObjectTreeCollectionType } + * + */ + public ObjectTreeCollectionType createObjectTreeCollectionType() { + return new ObjectTreeCollectionType(); + } + + /** + * Create an instance of {@link CreateFolderResponse } + * + */ + public CreateFolderResponse createCreateFolderResponse() { + return new CreateFolderResponse(); + } + + /** + * Create an instance of {@link CmisObjectType } + * + */ + public CmisObjectType createCmisObjectType() { + return new CmisObjectType(); + } + + /** + * Create an instance of {@link CmisRepositoryInfoType } + * + */ + public CmisRepositoryInfoType createCmisRepositoryInfoType() { + return new CmisRepositoryInfoType(); + } + + /** + * Create an instance of {@link GetCheckedoutDocs } + * + */ + public GetCheckedoutDocs createGetCheckedoutDocs() { + return new GetCheckedoutDocs(); + } + + /** + * Create an instance of {@link CreateFolder } + * + */ + public CreateFolder createCreateFolder() { + return new CreateFolder(); + } + + /** + * Create an instance of {@link SetContentStream } + * + */ + public SetContentStream createSetContentStream() { + return new SetContentStream(); + } + + /** + * Create an instance of {@link CreateDocument } + * + */ + public CreateDocument createCreateDocument() { + return new CreateDocument(); + } + + /** + * Create an instance of {@link QueryResponse } + * + */ + public QueryResponse createQueryResponse() { + return new QueryResponse(); + } + + /** + * Create an instance of {@link CmisPropertyStringDefinitionType } + * + */ + public CmisPropertyStringDefinitionType createCmisPropertyStringDefinitionType() { + return new CmisPropertyStringDefinitionType(); + } + + /** + * Create an instance of {@link GetChildrenResponse } + * + */ + public GetChildrenResponse createGetChildrenResponse() { + return new GetChildrenResponse(); + } + + /** + * Create an instance of {@link CreatePolicyResponse } + * + */ + public CreatePolicyResponse createCreatePolicyResponse() { + return new CreatePolicyResponse(); + } + + /** + * Create an instance of {@link CmisAccessControlPrincipalType } + * + */ + public CmisAccessControlPrincipalType createCmisAccessControlPrincipalType() { + return new CmisAccessControlPrincipalType(); + } + + /** + * Create an instance of {@link DeleteContentStream } + * + */ + public DeleteContentStream createDeleteContentStream() { + return new DeleteContentStream(); + } + + /** + * Create an instance of {@link CmisPropertyDecimalDefinitionType } + * + */ + public CmisPropertyDecimalDefinitionType createCmisPropertyDecimalDefinitionType() { + return new CmisPropertyDecimalDefinitionType(); + } + + /** + * Create an instance of {@link AddObjectToFolder } + * + */ + public AddObjectToFolder createAddObjectToFolder() { + return new AddObjectToFolder(); + } + + /** + * Create an instance of {@link CmisPropertyString } + * + */ + public CmisPropertyString createCmisPropertyString() { + return new CmisPropertyString(); + } + + /** + * Create an instance of {@link AddObjectToFolderResponse } + * + */ + public AddObjectToFolderResponse createAddObjectToFolderResponse() { + return new AddObjectToFolderResponse(); + } + + /** + * Create an instance of {@link RemovePolicy } + * + */ + public RemovePolicy createRemovePolicy() { + return new RemovePolicy(); + } + + /** + * Create an instance of {@link GetAllowableActionsResponse } + * + */ + public GetAllowableActionsResponse createGetAllowableActionsResponse() { + return new GetAllowableActionsResponse(); + } + + /** + * Create an instance of {@link RemovePolicyResponse } + * + */ + public RemovePolicyResponse createRemovePolicyResponse() { + return new RemovePolicyResponse(); + } + + /** + * Create an instance of {@link DeleteContentStreamResponse } + * + */ + public DeleteContentStreamResponse createDeleteContentStreamResponse() { + return new DeleteContentStreamResponse(); + } + + /** + * Create an instance of {@link ApplyPolicy } + * + */ + public ApplyPolicy createApplyPolicy() { + return new ApplyPolicy(); + } + + /** + * Create an instance of {@link CmisPermissionDefinitionType } + * + */ + public CmisPermissionDefinitionType createCmisPermissionDefinitionType() { + return new CmisPermissionDefinitionType(); + } + + /** + * Create an instance of {@link CmisPropertyBoolean } + * + */ + public CmisPropertyBoolean createCmisPropertyBoolean() { + return new CmisPropertyBoolean(); + } + + /** + * Create an instance of {@link GetDescendantsResponse } + * + */ + public GetDescendantsResponse createGetDescendantsResponse() { + return new GetDescendantsResponse(); + } + + /** + * Create an instance of {@link CmisAccessControlListType } + * + */ + public CmisAccessControlListType createCmisAccessControlListType() { + return new CmisAccessControlListType(); + } + + /** + * Create an instance of {@link CancelCheckOutResponse } + * + */ + public CancelCheckOutResponse createCancelCheckOutResponse() { + return new CancelCheckOutResponse(); + } + + /** + * Create an instance of {@link GetAppliedPolicies } + * + */ + public GetAppliedPolicies createGetAppliedPolicies() { + return new GetAppliedPolicies(); + } + /** * Create an instance of {@link CmisChoiceDateTimeType } * @@ -251,11 +718,355 @@ public class ObjectFactory { } /** - * Create an instance of {@link CmisChoiceUriType } + * Create an instance of {@link GetAppliedPoliciesResponse } * */ - public CmisChoiceUriType createCmisChoiceUriType() { - return new CmisChoiceUriType(); + public GetAppliedPoliciesResponse createGetAppliedPoliciesResponse() { + return new GetAppliedPoliciesResponse(); + } + + /** + * Create an instance of {@link CmisAnyXml } + * + */ + public CmisAnyXml createCmisAnyXml() { + return new CmisAnyXml(); + } + + /** + * Create an instance of {@link CmisPropertyInteger } + * + */ + public CmisPropertyInteger createCmisPropertyInteger() { + return new CmisPropertyInteger(); + } + + /** + * Create an instance of {@link CmisPropertyXml } + * + */ + public CmisPropertyXml createCmisPropertyXml() { + return new CmisPropertyXml(); + } + + /** + * Create an instance of {@link MoveObject } + * + */ + public MoveObject createMoveObject() { + return new MoveObject(); + } + + /** + * Create an instance of {@link CmisChoiceHtmlType.Value } + * + */ + public CmisChoiceHtmlType.Value createCmisChoiceHtmlTypeValue() { + return new CmisChoiceHtmlType.Value(); + } + + /** + * Create an instance of {@link GetObjectParentsResponse } + * + */ + public GetObjectParentsResponse createGetObjectParentsResponse() { + return new GetObjectParentsResponse(); + } + + /** + * Create an instance of {@link CmisTypeRelationshipDefinitionType } + * + */ + public CmisTypeRelationshipDefinitionType createCmisTypeRelationshipDefinitionType() { + return new CmisTypeRelationshipDefinitionType(); + } + + /** + * Create an instance of {@link CmisChoiceDecimalType } + * + */ + public CmisChoiceDecimalType createCmisChoiceDecimalType() { + return new CmisChoiceDecimalType(); + } + + /** + * Create an instance of {@link DeleteAllVersions } + * + */ + public DeleteAllVersions createDeleteAllVersions() { + return new DeleteAllVersions(); + } + + /** + * Create an instance of {@link CreateDocumentResponse } + * + */ + public CreateDocumentResponse createCreateDocumentResponse() { + return new CreateDocumentResponse(); + } + + /** + * Create an instance of {@link RemoveObjectFromFolderResponse } + * + */ + public RemoveObjectFromFolderResponse createRemoveObjectFromFolderResponse() { + return new RemoveObjectFromFolderResponse(); + } + + /** + * Create an instance of {@link GetTypeDefinition } + * + */ + public GetTypeDefinition createGetTypeDefinition() { + return new GetTypeDefinition(); + } + + /** + * Create an instance of {@link RemoveObjectFromFolder } + * + */ + public RemoveObjectFromFolder createRemoveObjectFromFolder() { + return new RemoveObjectFromFolder(); + } + + /** + * Create an instance of {@link GetDescendants } + * + */ + public GetDescendants createGetDescendants() { + return new GetDescendants(); + } + + /** + * Create an instance of {@link GetPropertiesOfLatestVersionResponse } + * + */ + public GetPropertiesOfLatestVersionResponse createGetPropertiesOfLatestVersionResponse() { + return new GetPropertiesOfLatestVersionResponse(); + } + + /** + * Create an instance of {@link UpdatePropertiesResponse } + * + */ + public UpdatePropertiesResponse createUpdatePropertiesResponse() { + return new UpdatePropertiesResponse(); + } + + /** + * Create an instance of {@link GetPropertiesResponse } + * + */ + public GetPropertiesResponse createGetPropertiesResponse() { + return new GetPropertiesResponse(); + } + + /** + * Create an instance of {@link CmisContentStreamType } + * + */ + public CmisContentStreamType createCmisContentStreamType() { + return new CmisContentStreamType(); + } + + /** + * Create an instance of {@link CmisPropertyXmlDefinitionType } + * + */ + public CmisPropertyXmlDefinitionType createCmisPropertyXmlDefinitionType() { + return new CmisPropertyXmlDefinitionType(); + } + + /** + * Create an instance of {@link DeleteTreeResponse } + * + */ + public DeleteTreeResponse createDeleteTreeResponse() { + return new DeleteTreeResponse(); + } + + /** + * Create an instance of {@link ApplyPolicyResponse } + * + */ + public ApplyPolicyResponse createApplyPolicyResponse() { + return new ApplyPolicyResponse(); + } + + /** + * Create an instance of {@link SetContentStreamResponse } + * + */ + public SetContentStreamResponse createSetContentStreamResponse() { + return new SetContentStreamResponse(); + } + + /** + * Create an instance of {@link GetRepositories } + * + */ + public GetRepositories createGetRepositories() { + return new GetRepositories(); + } + + /** + * Create an instance of {@link GetFolderParent } + * + */ + public GetFolderParent createGetFolderParent() { + return new GetFolderParent(); + } + + /** + * Create an instance of {@link CreateRelationshipResponse } + * + */ + public CreateRelationshipResponse createCreateRelationshipResponse() { + return new CreateRelationshipResponse(); + } + + /** + * Create an instance of {@link CmisFaultType } + * + */ + public CmisFaultType createCmisFaultType() { + return new CmisFaultType(); + } + + /** + * Create an instance of {@link GetAllVersions } + * + */ + public GetAllVersions createGetAllVersions() { + return new GetAllVersions(); + } + + /** + * Create an instance of {@link GetTypeDefinitionResponse } + * + */ + public GetTypeDefinitionResponse createGetTypeDefinitionResponse() { + return new GetTypeDefinitionResponse(); + } + + /** + * Create an instance of {@link CreateRelationship } + * + */ + public CreateRelationship createCreateRelationship() { + return new CreateRelationship(); + } + + /** + * Create an instance of {@link CheckOutResponse } + * + */ + public CheckOutResponse createCheckOutResponse() { + return new CheckOutResponse(); + } + + /** + * Create an instance of {@link CmisRepositoryEntryType } + * + */ + public CmisRepositoryEntryType createCmisRepositoryEntryType() { + return new CmisRepositoryEntryType(); + } + + /** + * Create an instance of {@link GetRepositoryInfo } + * + */ + public GetRepositoryInfo createGetRepositoryInfo() { + return new GetRepositoryInfo(); + } + + /** + * Create an instance of {@link CmisTypeFolderDefinitionType } + * + */ + public CmisTypeFolderDefinitionType createCmisTypeFolderDefinitionType() { + return new CmisTypeFolderDefinitionType(); + } + + /** + * Create an instance of {@link CmisQueryType } + * + */ + public CmisQueryType createCmisQueryType() { + return new CmisQueryType(); + } + + /** + * Create an instance of {@link DeleteTree } + * + */ + public DeleteTree createDeleteTree() { + return new DeleteTree(); + } + + /** + * Create an instance of {@link GetTypes } + * + */ + public GetTypes createGetTypes() { + return new GetTypes(); + } + + /** + * Create an instance of {@link CreatePolicy } + * + */ + public CreatePolicy createCreatePolicy() { + return new CreatePolicy(); + } + + /** + * Create an instance of {@link GetContentStreamResponse } + * + */ + public GetContentStreamResponse createGetContentStreamResponse() { + return new GetContentStreamResponse(); + } + + /** + * Create an instance of {@link CmisPropertyDateTimeDefinitionType } + * + */ + public CmisPropertyDateTimeDefinitionType createCmisPropertyDateTimeDefinitionType() { + return new CmisPropertyDateTimeDefinitionType(); + } + + /** + * Create an instance of {@link CmisProperty } + * + */ + public CmisProperty createCmisProperty() { + return new CmisProperty(); + } + + /** + * Create an instance of {@link CmisTypeDefinitionType } + * + */ + public CmisTypeDefinitionType createCmisTypeDefinitionType() { + return new CmisTypeDefinitionType(); + } + + /** + * Create an instance of {@link CmisAllowableActionsType } + * + */ + public CmisAllowableActionsType createCmisAllowableActionsType() { + return new CmisAllowableActionsType(); + } + + /** + * Create an instance of {@link CmisPropertyDefinitionType } + * + */ + public CmisPropertyDefinitionType createCmisPropertyDefinitionType() { + return new CmisPropertyDefinitionType(); } /** @@ -275,195 +1086,11 @@ public class ObjectFactory { } /** - * Create an instance of {@link NotInFolderExceptionType } + * Create an instance of {@link CmisPropertyId } * */ - public NotInFolderExceptionType createNotInFolderExceptionType() { - return new NotInFolderExceptionType(); - } - - /** - * Create an instance of {@link RemovePolicy } - * - */ - public RemovePolicy createRemovePolicy() { - return new RemovePolicy(); - } - - /** - * Create an instance of {@link CmisPropertyDateTimeDefinitionType } - * - */ - public CmisPropertyDateTimeDefinitionType createCmisPropertyDateTimeDefinitionType() { - return new CmisPropertyDateTimeDefinitionType(); - } - - /** - * Create an instance of {@link CmisObjectType } - * - */ - public CmisObjectType createCmisObjectType() { - return new CmisObjectType(); - } - - /** - * Create an instance of {@link CmisChoiceStringType } - * - */ - public CmisChoiceStringType createCmisChoiceStringType() { - return new CmisChoiceStringType(); - } - - /** - * Create an instance of {@link SetContentStreamResponse } - * - */ - public SetContentStreamResponse createSetContentStreamResponse() { - return new SetContentStreamResponse(); - } - - /** - * Create an instance of {@link GetRelationships } - * - */ - public GetRelationships createGetRelationships() { - return new GetRelationships(); - } - - /** - * Create an instance of {@link CmisChoiceIdType } - * - */ - public CmisChoiceIdType createCmisChoiceIdType() { - return new CmisChoiceIdType(); - } - - /** - * Create an instance of {@link CmisProperty } - * - */ - public CmisProperty createCmisProperty() { - return new CmisProperty(); - } - - /** - * Create an instance of {@link CreateFolder } - * - */ - public CreateFolder createCreateFolder() { - return new CreateFolder(); - } - - /** - * Create an instance of {@link DeleteContentStream } - * - */ - public DeleteContentStream createDeleteContentStream() { - return new DeleteContentStream(); - } - - /** - * Create an instance of {@link CmisQueryType } - * - */ - public CmisQueryType createCmisQueryType() { - return new CmisQueryType(); - } - - /** - * Create an instance of {@link CmisPropertyXmlDefinitionType } - * - */ - public CmisPropertyXmlDefinitionType createCmisPropertyXmlDefinitionType() { - return new CmisPropertyXmlDefinitionType(); - } - - /** - * Create an instance of {@link GetAllowableActions } - * - */ - public GetAllowableActions createGetAllowableActions() { - return new GetAllowableActions(); - } - - /** - * Create an instance of {@link StreamNotSupportedExceptionType } - * - */ - public StreamNotSupportedExceptionType createStreamNotSupportedExceptionType() { - return new StreamNotSupportedExceptionType(); - } - - /** - * Create an instance of {@link CmisChoiceHtmlType } - * - */ - public CmisChoiceHtmlType createCmisChoiceHtmlType() { - return new CmisChoiceHtmlType(); - } - - /** - * Create an instance of {@link GetFolderParentResponse } - * - */ - public GetFolderParentResponse createGetFolderParentResponse() { - return new GetFolderParentResponse(); - } - - /** - * Create an instance of {@link MoveObject } - * - */ - public MoveObject createMoveObject() { - return new MoveObject(); - } - - /** - * Create an instance of {@link CmisPropertyDefinitionType } - * - */ - public CmisPropertyDefinitionType createCmisPropertyDefinitionType() { - return new CmisPropertyDefinitionType(); - } - - /** - * Create an instance of {@link CreateRelationship } - * - */ - public CreateRelationship createCreateRelationship() { - return new CreateRelationship(); - } - - /** - * Create an instance of {@link QueryResponse } - * - */ - public QueryResponse createQueryResponse() { - return new QueryResponse(); - } - - /** - * Create an instance of {@link ApplyPolicy } - * - */ - public ApplyPolicy createApplyPolicy() { - return new ApplyPolicy(); - } - - /** - * Create an instance of {@link CheckOut } - * - */ - public CheckOut createCheckOut() { - return new CheckOut(); - } - - /** - * Create an instance of {@link CmisAnyXml } - * - */ - public CmisAnyXml createCmisAnyXml() { - return new CmisAnyXml(); + public CmisPropertyId createCmisPropertyId() { + return new CmisPropertyId(); } /** @@ -474,118 +1101,6 @@ public class ObjectFactory { return new CmisPropertyDateTime(); } - /** - * Create an instance of {@link CmisPropertyIntegerDefinitionType } - * - */ - public CmisPropertyIntegerDefinitionType createCmisPropertyIntegerDefinitionType() { - return new CmisPropertyIntegerDefinitionType(); - } - - /** - * Create an instance of {@link GetAllVersionsResponse } - * - */ - public GetAllVersionsResponse createGetAllVersionsResponse() { - return new GetAllVersionsResponse(); - } - - /** - * Create an instance of {@link ObjectTreeCollectionType } - * - */ - public ObjectTreeCollectionType createObjectTreeCollectionType() { - return new ObjectTreeCollectionType(); - } - - /** - * Create an instance of {@link GetTypes } - * - */ - public GetTypes createGetTypes() { - return new GetTypes(); - } - - /** - * Create an instance of {@link GetCheckedoutDocs } - * - */ - public GetCheckedoutDocs createGetCheckedoutDocs() { - return new GetCheckedoutDocs(); - } - - /** - * Create an instance of {@link CmisChoiceXmlType } - * - */ - public CmisChoiceXmlType createCmisChoiceXmlType() { - return new CmisChoiceXmlType(); - } - - /** - * Create an instance of {@link DeleteObjectResponse } - * - */ - public DeleteObjectResponse createDeleteObjectResponse() { - return new DeleteObjectResponse(); - } - - /** - * Create an instance of {@link CmisPropertyHtml } - * - */ - public CmisPropertyHtml createCmisPropertyHtml() { - return new CmisPropertyHtml(); - } - - /** - * Create an instance of {@link DeleteAllVersionsResponse } - * - */ - public DeleteAllVersionsResponse createDeleteAllVersionsResponse() { - return new DeleteAllVersionsResponse(); - } - - /** - * Create an instance of {@link SetContentStream } - * - */ - public SetContentStream createSetContentStream() { - return new SetContentStream(); - } - - /** - * Create an instance of {@link CancelCheckOut } - * - */ - public CancelCheckOut createCancelCheckOut() { - return new CancelCheckOut(); - } - - /** - * Create an instance of {@link CmisPropertiesType } - * - */ - public CmisPropertiesType createCmisPropertiesType() { - return new CmisPropertiesType(); - } - - /** - * Create an instance of {@link GetRepositoriesResponse } - * - */ - public GetRepositoriesResponse createGetRepositoriesResponse() { - return new GetRepositoriesResponse(); - } - - /** - * Create an instance of {@link GetRelationshipsResponse } - * - */ - public GetRelationshipsResponse createGetRelationshipsResponse() { - return new GetRelationshipsResponse(); - } - /** * Create an instance of {@link CmisPropertyHtmlDefinitionType } * @@ -594,1219 +1109,191 @@ public class ObjectFactory { return new CmisPropertyHtmlDefinitionType(); } - /** - * Create an instance of {@link DeleteObject } - * - */ - public DeleteObject createDeleteObject() { - return new DeleteObject(); - } - - /** - * Create an instance of {@link UpdateProperties } - * - */ - public UpdateProperties createUpdateProperties() { - return new UpdateProperties(); - } - - /** - * Create an instance of {@link OffsetExceptionType } - * - */ - public OffsetExceptionType createOffsetExceptionType() { - return new OffsetExceptionType(); - } - - /** - * Create an instance of {@link CmisTypeFolderDefinitionType } - * - */ - public CmisTypeFolderDefinitionType createCmisTypeFolderDefinitionType() { - return new CmisTypeFolderDefinitionType(); - } - - /** - * Create an instance of {@link StorageExceptionType } - * - */ - public StorageExceptionType createStorageExceptionType() { - return new StorageExceptionType(); - } - - /** - * Create an instance of {@link GetObjectParentsResponse } - * - */ - public GetObjectParentsResponse createGetObjectParentsResponse() { - return new GetObjectParentsResponse(); - } - - /** - * Create an instance of {@link GetContentStreamResponse } - * - */ - public GetContentStreamResponse createGetContentStreamResponse() { - return new GetContentStreamResponse(); - } - - /** - * Create an instance of {@link CmisPropertyInteger } - * - */ - public CmisPropertyInteger createCmisPropertyInteger() { - return new CmisPropertyInteger(); - } - - /** - * Create an instance of {@link CmisTypeDocumentDefinitionType } - * - */ - public CmisTypeDocumentDefinitionType createCmisTypeDocumentDefinitionType() { - return new CmisTypeDocumentDefinitionType(); - } - - /** - * Create an instance of {@link CancelCheckOutResponse } - * - */ - public CancelCheckOutResponse createCancelCheckOutResponse() { - return new CancelCheckOutResponse(); - } - - /** - * Create an instance of {@link CmisPropertyString } - * - */ - public CmisPropertyString createCmisPropertyString() { - return new CmisPropertyString(); - } - - /** - * Create an instance of {@link GetPropertiesResponse } - * - */ - public GetPropertiesResponse createGetPropertiesResponse() { - return new GetPropertiesResponse(); - } - - /** - * Create an instance of {@link UpdatePropertiesResponse } - * - */ - public UpdatePropertiesResponse createUpdatePropertiesResponse() { - return new UpdatePropertiesResponse(); - } - - /** - * Create an instance of {@link CheckInResponse } - * - */ - public CheckInResponse createCheckInResponse() { - return new CheckInResponse(); - } - - /** - * Create an instance of {@link AddObjectToFolderResponse } - * - */ - public AddObjectToFolderResponse createAddObjectToFolderResponse() { - return new AddObjectToFolderResponse(); - } - - /** - * Create an instance of {@link CmisTypePolicyDefinitionType } - * - */ - public CmisTypePolicyDefinitionType createCmisTypePolicyDefinitionType() { - return new CmisTypePolicyDefinitionType(); - } - - /** - * Create an instance of {@link GetFolderParent } - * - */ - public GetFolderParent createGetFolderParent() { - return new GetFolderParent(); - } - - /** - * Create an instance of {@link GetContentStream } - * - */ - public GetContentStream createGetContentStream() { - return new GetContentStream(); - } - - /** - * Create an instance of {@link CreateDocument } - * - */ - public CreateDocument createCreateDocument() { - return new CreateDocument(); - } - - /** - * Create an instance of {@link UpdateConflictExceptionType } - * - */ - public UpdateConflictExceptionType createUpdateConflictExceptionType() { - return new UpdateConflictExceptionType(); - } - - /** - * Create an instance of {@link CreatePolicyResponse } - * - */ - public CreatePolicyResponse createCreatePolicyResponse() { - return new CreatePolicyResponse(); - } - - /** - * Create an instance of {@link CmisRepositoryCapabilitiesType } - * - */ - public CmisRepositoryCapabilitiesType createCmisRepositoryCapabilitiesType() { - return new CmisRepositoryCapabilitiesType(); - } - - /** - * Create an instance of {@link ObjectNotFoundExceptionType } - * - */ - public ObjectNotFoundExceptionType createObjectNotFoundExceptionType() { - return new ObjectNotFoundExceptionType(); - } - - /** - * Create an instance of {@link CmisAllowableActionsType } - * - */ - public CmisAllowableActionsType createCmisAllowableActionsType() { - return new CmisAllowableActionsType(); - } - - /** - * Create an instance of {@link GetDescendants } - * - */ - public GetDescendants createGetDescendants() { - return new GetDescendants(); - } - - /** - * Create an instance of {@link CheckIn } - * - */ - public CheckIn createCheckIn() { - return new CheckIn(); - } - - /** - * Create an instance of {@link GetRepositoryInfo } - * - */ - public GetRepositoryInfo createGetRepositoryInfo() { - return new GetRepositoryInfo(); - } - - /** - * Create an instance of {@link GetCheckedoutDocsResponse } - * - */ - public GetCheckedoutDocsResponse createGetCheckedoutDocsResponse() { - return new GetCheckedoutDocsResponse(); - } - - /** - * Create an instance of {@link CheckOutResponse } - * - */ - public CheckOutResponse createCheckOutResponse() { - return new CheckOutResponse(); - } - - /** - * Create an instance of {@link GetProperties } - * - */ - public GetProperties createGetProperties() { - return new GetProperties(); - } - - /** - * Create an instance of {@link CmisChoiceDecimalType } - * - */ - public CmisChoiceDecimalType createCmisChoiceDecimalType() { - return new CmisChoiceDecimalType(); - } - - /** - * Create an instance of {@link FilterNotValidExceptionType } - * - */ - public FilterNotValidExceptionType createFilterNotValidExceptionType() { - return new FilterNotValidExceptionType(); - } - - /** - * Create an instance of {@link CmisTypeDefinitionType } - * - */ - public CmisTypeDefinitionType createCmisTypeDefinitionType() { - return new CmisTypeDefinitionType(); - } - - /** - * Create an instance of {@link CmisPropertyXml } - * - */ - public CmisPropertyXml createCmisPropertyXml() { - return new CmisPropertyXml(); - } - - /** - * Create an instance of {@link CmisFaultType } - * - */ - public CmisFaultType createCmisFaultType() { - return new CmisFaultType(); - } - - /** - * Create an instance of {@link DeleteContentStreamResponse } - * - */ - public DeleteContentStreamResponse createDeleteContentStreamResponse() { - return new DeleteContentStreamResponse(); - } - - /** - * Create an instance of {@link InvalidArgumentExceptionType } - * - */ - public InvalidArgumentExceptionType createInvalidArgumentExceptionType() { - return new InvalidArgumentExceptionType(); - } - - /** - * Create an instance of {@link TypeNotFoundExceptionType } - * - */ - public TypeNotFoundExceptionType createTypeNotFoundExceptionType() { - return new TypeNotFoundExceptionType(); - } - - /** - * Create an instance of {@link CmisPropertyDecimalDefinitionType } - * - */ - public CmisPropertyDecimalDefinitionType createCmisPropertyDecimalDefinitionType() { - return new CmisPropertyDecimalDefinitionType(); - } - - /** - * Create an instance of {@link GetAppliedPoliciesResponse } - * - */ - public GetAppliedPoliciesResponse createGetAppliedPoliciesResponse() { - return new GetAppliedPoliciesResponse(); - } - - /** - * Create an instance of {@link CmisContentStreamType } - * - */ - public CmisContentStreamType createCmisContentStreamType() { - return new CmisContentStreamType(); - } - - /** - * Create an instance of {@link ContentAlreadyExistsExceptionType } - * - */ - public ContentAlreadyExistsExceptionType createContentAlreadyExistsExceptionType() { - return new ContentAlreadyExistsExceptionType(); - } - - /** - * Create an instance of {@link RuntimeExceptionType } - * - */ - public RuntimeExceptionType createRuntimeExceptionType() { - return new RuntimeExceptionType(); - } - - /** - * Create an instance of {@link CreateDocumentResponse } - * - */ - public CreateDocumentResponse createCreateDocumentResponse() { - return new CreateDocumentResponse(); - } - - /** - * Create an instance of {@link ConstraintViolationExceptionType } - * - */ - public ConstraintViolationExceptionType createConstraintViolationExceptionType() { - return new ConstraintViolationExceptionType(); - } - - /** - * Create an instance of {@link CmisPropertyId } - * - */ - public CmisPropertyId createCmisPropertyId() { - return new CmisPropertyId(); - } - - /** - * Create an instance of {@link GetTypeDefinition } - * - */ - public GetTypeDefinition createGetTypeDefinition() { - return new GetTypeDefinition(); - } - - /** - * Create an instance of {@link CmisPropertyIdDefinitionType } - * - */ - public CmisPropertyIdDefinitionType createCmisPropertyIdDefinitionType() { - return new CmisPropertyIdDefinitionType(); - } - - /** - * Create an instance of {@link CmisTypeRelationshipDefinitionType } - * - */ - public CmisTypeRelationshipDefinitionType createCmisTypeRelationshipDefinitionType() { - return new CmisTypeRelationshipDefinitionType(); - } - - /** - * Create an instance of {@link CreateRelationshipResponse } - * - */ - public CreateRelationshipResponse createCreateRelationshipResponse() { - return new CreateRelationshipResponse(); - } - - /** - * Create an instance of {@link VersioningExceptionType } - * - */ - public VersioningExceptionType createVersioningExceptionType() { - return new VersioningExceptionType(); - } - - /** - * Create an instance of {@link PermissionDeniedExceptionType } - * - */ - public PermissionDeniedExceptionType createPermissionDeniedExceptionType() { - return new PermissionDeniedExceptionType(); - } - - /** - * Create an instance of {@link OperationNotSupportedExceptionType } - * - */ - public OperationNotSupportedExceptionType createOperationNotSupportedExceptionType() { - return new OperationNotSupportedExceptionType(); - } - - /** - * Create an instance of {@link GetAllVersions } - * - */ - public GetAllVersions createGetAllVersions() { - return new GetAllVersions(); - } - - /** - * Create an instance of {@link GetDescendantsResponse } - * - */ - public GetDescendantsResponse createGetDescendantsResponse() { - return new GetDescendantsResponse(); - } - - /** - * Create an instance of {@link GetChildren } - * - */ - public GetChildren createGetChildren() { - return new GetChildren(); - } - - /** - * Create an instance of {@link CmisChoiceBooleanType } - * - */ - public CmisChoiceBooleanType createCmisChoiceBooleanType() { - return new CmisChoiceBooleanType(); - } - - /** - * Create an instance of {@link RemoveObjectFromFolder } - * - */ - public RemoveObjectFromFolder createRemoveObjectFromFolder() { - return new RemoveObjectFromFolder(); - } - - /** - * Create an instance of {@link AddObjectToFolder } - * - */ - public AddObjectToFolder createAddObjectToFolder() { - return new AddObjectToFolder(); - } - - /** - * Create an instance of {@link GetRepositories } - * - */ - public GetRepositories createGetRepositories() { - return new GetRepositories(); - } - - /** - * Create an instance of {@link GetObjectParents } - * - */ - public GetObjectParents createGetObjectParents() { - return new GetObjectParents(); - } - - /** - * Create an instance of {@link CmisPropertyBooleanDefinitionType } - * - */ - public CmisPropertyBooleanDefinitionType createCmisPropertyBooleanDefinitionType() { - return new CmisPropertyBooleanDefinitionType(); - } - - /** - * Create an instance of {@link GetAppliedPolicies } - * - */ - public GetAppliedPolicies createGetAppliedPolicies() { - return new GetAppliedPolicies(); - } - - /** - * Create an instance of {@link GetChildrenResponse } - * - */ - public GetChildrenResponse createGetChildrenResponse() { - return new GetChildrenResponse(); - } - - /** - * Create an instance of {@link DeleteTreeResponse } - * - */ - public DeleteTreeResponse createDeleteTreeResponse() { - return new DeleteTreeResponse(); - } - - /** - * Create an instance of {@link FolderNotValidExceptionType } - * - */ - public FolderNotValidExceptionType createFolderNotValidExceptionType() { - return new FolderNotValidExceptionType(); - } - - /** - * Create an instance of {@link GetTypeDefinitionResponse } - * - */ - public GetTypeDefinitionResponse createGetTypeDefinitionResponse() { - return new GetTypeDefinitionResponse(); - } - - /** - * Create an instance of {@link CmisPropertyDecimal } - * - */ - public CmisPropertyDecimal createCmisPropertyDecimal() { - return new CmisPropertyDecimal(); - } - - /** - * Create an instance of {@link MoveObjectResponse } - * - */ - public MoveObjectResponse createMoveObjectResponse() { - return new MoveObjectResponse(); - } - - /** - * Create an instance of {@link RemovePolicyResponse } - * - */ - public RemovePolicyResponse createRemovePolicyResponse() { - return new RemovePolicyResponse(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "changeToken", scope = UpdateProperties.class) - public JAXBElement createUpdatePropertiesChangeToken(String value) { - return new JAXBElement(_UpdatePropertiesChangeToken_QNAME, String.class, UpdateProperties.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "folderId", scope = CreatePolicy.class) - public JAXBElement createCreatePolicyFolderId(String value) { - return new JAXBElement(_CreatePolicyFolderId_QNAME, String.class, CreatePolicy.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link EnumVersioningState }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "versioningState", scope = CreateDocument.class) - public JAXBElement createCreateDocumentVersioningState(EnumVersioningState value) { - return new JAXBElement(_CreateDocumentVersioningState_QNAME, EnumVersioningState.class, CreateDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "contentStream", scope = CreateDocument.class) - public JAXBElement createCreateDocumentContentStream(CmisContentStreamType value) { - return new JAXBElement(_CreateDocumentContentStream_QNAME, CmisContentStreamType.class, CreateDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetAllVersions.class) - public JAXBElement createGetAllVersionsIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetAllVersions.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetAllVersions.class) - public JAXBElement createGetAllVersionsFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetAllVersions.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetAllVersions.class) - public JAXBElement createGetAllVersionsIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetAllVersions.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "skipCount", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsSkipCount(BigInteger value) { - return new JAXBElement(_GetRelationshipsSkipCount_QNAME, BigInteger.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "typeId", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsTypeId(String value) { - return new JAXBElement(_GetRelationshipsTypeId_QNAME, String.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeSubRelationshipTypes", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsIncludeSubRelationshipTypes(Boolean value) { - return new JAXBElement(_GetRelationshipsIncludeSubRelationshipTypes_QNAME, Boolean.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link EnumRelationshipDirection }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "direction", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsDirection(EnumRelationshipDirection value) { - return new JAXBElement(_GetRelationshipsDirection_QNAME, EnumRelationshipDirection.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "maxItems", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsMaxItems(BigInteger value) { - return new JAXBElement(_GetRelationshipsMaxItems_QNAME, BigInteger.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetRelationships.class) - public JAXBElement createGetRelationshipsIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetRelationships.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyStringDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyStringDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyStringDefinition(CmisPropertyStringDefinitionType value) { - return new JAXBElement(_PropertyStringDefinition_QNAME, CmisPropertyStringDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyXml }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyXml", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyXml(CmisPropertyXml value) { - return new JAXBElement(_PropertyXml_QNAME, CmisPropertyXml.class, null, value); - } - /** * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceDateTimeType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceDateTime", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceDateTime", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") public JAXBElement createChoiceDateTime(CmisChoiceDateTimeType value) { return new JAXBElement(_ChoiceDateTime_QNAME, CmisChoiceDateTimeType.class, null, value); } - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "terminator") - public JAXBElement createTerminator(String value) { - return new JAXBElement(_Terminator_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisObjectType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "object") - public JAXBElement createObject(CmisObjectType value) { - return new JAXBElement(_Object_QNAME, CmisObjectType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ObjectNotFoundExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "objectNotFoundException") - public JAXBElement createObjectNotFoundException(ObjectNotFoundExceptionType value) { - return new JAXBElement(_ObjectNotFoundException_QNAME, ObjectNotFoundExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "hasMoreItems") - public JAXBElement createHasMoreItems(Boolean value) { - return new JAXBElement(_HasMoreItems_QNAME, Boolean.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceBooleanType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceBoolean", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceBoolean(CmisChoiceBooleanType value) { - return new JAXBElement(_ChoiceBoolean_QNAME, CmisChoiceBooleanType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDecimal }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyDecimal", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyDecimal(CmisPropertyDecimal value) { - return new JAXBElement(_PropertyDecimal_QNAME, CmisPropertyDecimal.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyDefinition") - public JAXBElement createPropertyDefinition(CmisPropertyDefinitionType value) { - return new JAXBElement(_PropertyDefinition_QNAME, CmisPropertyDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceHtmlType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceHtml", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceHtml(CmisChoiceHtmlType value) { - return new JAXBElement(_ChoiceHtml_QNAME, CmisChoiceHtmlType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ConstraintViolationExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "constraintViolationException") - public JAXBElement createConstraintViolationException(ConstraintViolationExceptionType value) { - return new JAXBElement(_ConstraintViolationException_QNAME, ConstraintViolationExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link OperationNotSupportedExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "operationNotSupportedException") - public JAXBElement createOperationNotSupportedException(OperationNotSupportedExceptionType value) { - return new JAXBElement(_OperationNotSupportedException_QNAME, OperationNotSupportedExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TypeNotFoundExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "typeNotFoundException") - public JAXBElement createTypeNotFoundException(TypeNotFoundExceptionType value) { - return new JAXBElement(_TypeNotFoundException_QNAME, TypeNotFoundExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FolderNotValidExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "folderNotValidException") - public JAXBElement createFolderNotValidException(FolderNotValidExceptionType value) { - return new JAXBElement(_FolderNotValidException_QNAME, FolderNotValidExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeDocumentDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "documentType", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "type") - public JAXBElement createDocumentType(CmisTypeDocumentDefinitionType value) { - return new JAXBElement(_DocumentType_QNAME, CmisTypeDocumentDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "type") - public JAXBElement createType(CmisTypeDefinitionType value) { - return new JAXBElement(_Type_QNAME, CmisTypeDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceIntegerType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceInteger", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceInteger(CmisChoiceIntegerType value) { - return new JAXBElement(_ChoiceInteger_QNAME, CmisChoiceIntegerType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link InvalidArgumentExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "invalidArgumentException") - public JAXBElement createInvalidArgumentException(InvalidArgumentExceptionType value) { - return new JAXBElement(_InvalidArgumentException_QNAME, InvalidArgumentExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link OffsetExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "offsetException") - public JAXBElement createOffsetException(OffsetExceptionType value) { - return new JAXBElement(_OffsetException_QNAME, OffsetExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link StorageExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "storageException") - public JAXBElement createStorageException(StorageExceptionType value) { - return new JAXBElement(_StorageException_QNAME, StorageExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceDecimalType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceDecimal", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceDecimal(CmisChoiceDecimalType value) { - return new JAXBElement(_ChoiceDecimal_QNAME, CmisChoiceDecimalType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeRelationshipDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "relationshipType", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "type") - public JAXBElement createRelationshipType(CmisTypeRelationshipDefinitionType value) { - return new JAXBElement(_RelationshipType_QNAME, CmisTypeRelationshipDefinitionType.class, null, value); - } - /** * Create an instance of {@link JAXBElement }{@code <}{@link CmisAllowableActionsType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "allowableActions") + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "allowableActions") public JAXBElement createAllowableActions(CmisAllowableActionsType value) { return new JAXBElement(_AllowableActions_QNAME, CmisAllowableActionsType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceStringType }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeDocumentDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceString", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceString(CmisChoiceStringType value) { - return new JAXBElement(_ChoiceString_QNAME, CmisChoiceStringType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeFolderDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "folderType", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "type") - public JAXBElement createFolderType(CmisTypeFolderDefinitionType value) { - return new JAXBElement(_FolderType_QNAME, CmisTypeFolderDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link VersioningExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "versioningException") - public JAXBElement createVersioningException(VersioningExceptionType value) { - return new JAXBElement(_VersioningException_QNAME, VersioningExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceIdType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceId", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceId(CmisChoiceIdType value) { - return new JAXBElement(_ChoiceId_QNAME, CmisChoiceIdType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisQueryType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "query") - public JAXBElement createQuery(CmisQueryType value) { - return new JAXBElement(_Query_QNAME, CmisQueryType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceUriType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceUri", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceUri(CmisChoiceUriType value) { - return new JAXBElement(_ChoiceUri_QNAME, CmisChoiceUriType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyBoolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyBoolean", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyBoolean(CmisPropertyBoolean value) { - return new JAXBElement(_PropertyBoolean_QNAME, CmisPropertyBoolean.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDecimalDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyDecimalDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyDecimalDefinition(CmisPropertyDecimalDefinitionType value) { - return new JAXBElement(_PropertyDecimalDefinition_QNAME, CmisPropertyDecimalDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypePolicyDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "policyType", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "type") - public JAXBElement createPolicyType(CmisTypePolicyDefinitionType value) { - return new JAXBElement(_PolicyType_QNAME, CmisTypePolicyDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyInteger", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyInteger(CmisPropertyInteger value) { - return new JAXBElement(_PropertyInteger_QNAME, CmisPropertyInteger.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyBooleanDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyBooleanDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyBooleanDefinition(CmisPropertyBooleanDefinitionType value) { - return new JAXBElement(_PropertyBooleanDefinition_QNAME, CmisPropertyBooleanDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyString }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyString", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyString(CmisPropertyString value) { - return new JAXBElement(_PropertyString_QNAME, CmisPropertyString.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyIdDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyIdDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyIdDefinition(CmisPropertyIdDefinitionType value) { - return new JAXBElement(_PropertyIdDefinition_QNAME, CmisPropertyIdDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisRepositoryInfoType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "getRepositoryInfoResponse") - public JAXBElement createGetRepositoryInfoResponse(CmisRepositoryInfoType value) { - return new JAXBElement(_GetRepositoryInfoResponse_QNAME, CmisRepositoryInfoType.class, null, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "documentType", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "type") + public JAXBElement createDocumentType(CmisTypeDocumentDefinitionType value) { + return new JAXBElement(_DocumentType_QNAME, CmisTypeDocumentDefinitionType.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyUriDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyUriDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyUriDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") public JAXBElement createPropertyUriDefinition(CmisPropertyUriDefinitionType value) { return new JAXBElement(_PropertyUriDefinition_QNAME, CmisPropertyUriDefinitionType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDateTime }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceDecimalType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyDateTime", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyDateTime(CmisPropertyDateTime value) { - return new JAXBElement(_PropertyDateTime_QNAME, CmisPropertyDateTime.class, null, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceDecimal", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceDecimal(CmisChoiceDecimalType value) { + return new JAXBElement(_ChoiceDecimal_QNAME, CmisChoiceDecimalType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisRepositoryInfoType }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceStringType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "repositoryInfo") - public JAXBElement createRepositoryInfo(CmisRepositoryInfoType value) { - return new JAXBElement(_RepositoryInfo_QNAME, CmisRepositoryInfoType.class, null, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceString", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceString(CmisChoiceStringType value) { + return new JAXBElement(_ChoiceString_QNAME, CmisChoiceStringType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ContentAlreadyExistsExceptionType }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisQueryType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "contentAlreadyExistsException") - public JAXBElement createContentAlreadyExistsException(ContentAlreadyExistsExceptionType value) { - return new JAXBElement(_ContentAlreadyExistsException_QNAME, ContentAlreadyExistsExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link UpdateConflictExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "updateConflictException") - public JAXBElement createUpdateConflictException(UpdateConflictExceptionType value) { - return new JAXBElement(_UpdateConflictException_QNAME, UpdateConflictExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choice") - public JAXBElement createChoice(CmisChoiceType value) { - return new JAXBElement(_Choice_QNAME, CmisChoiceType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyXmlDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyXmlDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyXmlDefinition(CmisPropertyXmlDefinitionType value) { - return new JAXBElement(_PropertyXmlDefinition_QNAME, CmisPropertyXmlDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link PermissionDeniedExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "permissionDeniedException") - public JAXBElement createPermissionDeniedException(PermissionDeniedExceptionType value) { - return new JAXBElement(_PermissionDeniedException_QNAME, PermissionDeniedExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceXmlType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "choiceXml", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "choice") - public JAXBElement createChoiceXml(CmisChoiceXmlType value) { - return new JAXBElement(_ChoiceXml_QNAME, CmisChoiceXmlType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link NotInFolderExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "notInFolderException") - public JAXBElement createNotInFolderException(NotInFolderExceptionType value) { - return new JAXBElement(_NotInFolderException_QNAME, NotInFolderExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link StreamNotSupportedExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "streamNotSupportedException") - public JAXBElement createStreamNotSupportedException(StreamNotSupportedExceptionType value) { - return new JAXBElement(_StreamNotSupportedException_QNAME, StreamNotSupportedExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "property") - public JAXBElement createProperty(CmisProperty value) { - return new JAXBElement(_Property_QNAME, CmisProperty.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FilterNotValidExceptionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filterNotValidException") - public JAXBElement createFilterNotValidException(FilterNotValidExceptionType value) { - return new JAXBElement(_FilterNotValidException_QNAME, FilterNotValidExceptionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyHtmlDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyHtmlDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyHtmlDefinition(CmisPropertyHtmlDefinitionType value) { - return new JAXBElement(_PropertyHtmlDefinition_QNAME, CmisPropertyHtmlDefinitionType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyUri }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyUri", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") - public JAXBElement createPropertyUri(CmisPropertyUri value) { - return new JAXBElement(_PropertyUri_QNAME, CmisPropertyUri.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDateTimeDefinitionType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyDateTimeDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") - public JAXBElement createPropertyDateTimeDefinition(CmisPropertyDateTimeDefinitionType value) { - return new JAXBElement(_PropertyDateTimeDefinition_QNAME, CmisPropertyDateTimeDefinitionType.class, null, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "query") + public JAXBElement createQuery(CmisQueryType value) { + return new JAXBElement(_Query_QNAME, CmisQueryType.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyHtml }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyHtml", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyHtml", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") public JAXBElement createPropertyHtml(CmisPropertyHtml value) { return new JAXBElement(_PropertyHtml_QNAME, CmisPropertyHtml.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choice") + public JAXBElement createChoice(CmisChoiceType value) { + return new JAXBElement(_Choice_QNAME, CmisChoiceType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisObjectType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "object") + public JAXBElement createObject(CmisObjectType value) { + return new JAXBElement(_Object_QNAME, CmisObjectType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisRepositoryInfoType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "repositoryInfo") + public JAXBElement createRepositoryInfo(CmisRepositoryInfoType value) { + return new JAXBElement(_RepositoryInfo_QNAME, CmisRepositoryInfoType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDecimal }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyDecimal", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyDecimal(CmisPropertyDecimal value) { + return new JAXBElement(_PropertyDecimal_QNAME, CmisPropertyDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "type") + public JAXBElement createType(CmisTypeDefinitionType value) { + return new JAXBElement(_Type_QNAME, CmisTypeDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyHtmlDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyHtmlDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyHtmlDefinition(CmisPropertyHtmlDefinitionType value) { + return new JAXBElement(_PropertyHtmlDefinition_QNAME, CmisPropertyHtmlDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeRelationshipDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "relationshipType", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "type") + public JAXBElement createRelationshipType(CmisTypeRelationshipDefinitionType value) { + return new JAXBElement(_RelationshipType_QNAME, CmisTypeRelationshipDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyStringDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyStringDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyStringDefinition(CmisPropertyStringDefinitionType value) { + return new JAXBElement(_PropertyStringDefinition_QNAME, CmisPropertyStringDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceXmlType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceXml", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceXml(CmisChoiceXmlType value) { + return new JAXBElement(_ChoiceXml_QNAME, CmisChoiceXmlType.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyId }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyId", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "property") + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyId", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") public JAXBElement createPropertyId(CmisPropertyId value) { return new JAXBElement(_PropertyId_QNAME, CmisPropertyId.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link RuntimeExceptionType }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceUriType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "runtimeException") - public JAXBElement createRuntimeException(RuntimeExceptionType value) { - return new JAXBElement(_RuntimeException_QNAME, RuntimeExceptionType.class, null, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceUri", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceUri(CmisChoiceUriType value) { + return new JAXBElement(_ChoiceUri_QNAME, CmisChoiceUriType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceIntegerType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceInteger", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceInteger(CmisChoiceIntegerType value) { + return new JAXBElement(_ChoiceInteger_QNAME, CmisChoiceIntegerType.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyIntegerDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "propertyIntegerDefinition", substitutionHeadNamespace = "http://www.cmis.org/2008/05", substitutionHeadName = "propertyDefinition") + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyIntegerDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") public JAXBElement createPropertyIntegerDefinition(CmisPropertyIntegerDefinitionType value) { return new JAXBElement(_PropertyIntegerDefinition_QNAME, CmisPropertyIntegerDefinitionType.class, null, value); } @@ -1815,313 +1302,421 @@ public class ObjectFactory { * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetChildren.class) - public JAXBElement createGetChildrenIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetChildren.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "hasMoreItems") + public JAXBElement createHasMoreItems(Boolean value) { + return new JAXBElement(_HasMoreItems_QNAME, Boolean.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link EnumTypesOfFileableObjects }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceBooleanType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "type", scope = GetChildren.class) - public JAXBElement createGetChildrenType(EnumTypesOfFileableObjects value) { - return new JAXBElement(_Type_QNAME, EnumTypesOfFileableObjects.class, GetChildren.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceBoolean", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceBoolean(CmisChoiceBooleanType value) { + return new JAXBElement(_ChoiceBoolean_QNAME, CmisChoiceBooleanType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyIdDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "skipCount", scope = GetChildren.class) - public JAXBElement createGetChildrenSkipCount(BigInteger value) { - return new JAXBElement(_GetRelationshipsSkipCount_QNAME, BigInteger.class, GetChildren.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyIdDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyIdDefinition(CmisPropertyIdDefinitionType value) { + return new JAXBElement(_PropertyIdDefinition_QNAME, CmisPropertyIdDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyXmlDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyXmlDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyXmlDefinition(CmisPropertyXmlDefinitionType value) { + return new JAXBElement(_PropertyXmlDefinition_QNAME, CmisPropertyXmlDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDateTime }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyDateTime", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyDateTime(CmisPropertyDateTime value) { + return new JAXBElement(_PropertyDateTime_QNAME, CmisPropertyDateTime.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisFaultType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "cmisFault") + public JAXBElement createCmisFault(CmisFaultType value) { + return new JAXBElement(_CmisFault_QNAME, CmisFaultType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyBooleanDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyBooleanDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyBooleanDefinition(CmisPropertyBooleanDefinitionType value) { + return new JAXBElement(_PropertyBooleanDefinition_QNAME, CmisPropertyBooleanDefinitionType.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetChildren.class) - public JAXBElement createGetChildrenFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetChildren.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "terminator") + public JAXBElement createTerminator(String value) { + return new JAXBElement(_Terminator_QNAME, String.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypeFolderDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "maxItems", scope = GetChildren.class) - public JAXBElement createGetChildrenMaxItems(BigInteger value) { - return new JAXBElement(_GetRelationshipsMaxItems_QNAME, BigInteger.class, GetChildren.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "folderType", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "type") + public JAXBElement createFolderType(CmisTypeFolderDefinitionType value) { + return new JAXBElement(_FolderType_QNAME, CmisTypeFolderDefinitionType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisProperty }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetChildren.class) - public JAXBElement createGetChildrenIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetChildren.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "property") + public JAXBElement createProperty(CmisProperty value) { + return new JAXBElement(_Property_QNAME, CmisProperty.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "continueOnFailure", scope = DeleteTree.class) - public JAXBElement createDeleteTreeContinueOnFailure(Boolean value) { - return new JAXBElement(_DeleteTreeContinueOnFailure_QNAME, Boolean.class, DeleteTree.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyDefinition") + public JAXBElement createPropertyDefinition(CmisPropertyDefinitionType value) { + return new JAXBElement(_PropertyDefinition_QNAME, CmisPropertyDefinitionType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertiesType }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyXml }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "properties", scope = CheckIn.class) - public JAXBElement createCheckInProperties(CmisPropertiesType value) { - return new JAXBElement(_CheckInProperties_QNAME, CmisPropertiesType.class, CheckIn.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyXml", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyXml(CmisPropertyXml value) { + return new JAXBElement(_PropertyXml_QNAME, CmisPropertyXml.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisTypePolicyDefinitionType }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "major", scope = CheckIn.class) - public JAXBElement createCheckInMajor(Boolean value) { - return new JAXBElement(_CheckInMajor_QNAME, Boolean.class, CheckIn.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "policyType", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "type") + public JAXBElement createPolicyType(CmisTypePolicyDefinitionType value) { + return new JAXBElement(_PolicyType_QNAME, CmisTypePolicyDefinitionType.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyBoolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "contentStream", scope = CheckIn.class) - public JAXBElement createCheckInContentStream(CmisContentStreamType value) { - return new JAXBElement(_CreateDocumentContentStream_QNAME, CmisContentStreamType.class, CheckIn.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyBoolean", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyBoolean(CmisPropertyBoolean value) { + return new JAXBElement(_PropertyBoolean_QNAME, CmisPropertyBoolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyString }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyString", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyString(CmisPropertyString value) { + return new JAXBElement(_PropertyString_QNAME, CmisPropertyString.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyUri }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyUri", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyUri(CmisPropertyUri value) { + return new JAXBElement(_PropertyUri_QNAME, CmisPropertyUri.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDecimalDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyDecimalDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyDecimalDefinition(CmisPropertyDecimalDefinitionType value) { + return new JAXBElement(_PropertyDecimalDefinition_QNAME, CmisPropertyDecimalDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceIdType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceId", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceId(CmisChoiceIdType value) { + return new JAXBElement(_ChoiceId_QNAME, CmisChoiceIdType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceHtmlType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "choiceHtml", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "choice") + public JAXBElement createChoiceHtml(CmisChoiceHtmlType value) { + return new JAXBElement(_ChoiceHtml_QNAME, CmisChoiceHtmlType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDateTimeDefinitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyDateTimeDefinition", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "propertyDefinition") + public JAXBElement createPropertyDateTimeDefinition(CmisPropertyDateTimeDefinitionType value) { + return new JAXBElement(_PropertyDateTimeDefinition_QNAME, CmisPropertyDateTimeDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", name = "propertyInteger", substitutionHeadNamespace = "http://docs.oasis-open.org/ns/cmis/core/200901", substitutionHeadName = "property") + public JAXBElement createPropertyInteger(CmisPropertyInteger value) { + return new JAXBElement(_PropertyInteger_QNAME, CmisPropertyInteger.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "checkinComment", scope = CheckIn.class) - public JAXBElement createCheckInCheckinComment(String value) { - return new JAXBElement(_CheckInCheckinComment_QNAME, String.class, CheckIn.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetDescendants.class) - public JAXBElement createGetDescendantsIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetDescendants.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "folderId", scope = RemoveObjectFromFolder.class) + public JAXBElement createRemoveObjectFromFolderFolderId(String value) { + return new JAXBElement(_RemoveObjectFromFolderFolderId_QNAME, String.class, RemoveObjectFromFolder.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetDescendants.class) + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetDescendants.class) public JAXBElement createGetDescendantsFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetDescendants.class, value); + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetDescendants.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "depth", scope = GetDescendants.class) + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "depth", scope = GetDescendants.class) public JAXBElement createGetDescendantsDepth(BigInteger value) { return new JAXBElement(_GetDescendantsDepth_QNAME, BigInteger.class, GetDescendants.class, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetDescendants.class) - public JAXBElement createGetDescendantsIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetDescendants.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetDescendants.class) + public JAXBElement createGetDescendantsIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetDescendants.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "returnPropertyDefinitions", scope = GetTypes.class) - public JAXBElement createGetTypesReturnPropertyDefinitions(Boolean value) { - return new JAXBElement(_GetTypesReturnPropertyDefinitions_QNAME, Boolean.class, GetTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "skipCount", scope = GetTypes.class) - public JAXBElement createGetTypesSkipCount(BigInteger value) { - return new JAXBElement(_GetRelationshipsSkipCount_QNAME, BigInteger.class, GetTypes.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetDescendants.class) + public JAXBElement createGetDescendantsIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetDescendants.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "typeId", scope = GetTypes.class) - public JAXBElement createGetTypesTypeId(String value) { - return new JAXBElement(_GetRelationshipsTypeId_QNAME, String.class, GetTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "maxItems", scope = GetTypes.class) - public JAXBElement createGetTypesMaxItems(BigInteger value) { - return new JAXBElement(_GetRelationshipsMaxItems_QNAME, BigInteger.class, GetTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetCheckedoutDocs.class) - public JAXBElement createGetCheckedoutDocsIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetCheckedoutDocs.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "skipCount", scope = GetCheckedoutDocs.class) - public JAXBElement createGetCheckedoutDocsSkipCount(BigInteger value) { - return new JAXBElement(_GetRelationshipsSkipCount_QNAME, BigInteger.class, GetCheckedoutDocs.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetCheckedoutDocs.class) - public JAXBElement createGetCheckedoutDocsFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetCheckedoutDocs.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "maxItems", scope = GetCheckedoutDocs.class) - public JAXBElement createGetCheckedoutDocsMaxItems(BigInteger value) { - return new JAXBElement(_GetRelationshipsMaxItems_QNAME, BigInteger.class, GetCheckedoutDocs.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetCheckedoutDocs.class) - public JAXBElement createGetCheckedoutDocsIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetCheckedoutDocs.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "folderID", scope = GetCheckedoutDocs.class) - public JAXBElement createGetCheckedoutDocsFolderID(String value) { - return new JAXBElement(_GetCheckedoutDocsFolderID_QNAME, String.class, GetCheckedoutDocs.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "folderId", scope = RemoveObjectFromFolder.class) - public JAXBElement createRemoveObjectFromFolderFolderId(String value) { - return new JAXBElement(_CreatePolicyFolderId_QNAME, String.class, RemoveObjectFromFolder.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetProperties.class) - public JAXBElement createGetPropertiesIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetProperties.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetProperties.class) + public JAXBElement createGetPropertiesFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetProperties.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link EnumReturnVersion }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "returnVersion", scope = GetProperties.class) + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "returnVersion", scope = GetProperties.class) public JAXBElement createGetPropertiesReturnVersion(EnumReturnVersion value) { return new JAXBElement(_GetPropertiesReturnVersion_QNAME, EnumReturnVersion.class, GetProperties.class, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetProperties.class) - public JAXBElement createGetPropertiesFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetProperties.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetProperties.class) + public JAXBElement createGetPropertiesIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetProperties.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetProperties.class) - public JAXBElement createGetPropertiesIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetProperties.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetProperties.class) + public JAXBElement createGetPropertiesIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetProperties.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "overwriteFlag", scope = SetContentStream.class) + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeProperties", scope = GetContentChanges.class) + public JAXBElement createGetContentChangesIncludeProperties(Boolean value) { + return new JAXBElement(_GetContentChangesIncludeProperties_QNAME, Boolean.class, GetContentChanges.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeACL", scope = GetContentChanges.class) + public JAXBElement createGetContentChangesIncludeACL(Boolean value) { + return new JAXBElement(_GetContentChangesIncludeACL_QNAME, Boolean.class, GetContentChanges.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "maxItems", scope = GetContentChanges.class) + public JAXBElement createGetContentChangesMaxItems(BigInteger value) { + return new JAXBElement(_GetContentChangesMaxItems_QNAME, BigInteger.class, GetContentChanges.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "continueOnFailure", scope = DeleteTree.class) + public JAXBElement createDeleteTreeContinueOnFailure(Boolean value) { + return new JAXBElement(_DeleteTreeContinueOnFailure_QNAME, Boolean.class, DeleteTree.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "overwriteFlag", scope = SetContentStream.class) public JAXBElement createSetContentStreamOverwriteFlag(Boolean value) { return new JAXBElement(_SetContentStreamOverwriteFlag_QNAME, Boolean.class, SetContentStream.class, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetObjectParents.class) - public JAXBElement createGetObjectParentsIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetObjectParents.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetAppliedPolicies.class) + public JAXBElement createGetAppliedPoliciesFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetAppliedPolicies.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetObjectParents.class) - public JAXBElement createGetObjectParentsIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetObjectParents.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includePropertyDefinitions", scope = GetTypes.class) + public JAXBElement createGetTypesIncludePropertyDefinitions(Boolean value) { + return new JAXBElement(_GetTypesIncludePropertyDefinitions_QNAME, Boolean.class, GetTypes.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "skipCount", scope = GetTypes.class) + public JAXBElement createGetTypesSkipCount(BigInteger value) { + return new JAXBElement(_GetTypesSkipCount_QNAME, BigInteger.class, GetTypes.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "maxItems", scope = GetTypes.class) + public JAXBElement createGetTypesMaxItems(BigInteger value) { + return new JAXBElement(_GetContentChangesMaxItems_QNAME, BigInteger.class, GetTypes.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetPropertiesOfLatestVersion.class) - public JAXBElement createGetPropertiesOfLatestVersionFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetPropertiesOfLatestVersion.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "typeId", scope = GetTypes.class) + public JAXBElement createGetTypesTypeId(String value) { + return new JAXBElement(_GetTypesTypeId_QNAME, String.class, GetTypes.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "sourceFolderId", scope = MoveObject.class) + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "folderId", scope = CreatePolicy.class) + public JAXBElement createCreatePolicyFolderId(String value) { + return new JAXBElement(_RemoveObjectFromFolderFolderId_QNAME, String.class, CreatePolicy.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "contentStream", scope = CreateDocument.class) + public JAXBElement createCreateDocumentContentStream(CmisContentStreamType value) { + return new JAXBElement(_CreateDocumentContentStream_QNAME, CmisContentStreamType.class, CreateDocument.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumVersioningState }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "versioningState", scope = CreateDocument.class) + public JAXBElement createCreateDocumentVersioningState(EnumVersioningState value) { + return new JAXBElement(_CreateDocumentVersioningState_QNAME, EnumVersioningState.class, CreateDocument.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "returnToRoot", scope = GetFolderParent.class) + public JAXBElement createGetFolderParentReturnToRoot(Boolean value) { + return new JAXBElement(_GetFolderParentReturnToRoot_QNAME, Boolean.class, GetFolderParent.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetFolderParent.class) + public JAXBElement createGetFolderParentIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetFolderParent.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetFolderParent.class) + public JAXBElement createGetFolderParentIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetFolderParent.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "sourceFolderId", scope = MoveObject.class) public JAXBElement createMoveObjectSourceFolderId(String value) { return new JAXBElement(_MoveObjectSourceFolderId_QNAME, String.class, MoveObject.class, value); } @@ -2130,36 +1725,288 @@ public class ObjectFactory { * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetAppliedPolicies.class) - public JAXBElement createGetAppliedPoliciesFilter(String value) { - return new JAXBElement(_GetAllVersionsFilter_QNAME, String.class, GetAppliedPolicies.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetChildren.class) + public JAXBElement createGetChildrenFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetChildren.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "skipCount", scope = GetChildren.class) + public JAXBElement createGetChildrenSkipCount(BigInteger value) { + return new JAXBElement(_GetTypesSkipCount_QNAME, BigInteger.class, GetChildren.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "maxItems", scope = GetChildren.class) + public JAXBElement createGetChildrenMaxItems(BigInteger value) { + return new JAXBElement(_GetContentChangesMaxItems_QNAME, BigInteger.class, GetChildren.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetChildren.class) + public JAXBElement createGetChildrenIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetChildren.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeAllowableActions", scope = GetFolderParent.class) - public JAXBElement createGetFolderParentIncludeAllowableActions(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeAllowableActions_QNAME, Boolean.class, GetFolderParent.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetChildren.class) + public JAXBElement createGetChildrenIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetChildren.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumTypesOfFileableObjects }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "type", scope = GetChildren.class) + public JAXBElement createGetChildrenType(EnumTypesOfFileableObjects value) { + return new JAXBElement(_GetChildrenType_QNAME, EnumTypesOfFileableObjects.class, GetChildren.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetAllVersions.class) + public JAXBElement createGetAllVersionsFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetAllVersions.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetAllVersions.class) + public JAXBElement createGetAllVersionsIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetAllVersions.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "returnToRoot", scope = GetFolderParent.class) - public JAXBElement createGetFolderParentReturnToRoot(Boolean value) { - return new JAXBElement(_GetFolderParentReturnToRoot_QNAME, Boolean.class, GetFolderParent.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetAllVersions.class) + public JAXBElement createGetAllVersionsIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetAllVersions.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetRelationships.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "includeRelationships", scope = GetFolderParent.class) - public JAXBElement createGetFolderParentIncludeRelationships(Boolean value) { - return new JAXBElement(_GetAllVersionsIncludeRelationships_QNAME, Boolean.class, GetFolderParent.class, value); + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeSubRelationshipTypes", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsIncludeSubRelationshipTypes(Boolean value) { + return new JAXBElement(_GetRelationshipsIncludeSubRelationshipTypes_QNAME, Boolean.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "skipCount", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsSkipCount(BigInteger value) { + return new JAXBElement(_GetTypesSkipCount_QNAME, BigInteger.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "maxItems", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsMaxItems(BigInteger value) { + return new JAXBElement(_GetContentChangesMaxItems_QNAME, BigInteger.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "typeId", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsTypeId(String value) { + return new JAXBElement(_GetTypesTypeId_QNAME, String.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumRelationshipDirection }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "direction", scope = GetRelationships.class) + public JAXBElement createGetRelationshipsDirection(EnumRelationshipDirection value) { + return new JAXBElement(_GetRelationshipsDirection_QNAME, EnumRelationshipDirection.class, GetRelationships.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "changeToken", scope = UpdateProperties.class) + public JAXBElement createUpdatePropertiesChangeToken(String value) { + return new JAXBElement(_UpdatePropertiesChangeToken_QNAME, String.class, UpdateProperties.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetPropertiesOfLatestVersion.class) + public JAXBElement createGetPropertiesOfLatestVersionFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetPropertiesOfLatestVersion.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertiesType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "properties", scope = CheckIn.class) + public JAXBElement createCheckInProperties(CmisPropertiesType value) { + return new JAXBElement(_CheckInProperties_QNAME, CmisPropertiesType.class, CheckIn.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "major", scope = CheckIn.class) + public JAXBElement createCheckInMajor(Boolean value) { + return new JAXBElement(_CheckInMajor_QNAME, Boolean.class, CheckIn.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "contentStream", scope = CheckIn.class) + public JAXBElement createCheckInContentStream(CmisContentStreamType value) { + return new JAXBElement(_CreateDocumentContentStream_QNAME, CmisContentStreamType.class, CheckIn.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "checkinComment", scope = CheckIn.class) + public JAXBElement createCheckInCheckinComment(String value) { + return new JAXBElement(_CheckInCheckinComment_QNAME, String.class, CheckIn.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetObjectParents.class) + public JAXBElement createGetObjectParentsIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetObjectParents.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetObjectParents.class) + public JAXBElement createGetObjectParentsIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetObjectParents.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "folderId", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsFolderId(String value) { + return new JAXBElement(_RemoveObjectFromFolderFolderId_QNAME, String.class, GetCheckedoutDocs.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "filter", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsFilter(String value) { + return new JAXBElement(_GetDescendantsFilter_QNAME, String.class, GetCheckedoutDocs.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "skipCount", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsSkipCount(BigInteger value) { + return new JAXBElement(_GetTypesSkipCount_QNAME, BigInteger.class, GetCheckedoutDocs.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "maxItems", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsMaxItems(BigInteger value) { + return new JAXBElement(_GetContentChangesMaxItems_QNAME, BigInteger.class, GetCheckedoutDocs.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumIncludeRelationships }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeRelationships", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsIncludeRelationships(EnumIncludeRelationships value) { + return new JAXBElement(_GetDescendantsIncludeRelationships_QNAME, EnumIncludeRelationships.class, GetCheckedoutDocs.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "includeAllowableActions", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsIncludeAllowableActions(Boolean value) { + return new JAXBElement(_GetDescendantsIncludeAllowableActions_QNAME, Boolean.class, GetCheckedoutDocs.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", name = "orderBy", scope = GetCheckedoutDocs.class) + public JAXBElement createGetCheckedoutDocsOrderBy(String value) { + return new JAXBElement(_GetCheckedoutDocsOrderBy_QNAME, String.class, GetCheckedoutDocs.class, value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java deleted file mode 100644 index ef70fa686b..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "objectNotFoundException", targetNamespace = "http://www.cmis.org/2008/05") -public class ObjectNotFoundException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.ObjectNotFoundExceptionType objectNotFoundException; - - 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.ObjectNotFoundExceptionType objectNotFoundException) { - super(message); - this.objectNotFoundException = objectNotFoundException; - } - - public ObjectNotFoundException(String message, org.alfresco.repo.cmis.ws.ObjectNotFoundExceptionType objectNotFoundException, Throwable cause) { - super(message, cause); - this.objectNotFoundException = objectNotFoundException; - } - - public org.alfresco.repo.cmis.ws.ObjectNotFoundExceptionType getFaultInfo() { - return this.objectNotFoundException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundExceptionType.java deleted file mode 100755 index 89ab366e4c..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for objectNotFoundExceptionType complex type. - * - *

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

- * <complexType name="objectNotFoundExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "objectNotFoundExceptionType") -public class ObjectNotFoundExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java index ef0aa718d9..48d5762a13 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:38 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "ObjectService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/ObjectService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class ObjectService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "ObjectService"); - public final static QName ObjectServicePort = new QName("http://www.cmis.org/2008/05", "ObjectServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "ObjectService"); + public final static QName ObjectServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "ObjectServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/ObjectService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/ObjectService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java index e823698b40..786da51130 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java @@ -13,185 +13,185 @@ import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:38 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "ObjectServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "ObjectServicePort") @XmlSeeAlso({ObjectFactory.class}) public interface ObjectServicePort { - @ResponseWrapper(localName = "setContentStreamResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.SetContentStreamResponse") - @RequestWrapper(localName = "setContentStream", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.SetContentStream") - @WebMethod - public void setContentStream( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(mode = WebParam.Mode.INOUT, name = "documentId", targetNamespace = "http://www.cmis.org/2008/05") - javax.xml.ws.Holder documentId, - @WebParam(name = "overwriteFlag", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.Boolean overwriteFlag, - @WebParam(name = "contentStream", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.CmisContentStreamType contentStream - ) throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, ContentAlreadyExistsException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "createRelationshipResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreateRelationshipResponse") - @RequestWrapper(localName = "createRelationship", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreateRelationship") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") - @WebMethod - public java.lang.String createRelationship( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.CmisPropertiesType properties, - @WebParam(name = "sourceObjectId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String sourceObjectId, - @WebParam(name = "targetObjectId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String targetObjectId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "createDocumentResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreateDocumentResponse") - @RequestWrapper(localName = "createDocument", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreateDocument") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") - @WebMethod - public java.lang.String createDocument( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.CmisPropertiesType properties, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String folderId, - @WebParam(name = "contentStream", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.CmisContentStreamType contentStream, - @WebParam(name = "versioningState", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.EnumVersioningState versioningState - ) throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "getContentStreamResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.GetContentStreamResponse") - @RequestWrapper(localName = "getContentStream", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.GetContentStream") - @WebResult(name = "contentStream", targetNamespace = "http://www.cmis.org/2008/05") + @WebResult(name = "contentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "getContentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetContentStream") + @ResponseWrapper(localName = "getContentStreamResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetContentStreamResponse") @WebMethod public org.alfresco.repo.cmis.ws.CmisContentStreamType getContentStream( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "documentId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String documentId - ) throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, OffsetException; + ) throws CmisException; - @ResponseWrapper(localName = "updatePropertiesResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.UpdatePropertiesResponse") - @RequestWrapper(localName = "updateProperties", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.UpdateProperties") + @WebResult(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "createRelationship", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreateRelationship") + @ResponseWrapper(localName = "createRelationshipResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreateRelationshipResponse") + @WebMethod + public java.lang.String createRelationship( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "typeId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String typeId, + @WebParam(name = "properties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.CmisPropertiesType properties, + @WebParam(name = "sourceObjectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String sourceObjectId, + @WebParam(name = "targetObjectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String targetObjectId + ) throws CmisException; + + @WebResult(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "createDocument", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreateDocument") + @ResponseWrapper(localName = "createDocumentResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreateDocumentResponse") + @WebMethod + public java.lang.String createDocument( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "typeId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String typeId, + @WebParam(name = "properties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.CmisPropertiesType properties, + @WebParam(name = "folderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String folderId, + @WebParam(name = "contentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.CmisContentStreamType contentStream, + @WebParam(name = "versioningState", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.EnumVersioningState versioningState + ) throws CmisException; + + @RequestWrapper(localName = "updateProperties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.UpdateProperties") + @ResponseWrapper(localName = "updatePropertiesResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.UpdatePropertiesResponse") @WebMethod public void updateProperties( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(mode = WebParam.Mode.INOUT, name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(mode = WebParam.Mode.INOUT, name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") javax.xml.ws.Holder objectId, - @WebParam(name = "changeToken", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "changeToken", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String changeToken, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "properties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") org.alfresco.repo.cmis.ws.CmisPropertiesType properties - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; - @ResponseWrapper(localName = "createFolderResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreateFolderResponse") - @RequestWrapper(localName = "createFolder", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreateFolder") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebResult(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "createFolder", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreateFolder") + @ResponseWrapper(localName = "createFolderResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreateFolderResponse") @WebMethod public java.lang.String createFolder( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "typeId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "properties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") org.alfresco.repo.cmis.ws.CmisPropertiesType properties, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "folderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String folderId - ) throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "deleteContentStreamResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteContentStreamResponse") - @RequestWrapper(localName = "deleteContentStream", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteContentStream") - @WebMethod - public void deleteContentStream( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String documentId - ) throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, VersioningException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "moveObjectResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.MoveObjectResponse") - @RequestWrapper(localName = "moveObject", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.MoveObject") - @WebMethod - public void moveObject( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String objectId, - @WebParam(name = "targetFolderId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String targetFolderId, - @WebParam(name = "sourceFolderId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String sourceFolderId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, NotInFolderException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "deleteObjectResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteObjectResponse") - @RequestWrapper(localName = "deleteObject", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteObject") - @WebMethod - public void deleteObject( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String objectId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "deleteTreeResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteTreeResponse") - @RequestWrapper(localName = "deleteTree", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteTree") - @WebResult(name = "failedToDelete", targetNamespace = "http://www.cmis.org/2008/05") - @WebMethod - public org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String folderId, - @WebParam(name = "unfileNonfolderObjects", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.EnumUnfileNonfolderObjects unfileNonfolderObjects, - @WebParam(name = "continueOnFailure", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.Boolean continueOnFailure - ) throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getPropertiesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "getPropertiesResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") @WebMethod public GetPropertiesResponse getProperties( - @WebParam(partName = "parameters", name = "getProperties", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(partName = "parameters", name = "getProperties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") GetProperties parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; + ) throws CmisException; - @ResponseWrapper(localName = "createPolicyResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreatePolicyResponse") - @RequestWrapper(localName = "createPolicy", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CreatePolicy") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebResult(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "createPolicy", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreatePolicy") + @ResponseWrapper(localName = "createPolicyResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CreatePolicyResponse") @WebMethod public java.lang.String createPolicy( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "typeId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "properties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") org.alfresco.repo.cmis.ws.CmisPropertiesType properties, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "folderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String folderId - ) throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; - @ResponseWrapper(localName = "getAllowableActionsResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.GetAllowableActionsResponse") - @RequestWrapper(localName = "getAllowableActions", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.GetAllowableActions") - @WebResult(name = "allowableActions", targetNamespace = "http://www.cmis.org/2008/05") + @WebResult(name = "failedToDelete", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "deleteTree", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteTree") + @ResponseWrapper(localName = "deleteTreeResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteTreeResponse") + @WebMethod + public org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "folderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String folderId, + @WebParam(name = "unfileNonfolderObjects", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.EnumUnfileNonfolderObjects unfileNonfolderObjects, + @WebParam(name = "continueOnFailure", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.Boolean continueOnFailure + ) throws CmisException; + + @RequestWrapper(localName = "setContentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.SetContentStream") + @ResponseWrapper(localName = "setContentStreamResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.SetContentStreamResponse") + @WebMethod + public void setContentStream( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(mode = WebParam.Mode.INOUT, name = "documentId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder documentId, + @WebParam(name = "overwriteFlag", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.Boolean overwriteFlag, + @WebParam(name = "contentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.CmisContentStreamType contentStream + ) throws CmisException; + + @RequestWrapper(localName = "deleteContentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteContentStream") + @ResponseWrapper(localName = "deleteContentStreamResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteContentStreamResponse") + @WebMethod + public void deleteContentStream( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "documentId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String documentId + ) throws CmisException; + + @RequestWrapper(localName = "deleteObject", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteObject") + @ResponseWrapper(localName = "deleteObjectResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteObjectResponse") + @WebMethod + public void deleteObject( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String objectId + ) throws CmisException; + + @RequestWrapper(localName = "moveObject", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.MoveObject") + @ResponseWrapper(localName = "moveObjectResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.MoveObjectResponse") + @WebMethod + public void moveObject( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String objectId, + @WebParam(name = "targetFolderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String targetFolderId, + @WebParam(name = "sourceFolderId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String sourceFolderId + ) throws CmisException; + + @WebResult(name = "allowableActions", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "getAllowableActions", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetAllowableActions") + @ResponseWrapper(localName = "getAllowableActionsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetAllowableActionsResponse") @WebMethod public org.alfresco.repo.cmis.ws.CmisAllowableActionsType getAllowableActions( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String objectId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java index efbd1f9458..972c131a14 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java @@ -22,9 +22,9 @@ import javax.xml.namespace.QName; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="object" type="{http://www.cmis.org/2008/05}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/> + * <element name="object" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> - * <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/> + * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisUndefinedAttribute"/> * </restriction> * </complexContent> * </complexType> @@ -33,7 +33,7 @@ import javax.xml.namespace.QName; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "objectTreeCollectionType", propOrder = { +@XmlType(name = "objectTreeCollectionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = { "object" }) public class ObjectTreeCollectionType { diff --git a/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java deleted file mode 100644 index 836c48158a..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:38 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "offsetException", targetNamespace = "http://www.cmis.org/2008/05") -public class OffsetException extends Exception { - public static final long serialVersionUID = 20080905134438L; - - private org.alfresco.repo.cmis.ws.OffsetExceptionType offsetException; - - 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.OffsetExceptionType offsetException) { - super(message); - this.offsetException = offsetException; - } - - public OffsetException(String message, org.alfresco.repo.cmis.ws.OffsetExceptionType offsetException, Throwable cause) { - super(message, cause); - this.offsetException = offsetException; - } - - public org.alfresco.repo.cmis.ws.OffsetExceptionType getFaultInfo() { - return this.offsetException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OffsetExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/OffsetExceptionType.java deleted file mode 100755 index 241d98fff7..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/OffsetExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for offsetExceptionType complex type. - * - *

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

- * <complexType name="offsetExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "offsetExceptionType") -public class OffsetExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java deleted file mode 100644 index 98b92b5237..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "operationNotSupportedException", targetNamespace = "http://www.cmis.org/2008/05") -public class OperationNotSupportedException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.OperationNotSupportedExceptionType operationNotSupportedException; - - 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.OperationNotSupportedExceptionType operationNotSupportedException) { - super(message); - this.operationNotSupportedException = operationNotSupportedException; - } - - public OperationNotSupportedException(String message, org.alfresco.repo.cmis.ws.OperationNotSupportedExceptionType operationNotSupportedException, Throwable cause) { - super(message, cause); - this.operationNotSupportedException = operationNotSupportedException; - } - - public org.alfresco.repo.cmis.ws.OperationNotSupportedExceptionType getFaultInfo() { - return this.operationNotSupportedException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedExceptionType.java deleted file mode 100755 index c5420be91e..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for operationNotSupportedExceptionType complex type. - * - *

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

- * <complexType name="operationNotSupportedExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "operationNotSupportedExceptionType") -public class OperationNotSupportedExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java deleted file mode 100644 index 7100ee31a4..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:07 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "permissionDeniedException", targetNamespace = "http://www.cmis.org/2008/05") -public class PermissionDeniedException extends Exception { - public static final long serialVersionUID = 20080905134507L; - - private org.alfresco.repo.cmis.ws.PermissionDeniedExceptionType permissionDeniedException; - - 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.PermissionDeniedExceptionType permissionDeniedException) { - super(message); - this.permissionDeniedException = permissionDeniedException; - } - - public PermissionDeniedException(String message, org.alfresco.repo.cmis.ws.PermissionDeniedExceptionType permissionDeniedException, Throwable cause) { - super(message, cause); - this.permissionDeniedException = permissionDeniedException; - } - - public org.alfresco.repo.cmis.ws.PermissionDeniedExceptionType getFaultInfo() { - return this.permissionDeniedException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedExceptionType.java deleted file mode 100755 index 532bdd054d..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for permissionDeniedExceptionType complex type. - * - *

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

- * <complexType name="permissionDeniedExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "permissionDeniedExceptionType") -public class PermissionDeniedExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PolicyService.java b/source/generated/org/alfresco/repo/cmis/ws/PolicyService.java index 766ba75e83..5047297c49 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/PolicyService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/PolicyService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:59 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "PolicyService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/PolicyService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class PolicyService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "PolicyService"); - public final static QName PolicyServicePort = new QName("http://www.cmis.org/2008/05", "PolicyServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "PolicyService"); + public final static QName PolicyServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "PolicyServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/PolicyService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/PolicyService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java index c5a7127cd7..fe5de9eadf 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java @@ -12,44 +12,44 @@ import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:59 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "PolicyServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "PolicyServicePort") @XmlSeeAlso({ObjectFactory.class}) public interface PolicyServicePort { - @ResponseWrapper(localName = "removePolicyResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.RemovePolicyResponse") - @RequestWrapper(localName = "removePolicy", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.RemovePolicy") - @WebMethod - public void removePolicy( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "policyId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String policyId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String objectId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getAppliedPoliciesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") - @WebMethod - public GetAppliedPoliciesResponse getAppliedPolicies( - @WebParam(partName = "parameters", name = "getAppliedPolicies", targetNamespace = "http://www.cmis.org/2008/05") - GetAppliedPolicies parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "applyPolicyResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.ApplyPolicyResponse") - @RequestWrapper(localName = "applyPolicy", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.ApplyPolicy") + @RequestWrapper(localName = "applyPolicy", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.ApplyPolicy") + @ResponseWrapper(localName = "applyPolicyResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.ApplyPolicyResponse") @WebMethod public void applyPolicy( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "policyId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "policyId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String policyId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String objectId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; + + @RequestWrapper(localName = "removePolicy", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.RemovePolicy") + @ResponseWrapper(localName = "removePolicyResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.RemovePolicyResponse") + @WebMethod + public void removePolicy( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "policyId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String policyId, + @WebParam(name = "objectId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String objectId + ) throws CmisException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getAppliedPoliciesResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") + @WebMethod + public GetAppliedPoliciesResponse getAppliedPolicies( + @WebParam(partName = "parameters", name = "getAppliedPolicies", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + GetAppliedPolicies parameters + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java index c458503a13..603c728df2 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java @@ -5,6 +5,7 @@ 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; @@ -19,7 +20,7 @@ import javax.xml.bind.annotation.XmlType; * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element ref="{http://www.cmis.org/2008/05}object" maxOccurs="unbounded" minOccurs="0"/> + * <element ref="{http://docs.oasis-open.org/ns/cmis/core/200901}object" maxOccurs="unbounded" minOccurs="0"/> * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * </sequence> * </restriction> @@ -37,6 +38,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "queryResponse") public class QueryResponse { + @XmlElement(namespace = "http://docs.oasis-open.org/ns/cmis/core/200901") protected List object; protected boolean hasMoreItems; diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java index 2289585c12..a72a3b5d3b 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:03 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "RelationshipService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RelationshipService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class RelationshipService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "RelationshipService"); - public final static QName RelationshipServicePort = new QName("http://www.cmis.org/2008/05", "RelationshipServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RelationshipService"); + public final static QName RelationshipServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RelationshipServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RelationshipService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RelationshipService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java index f7c00f306d..ab2dba40c1 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java @@ -10,20 +10,20 @@ import javax.xml.bind.annotation.XmlSeeAlso; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:03 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "RelationshipServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "RelationshipServicePort") @XmlSeeAlso({ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public interface RelationshipServicePort { - @WebResult(name = "getRelationshipsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "getRelationshipsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") @WebMethod public GetRelationshipsResponse getRelationships( - @WebParam(partName = "parameters", name = "getRelationships", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(partName = "parameters", name = "getRelationships", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") GetRelationships parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java index c180200cf2..93aad1812f 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java @@ -44,7 +44,7 @@ public class RemoveObjectFromFolder { protected String repositoryId; @XmlElement(required = true) protected String objectId; - @XmlElementRef(name = "folderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "folderId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement folderId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java index 6bc3dbe197..13d24f3828 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:43 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "RepositoryService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RepositoryService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class RepositoryService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "RepositoryService"); - public final static QName RepositoryServicePort = new QName("http://www.cmis.org/2008/05", "RepositoryServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RepositoryService"); + public final static QName RepositoryServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RepositoryServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RepositoryService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RepositoryService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java index f96db45857..5114959117 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java @@ -2,52 +2,67 @@ 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.bind.annotation.XmlSeeAlso; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:43 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "RepositoryServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "RepositoryServicePort") @XmlSeeAlso({ObjectFactory.class}) public interface RepositoryServicePort { - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getTypeDefinitionResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "repositoryInfo", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "getRepositoryInfo", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfo") + @ResponseWrapper(localName = "getRepositoryInfoResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfoResponse") @WebMethod - public GetTypeDefinitionResponse getTypeDefinition( - @WebParam(partName = "parameters", name = "getTypeDefinition", targetNamespace = "http://www.cmis.org/2008/05") - GetTypeDefinition parameters - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + public org.alfresco.repo.cmis.ws.CmisRepositoryInfoType getRepositoryInfo( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId + ) throws CmisException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getRepositoryInfoResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "type", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "getTypeDefinition", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetTypeDefinition") + @ResponseWrapper(localName = "getTypeDefinitionResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetTypeDefinitionResponse") @WebMethod - public CmisRepositoryInfoType getRepositoryInfo( - @WebParam(partName = "parameters", name = "getRepositoryInfo", targetNamespace = "http://www.cmis.org/2008/05") - GetRepositoryInfo parameters - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + public org.alfresco.repo.cmis.ws.CmisTypeDefinitionType getTypeDefinition( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "typeId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String typeId + ) throws CmisException; - @ResponseWrapper(localName = "getRepositoriesResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.GetRepositoriesResponse") - @RequestWrapper(localName = "getRepositories", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.GetRepositories") - @WebResult(name = "repository", targetNamespace = "http://www.cmis.org/2008/05") + @WebResult(name = "repository", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + @RequestWrapper(localName = "getRepositories", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetRepositories") + @ResponseWrapper(localName = "getRepositoriesResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetRepositoriesResponse") @WebMethod - public java.util.List getRepositories() throws PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; + public java.util.List getRepositories() throws CmisException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getTypesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @RequestWrapper(localName = "getTypes", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetTypes") + @ResponseWrapper(localName = "getTypesResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.GetTypesResponse") @WebMethod - public GetTypesResponse getTypes( - @WebParam(partName = "parameters", name = "getTypes", targetNamespace = "http://www.cmis.org/2008/05") - GetTypes parameters - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + public void getTypes( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "typeId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String typeId, + @WebParam(name = "includePropertyDefinitions", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.Boolean includePropertyDefinitions, + @WebParam(name = "maxItems", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.math.BigInteger maxItems, + @WebParam(name = "skipCount", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.math.BigInteger skipCount, + @WebParam(mode = WebParam.Mode.OUT, name = "type", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder> type, + @WebParam(mode = WebParam.Mode.OUT, name = "hasMoreItems", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder hasMoreItems + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java deleted file mode 100644 index c4ef7410e7..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "runtimeException", targetNamespace = "http://www.cmis.org/2008/05") -public class RuntimeException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.RuntimeExceptionType runtimeException; - - 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.RuntimeExceptionType runtimeException) { - super(message); - this.runtimeException = runtimeException; - } - - public RuntimeException(String message, org.alfresco.repo.cmis.ws.RuntimeExceptionType runtimeException, Throwable cause) { - super(message, cause); - this.runtimeException = runtimeException; - } - - public org.alfresco.repo.cmis.ws.RuntimeExceptionType getFaultInfo() { - return this.runtimeException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RuntimeExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/RuntimeExceptionType.java deleted file mode 100755 index 4be84c9662..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/RuntimeExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for runtimeExceptionType complex type. - * - *

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

- * <complexType name="runtimeExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "runtimeExceptionType") -public class RuntimeExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java index c9924052be..a251ba187d 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java @@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlType; * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="overwriteFlag" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> - * <element name="contentStream" type="{http://www.cmis.org/2008/05}cmisContentStreamType"/> + * <element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisContentStreamType"/> * </sequence> * </restriction> * </complexContent> @@ -46,7 +46,7 @@ public class SetContentStream { protected String repositoryId; @XmlElement(required = true) protected String documentId; - @XmlElementRef(name = "overwriteFlag", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "overwriteFlag", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement overwriteFlag; @XmlElement(required = true) protected CmisContentStreamType contentStream; diff --git a/source/generated/org/alfresco/repo/cmis/ws/StorageException.java b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java deleted file mode 100644 index a0013a160a..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/StorageException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "storageException", targetNamespace = "http://www.cmis.org/2008/05") -public class StorageException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.StorageExceptionType storageException; - - 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.StorageExceptionType storageException) { - super(message); - this.storageException = storageException; - } - - public StorageException(String message, org.alfresco.repo.cmis.ws.StorageExceptionType storageException, Throwable cause) { - super(message, cause); - this.storageException = storageException; - } - - public org.alfresco.repo.cmis.ws.StorageExceptionType getFaultInfo() { - return this.storageException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StorageExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/StorageExceptionType.java deleted file mode 100755 index 8601b2d39e..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/StorageExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for storageExceptionType complex type. - * - *

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

- * <complexType name="storageExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "storageExceptionType") -public class StorageExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java deleted file mode 100644 index cb80bd28dd..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "streamNotSupportedException", targetNamespace = "http://www.cmis.org/2008/05") -public class StreamNotSupportedException extends Exception { - public static final long serialVersionUID = 20080905134508L; - - private org.alfresco.repo.cmis.ws.StreamNotSupportedExceptionType streamNotSupportedException; - - 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.StreamNotSupportedExceptionType streamNotSupportedException) { - super(message); - this.streamNotSupportedException = streamNotSupportedException; - } - - public StreamNotSupportedException(String message, org.alfresco.repo.cmis.ws.StreamNotSupportedExceptionType streamNotSupportedException, Throwable cause) { - super(message, cause); - this.streamNotSupportedException = streamNotSupportedException; - } - - public org.alfresco.repo.cmis.ws.StreamNotSupportedExceptionType getFaultInfo() { - return this.streamNotSupportedException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedExceptionType.java deleted file mode 100755 index f7bd683f15..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for streamNotSupportedExceptionType complex type. - * - *

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

- * <complexType name="streamNotSupportedExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "streamNotSupportedExceptionType") -public class StreamNotSupportedExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java deleted file mode 100644 index 5a50f86ac9..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:03 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "typeNotFoundException", targetNamespace = "http://www.cmis.org/2008/05") -public class TypeNotFoundException extends Exception { - public static final long serialVersionUID = 20080905134503L; - - private org.alfresco.repo.cmis.ws.TypeNotFoundExceptionType typeNotFoundException; - - 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.TypeNotFoundExceptionType typeNotFoundException) { - super(message); - this.typeNotFoundException = typeNotFoundException; - } - - public TypeNotFoundException(String message, org.alfresco.repo.cmis.ws.TypeNotFoundExceptionType typeNotFoundException, Throwable cause) { - super(message, cause); - this.typeNotFoundException = typeNotFoundException; - } - - public org.alfresco.repo.cmis.ws.TypeNotFoundExceptionType getFaultInfo() { - return this.typeNotFoundException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundExceptionType.java deleted file mode 100755 index 81022fbc41..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for typeNotFoundExceptionType complex type. - * - *

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

- * <complexType name="typeNotFoundExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "typeNotFoundExceptionType") -public class TypeNotFoundExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java b/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java deleted file mode 100755 index c98b8e523c..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:07 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "updateConflictException", targetNamespace = "http://www.cmis.org/2008/05") -public class UpdateConflictException extends Exception { - public static final long serialVersionUID = 20080905134507L; - - private org.alfresco.repo.cmis.ws.UpdateConflictExceptionType updateConflictException; - - public UpdateConflictException() { - super(); - } - - public UpdateConflictException(String message) { - super(message); - } - - public UpdateConflictException(String message, Throwable cause) { - super(message, cause); - } - - public UpdateConflictException(String message, org.alfresco.repo.cmis.ws.UpdateConflictExceptionType updateConflictException) { - super(message); - this.updateConflictException = updateConflictException; - } - - public UpdateConflictException(String message, org.alfresco.repo.cmis.ws.UpdateConflictExceptionType updateConflictException, Throwable cause) { - super(message, cause); - this.updateConflictException = updateConflictException; - } - - public org.alfresco.repo.cmis.ws.UpdateConflictExceptionType getFaultInfo() { - return this.updateConflictException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictExceptionType.java deleted file mode 100755 index 13f0273040..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for updateConflictExceptionType complex type. - * - *

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

- * <complexType name="updateConflictExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "updateConflictExceptionType") -public class UpdateConflictExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java index d4259d8104..ca5b1d14e5 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java @@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlType; * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> - * <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/> + * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType"/> * </sequence> * </restriction> * </complexContent> @@ -46,7 +46,7 @@ public class UpdateProperties { protected String repositoryId; @XmlElement(required = true) protected String objectId; - @XmlElementRef(name = "changeToken", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + @XmlElementRef(name = "changeToken", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class) protected JAXBElement changeToken; @XmlElement(required = true) protected CmisPropertiesType properties; diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java deleted file mode 100755 index 7191fd1001..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java +++ /dev/null @@ -1,45 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.ws.WebFault; - - -/** - * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:44:38 EEST 2008 - * Generated source version: 2.1.2 - * - */ - -@WebFault(name = "versioningException", targetNamespace = "http://www.cmis.org/2008/05") -public class VersioningException extends Exception { - public static final long serialVersionUID = 20080905134438L; - - private org.alfresco.repo.cmis.ws.VersioningExceptionType versioningException; - - public VersioningException() { - super(); - } - - public VersioningException(String message) { - super(message); - } - - public VersioningException(String message, Throwable cause) { - super(message, cause); - } - - public VersioningException(String message, org.alfresco.repo.cmis.ws.VersioningExceptionType versioningException) { - super(message); - this.versioningException = versioningException; - } - - public VersioningException(String message, org.alfresco.repo.cmis.ws.VersioningExceptionType versioningException, Throwable cause) { - super(message, cause); - this.versioningException = versioningException; - } - - public org.alfresco.repo.cmis.ws.VersioningExceptionType getFaultInfo() { - return this.versioningException; - } -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningExceptionType.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningExceptionType.java deleted file mode 100755 index 93ed99b4ae..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningExceptionType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for versioningExceptionType complex type. - * - *

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

- * <complexType name="versioningExceptionType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/2008/05}cmisFaultType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "versioningExceptionType") -public class VersioningExceptionType - extends CmisFaultType -{ - - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningService.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningService.java index 5913622549..a22451386f 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningService.java @@ -15,26 +15,26 @@ import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ @WebServiceClient(name = "VersioningService", - wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/VersioningService.wsdl", - targetNamespace = "http://www.cmis.org/2008/05") + wsdlLocation = "file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl", + targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901") public class VersioningService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/2008/05", "VersioningService"); - public final static QName VersioningServicePort = new QName("http://www.cmis.org/2008/05", "VersioningServicePort"); + public final static QName SERVICE = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "VersioningService"); + public final static QName VersioningServicePort = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "VersioningServicePort"); static { URL url = null; try { - url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/VersioningService.wsdl"); + url = new URL("file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); } catch (MalformedURLException e) { - System.err.println("Can not initialize the default wsdl from file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/VersioningService.wsdl"); + System.err.println("Can not initialize the default wsdl from file:/D:/work/alfresco-cmis/WS-Binding-061c-t2/source/wsdl/CMISWS-Service.wsdl"); // e.printStackTrace(); } WSDL_LOCATION = url; diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java index 1560328a3b..c6056ef062 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java @@ -13,78 +13,78 @@ import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.1.2 - * Fri Sep 05 13:45:08 EEST 2008 + * Mon Apr 27 21:08:02 EEST 2009 * Generated source version: 2.1.2 * */ -@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "VersioningServicePort") +@WebService(targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", name = "VersioningServicePort") @XmlSeeAlso({ObjectFactory.class}) public interface VersioningServicePort { - @ResponseWrapper(localName = "checkOutResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CheckOutResponse") - @RequestWrapper(localName = "checkOut", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CheckOut") - @WebMethod - public void checkOut( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(mode = WebParam.Mode.INOUT, name = "documentId", targetNamespace = "http://www.cmis.org/2008/05") - javax.xml.ws.Holder documentId, - @WebParam(mode = WebParam.Mode.OUT, name = "contentCopied", targetNamespace = "http://www.cmis.org/2008/05") - javax.xml.ws.Holder contentCopied - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "checkInResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CheckInResponse") - @RequestWrapper(localName = "checkIn", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CheckIn") - @WebMethod - public void checkIn( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(mode = WebParam.Mode.INOUT, name = "documentId", targetNamespace = "http://www.cmis.org/2008/05") - javax.xml.ws.Holder documentId, - @WebParam(name = "major", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.Boolean major, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.CmisPropertiesType properties, - @WebParam(name = "contentStream", targetNamespace = "http://www.cmis.org/2008/05") - org.alfresco.repo.cmis.ws.CmisContentStreamType contentStream, - @WebParam(name = "checkinComment", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String checkinComment - ) throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - - @ResponseWrapper(localName = "cancelCheckOutResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CancelCheckOutResponse") - @RequestWrapper(localName = "cancelCheckOut", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.CancelCheckOut") - @WebMethod - public void cancelCheckOut( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String repositoryId, - @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/2008/05") - java.lang.String documentId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getPropertiesOfLatestVersionResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") - @WebMethod - public GetPropertiesOfLatestVersionResponse getPropertiesOfLatestVersion( - @WebParam(partName = "parameters", name = "getPropertiesOfLatestVersion", targetNamespace = "http://www.cmis.org/2008/05") - GetPropertiesOfLatestVersion parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getAllVersionsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebResult(name = "getAllVersionsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") @WebMethod public GetAllVersionsResponse getAllVersions( - @WebParam(partName = "parameters", name = "getAllVersions", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(partName = "parameters", name = "getAllVersions", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") GetAllVersions parameters - ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; - @ResponseWrapper(localName = "deleteAllVersionsResponse", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteAllVersionsResponse") - @RequestWrapper(localName = "deleteAllVersions", targetNamespace = "http://www.cmis.org/2008/05", className = "org.alfresco.repo.cmis.ws.DeleteAllVersions") + @RequestWrapper(localName = "checkOut", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CheckOut") + @ResponseWrapper(localName = "checkOutResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CheckOutResponse") + @WebMethod + public void checkOut( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(mode = WebParam.Mode.INOUT, name = "documentId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder documentId, + @WebParam(mode = WebParam.Mode.OUT, name = "contentCopied", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder contentCopied + ) throws CmisException; + + @RequestWrapper(localName = "checkIn", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CheckIn") + @ResponseWrapper(localName = "checkInResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CheckInResponse") + @WebMethod + public void checkIn( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(mode = WebParam.Mode.INOUT, name = "documentId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + javax.xml.ws.Holder documentId, + @WebParam(name = "major", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.Boolean major, + @WebParam(name = "properties", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.CmisPropertiesType properties, + @WebParam(name = "contentStream", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + org.alfresco.repo.cmis.ws.CmisContentStreamType contentStream, + @WebParam(name = "checkinComment", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String checkinComment + ) throws CmisException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getPropertiesOfLatestVersionResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", partName = "parameters") + @WebMethod + public GetPropertiesOfLatestVersionResponse getPropertiesOfLatestVersion( + @WebParam(partName = "parameters", name = "getPropertiesOfLatestVersion", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + GetPropertiesOfLatestVersion parameters + ) throws CmisException; + + @RequestWrapper(localName = "cancelCheckOut", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CancelCheckOut") + @ResponseWrapper(localName = "cancelCheckOutResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.CancelCheckOutResponse") + @WebMethod + public void cancelCheckOut( + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String repositoryId, + @WebParam(name = "documentId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") + java.lang.String documentId + ) throws CmisException; + + @RequestWrapper(localName = "deleteAllVersions", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteAllVersions") + @ResponseWrapper(localName = "deleteAllVersionsResponse", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", className = "org.alfresco.repo.cmis.ws.DeleteAllVersionsResponse") @WebMethod public void deleteAllVersions( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "repositoryId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String repositoryId, - @WebParam(name = "versionSeriesId", targetNamespace = "http://www.cmis.org/2008/05") + @WebParam(name = "versionSeriesId", targetNamespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901") java.lang.String versionSeriesId - ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + ) throws CmisException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/package-info.java b/source/generated/org/alfresco/repo/cmis/ws/package-info.java index ce5d40abbc..1e4fe06558 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/package-info.java +++ b/source/generated/org/alfresco/repo/cmis/ws/package-info.java @@ -1,2 +1,2 @@ -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.cmis.org/2008/05", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +@javax.xml.bind.annotation.XmlSchema(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.alfresco.repo.cmis.ws; diff --git a/source/java/org/alfresco/repo/cmis/PropertyFilter.java b/source/java/org/alfresco/repo/cmis/PropertyFilter.java index d0131da8ba..38ef2f203d 100644 --- a/source/java/org/alfresco/repo/cmis/PropertyFilter.java +++ b/source/java/org/alfresco/repo/cmis/PropertyFilter.java @@ -28,7 +28,9 @@ import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; -import org.alfresco.repo.cmis.ws.FilterNotValidException; +import org.alfresco.repo.cmis.ws.CmisException; +import org.alfresco.repo.cmis.ws.EnumServiceException; +import org.alfresco.repo.cmis.ws.utils.CmisObjectsUtils; /** * Property filter supporting CMIS filter expression @@ -52,11 +54,11 @@ public class PropertyFilter * @param filter filter value (case insensitive) * @throws FilterNotValidException if filter string isn't valid */ - public PropertyFilter(String filter) throws FilterNotValidException + public PropertyFilter(String filter, CmisObjectsUtils cmisObjectsUtils) throws CmisException { if (filter == null || filter.length() < MINIMAL_ALLOWED_STRUCTURE_SIZE ? false : !PROPERTY_FILTER_REGEX.matcher(filter).matches()) { - throw new FilterNotValidException("\"" + filter + "\" filter value is invalid"); + throw cmisObjectsUtils.createCmisException(("\"" + filter + "\" filter value is invalid"), EnumServiceException.FILTER_NOT_VALID); } if (!filter.equals(MATCH_ALL_FILTER) && filter.length() >= MINIMAL_ALLOWED_STRUCTURE_SIZE) diff --git a/source/java/org/alfresco/repo/cmis/PropertyFilterTest.java b/source/java/org/alfresco/repo/cmis/PropertyFilterTest.java index 1d9285521c..22a3ffe6f4 100755 --- a/source/java/org/alfresco/repo/cmis/PropertyFilterTest.java +++ b/source/java/org/alfresco/repo/cmis/PropertyFilterTest.java @@ -24,15 +24,15 @@ */ package org.alfresco.repo.cmis; -import org.alfresco.repo.cmis.PropertyFilter; -import org.alfresco.repo.cmis.ws.FilterNotValidException; - -import junit.framework.TestCase; +import org.alfresco.repo.cmis.ws.CmisException; +import org.alfresco.repo.cmis.ws.EnumServiceException; +import org.alfresco.repo.cmis.ws.utils.CmisObjectsUtils; +import org.springframework.test.AbstractDependencyInjectionSpringContextTests; /** * @author Dmitry Velichkevich */ -public class PropertyFilterTest extends TestCase +public class PropertyFilterTest extends AbstractDependencyInjectionSpringContextTests { private static final String NAME_TOKEN = "name"; @@ -58,22 +58,28 @@ public class PropertyFilterTest extends TestCase private static final String INVALID_FILTER_WITH_DENIED_SYMBOL = "ObjectId; name"; private static final String INVALID_FILTER_WITH_LAST_INVALID_SYMBOL = "ObjectId, name*"; - + private CmisObjectsUtils cmisObjectsUtils; + + public void setCmisObjectsUtils(CmisObjectsUtils cmisObjectsUtils) + { + this.cmisObjectsUtils = cmisObjectsUtils; + } + public void testValidFilters() throws Exception { try { allTokensValidAssertion(new PropertyFilter()); - allTokensValidAssertion(new PropertyFilter(VALID_MATCHE_ALL_EMPTY_FILTER)); - allTokensValidAssertion(new PropertyFilter(VALID_MATCHE_ALL_FILTER)); + allTokensValidAssertion(new PropertyFilter(VALID_MATCHE_ALL_EMPTY_FILTER, cmisObjectsUtils)); + allTokensValidAssertion(new PropertyFilter(VALID_MATCHE_ALL_FILTER, cmisObjectsUtils)); - onlyNameTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_NAME)); + onlyNameTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_NAME, cmisObjectsUtils)); - nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS)); - nameAndObjectIdTokensAssertionValid(new PropertyFilter(LONG_VALID_FILTER_WITH_SEVERAL_TOKENS)); - nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS_WITHOUT_BREAKS)); - nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS_AND_WITH_BREAKS_IN_SOME_PLACES)); - nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS_AND_WITH_SEVERAL_BREAKS_IN_SOME_PLACES)); + nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS, cmisObjectsUtils)); + nameAndObjectIdTokensAssertionValid(new PropertyFilter(LONG_VALID_FILTER_WITH_SEVERAL_TOKENS, cmisObjectsUtils)); + nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS_WITHOUT_BREAKS, cmisObjectsUtils)); + nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS_AND_WITH_BREAKS_IN_SOME_PLACES, cmisObjectsUtils)); + nameAndObjectIdTokensAssertionValid(new PropertyFilter(VALID_FILTER_WITH_SEVERAL_TOKENS_AND_WITH_SEVERAL_BREAKS_IN_SOME_PLACES, cmisObjectsUtils)); } catch (Throwable e) { @@ -142,14 +148,22 @@ public class PropertyFilterTest extends TestCase { try { - new PropertyFilter(filterValue); + new PropertyFilter(filterValue, cmisObjectsUtils); fail("Invalid filter \"" + filterValue + "\" was interpreted as valid"); } - catch (Throwable e) + catch (CmisException e) { - assertTrue(("Unexpected exception type was thrown: " + e.getClass().getName()), e instanceof FilterNotValidException); + assertEquals(("Unexpected exception type was thrown: " + e.getClass().getName()), EnumServiceException.FILTER_NOT_VALID, e.getFaultInfo().getType()); } } - + + @Override + protected String[] getConfigLocations() + { + setAutowireMode(AUTOWIRE_BY_NAME); + setDependencyCheck(false); + + return new String[] { "classpath:alfresco/cmis-ws-context.xml" }; + } } diff --git a/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java b/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java index 48f3eb840b..cabb821607 100644 --- a/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java +++ b/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java @@ -39,6 +39,7 @@ import org.apache.ws.security.handler.WSHandlerConstants; import org.apache.ws.security.handler.WSHandlerResult; /** + * * @author Dmitry Velichkevich */ public class AuthenticationInterceptor extends AbstractSoapInterceptor diff --git a/source/java/org/alfresco/repo/cmis/ws/ContentReaderDataSource.java b/source/java/org/alfresco/repo/cmis/ws/ContentReaderDataSource.java index eaa0f627f1..0b79fe6f89 100755 --- a/source/java/org/alfresco/repo/cmis/ws/ContentReaderDataSource.java +++ b/source/java/org/alfresco/repo/cmis/ws/ContentReaderDataSource.java @@ -48,7 +48,9 @@ public class ContentReaderDataSource implements DataSource this.name = name; } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.activation.DataSource#getContentType() */ public String getContentType() @@ -56,7 +58,9 @@ public class ContentReaderDataSource implements DataSource return contentReader.getMimetype(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.activation.DataSource#getInputStream() */ public InputStream getInputStream() throws IOException @@ -64,7 +68,9 @@ public class ContentReaderDataSource implements DataSource return contentReader.getContentInputStream(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.activation.DataSource#getName() */ public String getName() @@ -72,7 +78,9 @@ public class ContentReaderDataSource implements DataSource return name; } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.activation.DataSource#getOutputStream() */ public OutputStream getOutputStream() throws IOException diff --git a/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java index 1cc1556e77..1a52a49ac5 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Alfresco Software Limited. + * Copyright (C) 2005-2009 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 @@ -67,7 +67,7 @@ import org.alfresco.service.descriptor.DescriptorService; /** * Base class for all CMIS web services - * + * * @author Michael Shavnev * @author Dmitry Lazurkin * @author Dmitry Velichkevich @@ -77,6 +77,9 @@ public class DMAbstractServicePort private static final String BASE_TYPE_PROPERTY_NAME = "BaseType"; protected static final String INITIAL_VERSION_DESCRIPTION = "Initial version"; + private static final String INVALID_REPOSITORY_ID_MESSAGE = "Invalid repository id"; + private static final String INVALID_FOLDER_OBJECT_ID_MESSAGE = "OID for non-existent object or not folder object"; + private DatatypeFactory _datatypeFactory; private Paging paging = new Paging(); @@ -92,7 +95,6 @@ public class DMAbstractServicePort protected SearchService searchService; protected CmisObjectsUtils cmisObjectsUtils; - public void setCmisService(CMISServices cmisService) { this.cmisService = cmisService; @@ -143,13 +145,13 @@ public class DMAbstractServicePort { this.searchService = searchService; } - - protected static PropertyFilter createPropertyFilter(String filter) throws FilterNotValidException + + protected PropertyFilter createPropertyFilter(String filter) throws CmisException { - return (filter == null) ? (new PropertyFilter()) : (new PropertyFilter(filter)); + return (filter == null) ? (new PropertyFilter()) : (new PropertyFilter(filter, cmisObjectsUtils)); } - protected static PropertyFilter createPropertyFilter(JAXBElement element) throws FilterNotValidException + protected PropertyFilter createPropertyFilter(JAXBElement element) throws CmisException { String filter = null; if (element != null) @@ -167,7 +169,7 @@ public class DMAbstractServicePort /** * Converts Date object to XMLGregorianCalendar object - * + * * @param date Date object * @return XMLGregorianCalendar object */ @@ -200,10 +202,9 @@ public class DMAbstractServicePort * @param filter properties filter value for filtering objects returning properties * @param sourceList the list that contains all returning Node References * @param resultList the list of CmisObjectType values for end response result collecting - * @throws InvalidArgumentException - * @throws FilterNotValidException + * @throws CmisException */ - protected void createCmisObjectList(PropertyFilter filter, List sourceList, List resultList) throws InvalidArgumentException, FilterNotValidException + protected void createCmisObjectList(PropertyFilter filter, List sourceList, List resultList) throws CmisException { for (NodeRef objectNodeRef : sourceList) { @@ -227,15 +228,15 @@ public class DMAbstractServicePort /** * Asserts "Folder with folderNodeRef exists" - * + * * @param folderNodeRef node reference * @throws FolderNotValidException folderNodeRef doesn't exist or folderNodeRef isn't for folder object */ - protected void assertExistFolder(NodeRef folderNodeRef) throws FolderNotValidException + protected void assertExistFolder(NodeRef folderNodeRef) throws CmisException { if (!this.cmisObjectsUtils.isFolder(folderNodeRef)) { - throw new FolderNotValidException("OID for non-existent object or not folder object"); + throw new CmisException(INVALID_FOLDER_OBJECT_ID_MESSAGE, cmisObjectsUtils.createCmisException(INVALID_FOLDER_OBJECT_ID_MESSAGE, EnumServiceException.INVALID_ARGUMENT)); } } @@ -243,19 +244,19 @@ public class DMAbstractServicePort * Checks specified in CMIS request parameters repository Id. * * @param repositoryId repository id - * @throws InvalidArgumentException repository diesn't exist + * @throws CmisException repository diesn't exist */ - protected void checkRepositoryId(String repositoryId) throws InvalidArgumentException + protected void checkRepositoryId(String repositoryId) throws CmisException { if (!this.descriptorService.getCurrentRepositoryDescriptor().getId().equals(repositoryId)) { - throw new InvalidArgumentException("Invalid repository id"); + throw cmisObjectsUtils.createCmisException(INVALID_REPOSITORY_ID_MESSAGE, EnumServiceException.INVALID_ARGUMENT); } } /** * Get CMIS properties for object - * + * * @param nodeRef node reference * @param filter property filter * @return properties @@ -352,7 +353,8 @@ public class DMAbstractServicePort result.put(VersionModel.PROP_VERSION_TYPE, versionType); return result; } - + + @SuppressWarnings("unchecked") protected void addBooleanProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -360,26 +362,25 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { - CmisPropertyBoolean propBoolean = new CmisPropertyBoolean (); - propBoolean.setIndex(BigInteger.valueOf(index++)); + CmisPropertyBoolean propBoolean = new CmisPropertyBoolean(); propBoolean.setName(PropertyUtil.getCMISPropertyName(name)); - propBoolean.setValue((Boolean) multiValue); + propBoolean.getValue().add((Boolean) multiValue); properties.getProperty().add(propBoolean); } } else { - CmisPropertyBoolean propBoolean = new CmisPropertyBoolean (); + CmisPropertyBoolean propBoolean = new CmisPropertyBoolean(); propBoolean.setName(PropertyUtil.getCMISPropertyName(name)); - propBoolean.setValue((Boolean) value); + propBoolean.getValue().add((Boolean) value); properties.getProperty().add(propBoolean); } } } + @SuppressWarnings("unchecked") protected void addDateTimeProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -387,13 +388,11 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { CmisPropertyDateTime propDateTime = new CmisPropertyDateTime(); - propDateTime.setIndex(BigInteger.valueOf(index++)); propDateTime.setName(PropertyUtil.getCMISPropertyName(name)); - propDateTime.setValue(convert((Date) multiValue)); + propDateTime.getValue().add(convert((Date) multiValue)); properties.getProperty().add(propDateTime); } } @@ -401,12 +400,13 @@ public class DMAbstractServicePort { CmisPropertyDateTime propDateTime = new CmisPropertyDateTime(); propDateTime.setName(PropertyUtil.getCMISPropertyName(name)); - propDateTime.setValue(convert((Date) value)); + propDateTime.getValue().add(convert((Date) value)); properties.getProperty().add(propDateTime); } } } + @SuppressWarnings("unchecked") protected void addIDProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -414,13 +414,11 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { CmisPropertyId propID = new CmisPropertyId(); - propID.setIndex(BigInteger.valueOf(index++)); propID.setName(PropertyUtil.getCMISPropertyName(name)); - propID.setValue(multiValue.toString()); + propID.getValue().add(multiValue.toString()); properties.getProperty().add(propID); } } @@ -428,12 +426,13 @@ public class DMAbstractServicePort { CmisPropertyId propID = new CmisPropertyId(); propID.setName(PropertyUtil.getCMISPropertyName(name)); - propID.setValue(value.toString()); + propID.getValue().add(value.toString()); properties.getProperty().add(propID); } } } + @SuppressWarnings("unchecked") protected void addIntegerProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -441,13 +440,11 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { CmisPropertyInteger propInteger = new CmisPropertyInteger(); - propInteger.setIndex(BigInteger.valueOf(index++)); propInteger.setName(PropertyUtil.getCMISPropertyName(name)); - propInteger.setValue(BigInteger.valueOf((Long) multiValue)); + propInteger.getValue().add(BigInteger.valueOf((Long) multiValue)); properties.getProperty().add(propInteger); } } @@ -455,12 +452,13 @@ public class DMAbstractServicePort { CmisPropertyInteger propInteger = new CmisPropertyInteger(); propInteger.setName(PropertyUtil.getCMISPropertyName(name)); - propInteger.setValue(BigInteger.valueOf((Long) value)); + propInteger.getValue().add(BigInteger.valueOf((Long) value)); properties.getProperty().add(propInteger); } } } + @SuppressWarnings("unchecked") protected void addDecimalProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -468,13 +466,11 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { CmisPropertyDecimal propDecimal = new CmisPropertyDecimal(); - propDecimal.setIndex(BigInteger.valueOf(index++)); propDecimal.setName(PropertyUtil.getCMISPropertyName(name)); - propDecimal.setValue(BigDecimal.valueOf((Long) multiValue)); + propDecimal.getValue().add(BigDecimal.valueOf((Long) multiValue)); properties.getProperty().add(propDecimal); } } @@ -482,12 +478,13 @@ public class DMAbstractServicePort { CmisPropertyDecimal propDecimal = new CmisPropertyDecimal(); propDecimal.setName(PropertyUtil.getCMISPropertyName(name)); - propDecimal.setValue(BigDecimal.valueOf((Long) value)); + propDecimal.getValue().add(BigDecimal.valueOf((Long) value)); properties.getProperty().add(propDecimal); } } } + @SuppressWarnings("unchecked") protected void addStringProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -495,13 +492,11 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { CmisPropertyString propString = new CmisPropertyString(); - propString.setIndex(BigInteger.valueOf(index++)); propString.setName(PropertyUtil.getCMISPropertyName(name)); - propString.setValue(multiValue.toString()); + propString.getValue().add(multiValue.toString()); properties.getProperty().add(propString); } } @@ -509,7 +504,7 @@ public class DMAbstractServicePort { CmisPropertyString propString = new CmisPropertyString(); propString.setName(PropertyUtil.getCMISPropertyName(name)); - propString.setValue(value.toString()); + propString.getValue().add(value.toString()); properties.getProperty().add(propString); } } @@ -521,11 +516,12 @@ public class DMAbstractServicePort { CmisPropertyString propString = new CmisPropertyString(); propString.setName(name); - propString.setValue(value); + propString.getValue().add(value); properties.getProperty().add(propString); } } + @SuppressWarnings("unchecked") protected void addURIProperty(CmisPropertiesType properties, PropertyFilter filter, String name, Map alfrescoProperties) { Serializable value = alfrescoProperties.get(name); @@ -533,13 +529,11 @@ public class DMAbstractServicePort { if (value instanceof Collection) { - long index = 0; - for (Object multiValue : (Collection)value) + for (Object multiValue : (Collection) value) { CmisPropertyUri propString = new CmisPropertyUri(); - propString.setIndex(BigInteger.valueOf(index++)); propString.setName(PropertyUtil.getCMISPropertyName(name)); - propString.setValue(multiValue.toString()); + propString.getValue().add(multiValue.toString()); properties.getProperty().add(propString); } } @@ -547,12 +541,12 @@ public class DMAbstractServicePort { CmisPropertyUri propString = new CmisPropertyUri(); propString.setName(PropertyUtil.getCMISPropertyName(name)); - propString.setValue(value.toString()); + propString.getValue().add(value.toString()); properties.getProperty().add(propString); } } } - + /** * Sets all properties' fields for specified node * @@ -572,7 +566,7 @@ public class DMAbstractServicePort /** * Returns latest minor or major version of document - * + * * @param documentNodeRef document node reference * @param major need latest major version * @return latest version node reference @@ -590,23 +584,29 @@ public class DMAbstractServicePort { Version latestVersion = versionService.getCurrentVersion(latestVersionNodeRef); - if (latestVersion.getVersionType().equals(VersionType.MAJOR) == false) + if ((latestVersion != null) && (VersionType.MAJOR != latestVersion.getVersionType())) { VersionHistory versionHistory = versionService.getVersionHistory(currentVersion.getVersionedNodeRef()); - do + if (versionHistory != null) { - latestVersion = versionHistory.getPredecessor(latestVersion); - } while (latestVersion.getVersionType().equals(VersionType.MAJOR) == false); + do + { + latestVersion = versionHistory.getPredecessor(latestVersion); + } while (latestVersion != null && (VersionType.MAJOR != latestVersion.getVersionType())); + } - latestVersionNodeRef = latestVersion.getFrozenStateNodeRef(); + if (latestVersion != null) + { + latestVersionNodeRef = latestVersion.getFrozenStateNodeRef(); + } } } } return latestVersionNodeRef; } - + protected NodeRef checkoutNode(NodeRef documentNodeReference) { if (!this.nodeService.hasAspect(documentNodeReference, ContentModel.ASPECT_VERSIONABLE)) @@ -616,7 +616,7 @@ public class DMAbstractServicePort return checkOutCheckInService.checkout(documentNodeReference); } - protected CMISTypeDefinition getCmisTypeDefinition(String typeId) throws InvalidArgumentException + protected CMISTypeDefinition getCmisTypeDefinition(String typeId) throws CmisException { try { @@ -624,7 +624,7 @@ public class DMAbstractServicePort } catch (Exception e) { - throw new InvalidArgumentException("Invalid typeId " + typeId); + throw new CmisException(("Invalid typeId " + typeId), cmisObjectsUtils.createCmisException(("Invalid typeId " + typeId), EnumServiceException.INVALID_ARGUMENT)); } } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMDiscoveryServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMDiscoveryServicePort.java index ce2d73be37..9ad39d5f5d 100755 --- a/source/java/org/alfresco/repo/cmis/ws/DMDiscoveryServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMDiscoveryServicePort.java @@ -25,8 +25,12 @@ package org.alfresco.repo.cmis.ws; import java.io.Serializable; +import java.math.BigInteger; +import java.util.List; import java.util.Map; +import javax.xml.ws.Holder; + import org.alfresco.cmis.CMISDataTypeEnum; import org.alfresco.cmis.CMISQueryOptions; import org.alfresco.cmis.CMISResultSet; @@ -40,7 +44,7 @@ import org.alfresco.repo.cmis.PropertyFilter; * * @author Dmitry Lazurkin */ -@javax.jws.WebService(name = "DiscoveryServicePort", serviceName = "DiscoveryService", portName = "DiscoveryServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.DiscoveryServicePort") +@javax.jws.WebService(name = "DiscoveryServicePort", serviceName = "DiscoveryService", portName = "DiscoveryServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.DiscoveryServicePort") public class DMDiscoveryServicePort extends DMAbstractServicePort implements DiscoveryServicePort { @@ -49,18 +53,13 @@ public class DMDiscoveryServicePort extends DMAbstractServicePort implements Dis * part of query * * @param parameters query parameters - * @return collection of CmisObjectType and boolean hasMoreItems - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public QueryResponse query(CmisQueryType parameters) throws PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, - RuntimeException, ConstraintViolationException + public QueryResponse query(CmisQueryType parameters) throws CmisException { - // TODO: searchAllVersions, returnAllowableActions, includeRelationships + checkRepositoryId(parameters.getRepositoryId()); + + // TODO: searchAllVersions, returnAllowableActions CMISQueryOptions options = new CMISQueryOptions(parameters.getStatement(), cmisService.getDefaultRootStoreRef()); if (parameters.getSkipCount() != null) @@ -78,7 +77,7 @@ public class DMDiscoveryServicePort extends DMAbstractServicePort implements Dis CMISResultSetMetaData metaData = resultSet.getMetaData(); CMISResultSetColumn[] columns = metaData.getColumns(); PropertyFilter filter = new PropertyFilter(); - + // build query response QueryResponse response = new QueryResponse(); @@ -87,7 +86,7 @@ public class DMDiscoveryServicePort extends DMAbstractServicePort implements Dis { CmisPropertiesType properties = new CmisPropertiesType(); Map values = row.getValues(); - + // for each column... for (CMISResultSetColumn column : columns) { @@ -123,22 +122,27 @@ public class DMDiscoveryServicePort extends DMAbstractServicePort implements Dis else if (type == CMISDataTypeEnum.XML) { // TODO: - throw new UnsupportedOperationException(); + throw cmisObjectsUtils.createCmisException("", EnumServiceException.NOT_SUPPORTED); } else if (type == CMISDataTypeEnum.HTML) { // TODO: - throw new UnsupportedOperationException(); + throw cmisObjectsUtils.createCmisException("", EnumServiceException.NOT_SUPPORTED); } } - + CmisObjectType object = new CmisObjectType(); object.setProperties(properties); response.getObject().add(object); } - + response.setHasMoreItems(resultSet.hasMore()); return response; } + public void getContentChanges(String repositoryId, Holder changeToken, BigInteger maxItems, Boolean includeACL, Boolean includeProperties, String filter, + Holder> changedObject) throws CmisException + { + // TODO + } } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMMultiFilingServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMMultiFilingServicePort.java index b1cb1c8f4c..bc0aac2fb0 100755 --- a/source/java/org/alfresco/repo/cmis/ws/DMMultiFilingServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMMultiFilingServicePort.java @@ -24,6 +24,8 @@ */ package org.alfresco.repo.cmis.ws; +import org.alfresco.cmis.CMISDictionaryModel; +import org.alfresco.cmis.CMISTypeDefinition; import org.alfresco.repo.cmis.ws.utils.AlfrescoObjectType; import org.alfresco.service.cmr.repository.NodeRef; @@ -33,7 +35,7 @@ import org.alfresco.service.cmr.repository.NodeRef; * @author Dmitry Lazurkin * @author Dmitry Velichkevich */ -@javax.jws.WebService(name = "MultiFilingServicePort", serviceName = "MultiFilingService", portName = "MultiFilingServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.MultiFilingServicePort") +@javax.jws.WebService(name = "MultiFilingServicePort", serviceName = "MultiFilingService", portName = "MultiFilingServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.MultiFilingServicePort") public class DMMultiFilingServicePort extends DMAbstractServicePort implements MultiFilingServicePort { /** @@ -42,24 +44,22 @@ public class DMMultiFilingServicePort extends DMAbstractServicePort implements M * @param repositoryId Repository Id * @param objectId object Id to be added to a folder * @param folderId folder Id to which the object is added - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT) */ - public void addObjectToFolder(String repositoryId, String objectId, String folderId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void addObjectToFolder(String repositoryId, String objectId, String folderId) throws CmisException { checkRepositoryId(repositoryId); NodeRef objectNodeRef = cmisObjectsUtils.getIdentifierInstance(objectId, AlfrescoObjectType.DOCUMENT_OR_FOLDER_OBJECT).getConvertedIdentifier(); NodeRef parentFolderNodeRef = cmisObjectsUtils.getIdentifierInstance(folderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); - // TODO: check for allowed child object types + CMISTypeDefinition objectType = cmisDictionaryService.findType((String) cmisService.getProperty(objectNodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + CMISTypeDefinition folderType = cmisDictionaryService.findType((String) cmisService.getProperty(parentFolderNodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + if (!folderType.getAllowedTargetTypes().contains(objectType)) + { + cmisObjectsUtils.createCmisException("The typeID of Object is not in the list of AllowedChildObjectTypeIds of the parent-folder specified by folderId", + EnumServiceException.CONSTRAINT); + } cmisObjectsUtils.addObjectToFolder(objectNodeRef, parentFolderNodeRef); } @@ -69,18 +69,9 @@ public class DMMultiFilingServicePort extends DMAbstractServicePort implements M * @param repositoryId repository Id * @param objectId The object to be removed from a folder * @param folderId The folder to be removed from. - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws NotInFolderException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public void removeObjectFromFolder(String repositoryId, String objectId, String folderId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, NotInFolderException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void removeObjectFromFolder(String repositoryId, String objectId, String folderId) throws CmisException { checkRepositoryId(repositoryId); @@ -92,11 +83,11 @@ public class DMMultiFilingServicePort extends DMAbstractServicePort implements M if (!cmisObjectsUtils.removeObject(objectNodeReference, folderNodeReference)) { - throw new NotInFolderException("The specified Object is not child of the specified Folder Object"); + throw cmisObjectsUtils.createCmisException("The specified Object is not child of the specified Folder Object", EnumServiceException.INVALID_ARGUMENT); } } - private NodeRef checkAndReceiveFolderIdentifier(String folderIdentifier) throws OperationNotSupportedException + private NodeRef checkAndReceiveFolderIdentifier(String folderIdentifier) throws CmisException { try { @@ -104,15 +95,15 @@ public class DMMultiFilingServicePort extends DMAbstractServicePort implements M } catch (Throwable e) { - throw new OperationNotSupportedException("Unfiling is not supported. An Object can't be deleted from all Folders"); + throw cmisObjectsUtils.createCmisException("Unfiling is not supported. An Object can't be deleted from all Folders", EnumServiceException.NOT_SUPPORTED, e); } } - private void checkObjectChildParentRelationships(NodeRef objectNodeReference, NodeRef folderNodeReference) throws OperationNotSupportedException + private void checkObjectChildParentRelationships(NodeRef objectNodeReference, NodeRef folderNodeReference) throws CmisException { if (cmisObjectsUtils.isPrimaryObjectParent(folderNodeReference, objectNodeReference)) { - throw new OperationNotSupportedException("Unfiling is not supported. Use deleteObjectService instead"); + throw cmisObjectsUtils.createCmisException("Unfiling is not supported. Use deleteObjectService instead", EnumServiceException.NOT_SUPPORTED); } } } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java index 65c3bc5436..1cbbe72104 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Alfresco Software Limited. + * Copyright (C) 2005-2009 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 @@ -28,15 +28,19 @@ import java.math.BigInteger; import java.util.Arrays; import java.util.LinkedList; import java.util.List; +import java.util.regex.Pattern; +import org.alfresco.cmis.CMISDictionaryModel; import org.alfresco.cmis.CMISTypesFilterEnum; import org.alfresco.repo.cmis.PropertyFilter; import org.alfresco.repo.cmis.ws.utils.AlfrescoObjectType; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.web.util.paging.Cursor; import org.alfresco.service.cmr.repository.ChildAssociationRef; -import org.alfresco.service.cmr.repository.InvalidNodeRefException; import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.util.Pair; + +import com.sun.star.auth.InvalidArgumentException; /** * Port for navigation service @@ -44,42 +48,45 @@ import org.alfresco.service.cmr.repository.NodeRef; * @author Dmitry Lazurkin * @author Dmitry Velichkevich */ -@javax.jws.WebService(name = "NavigationServicePort", serviceName = "NavigationService", portName = "NavigationServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.NavigationServicePort") +@javax.jws.WebService(name = "NavigationServicePort", serviceName = "NavigationService", portName = "NavigationServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.NavigationServicePort") public class DMNavigationServicePort extends DMAbstractServicePort implements NavigationServicePort { - private static final String POLICIES_LISTING_UNSUPPORTED_EXCEPTION_MESSAGE = "Policies listing isn't supported"; private static final int EQUALS_CONDITION_VALUE = 0; private static final BigInteger FULL_DESCENDANTS_HIERARCHY_CONDITION = BigInteger.valueOf(-1l); + private static final String FILTER_TOKENS_DELIMETER = ", "; + private static final String POLICIES_LISTING_UNSUPPORTED_EXCEPTION_MESSAGE = "Policies listing isn't supported"; + + private static final Pattern ORDER_BY_CLAUSE_MASK = Pattern.compile("^( )*([\\p{Alnum}_]+(( )+((ASC)|(DESC)))?){1}((,){1}( )*[\\p{Alnum}_]+(( )+((ASC)|(DESC)))?)*( )*$", + Pattern.CASE_INSENSITIVE); + /** * Gets the private working copies of checked-out objects that the user is allowed to update. * * @param parameters repositoryId: repository Id; folderID: folder Id; filter: property filter; includeAllowableActions; includeRelationships; maxItems: 0 = Unlimited; * skipCount: 0 = start at beginning - * @return collection of CmisObjectType and boolean hasMoreItems - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws ObjectNotFoundException - * @throws ConstraintViolationException - * @throws FilterNotValidException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetCheckedoutDocsResponse getCheckedoutDocs(GetCheckedoutDocs parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, - ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public GetCheckedoutDocsResponse getCheckedoutDocs(GetCheckedoutDocs parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); NodeRef folderId = null; - String folderIdParam = parameters.getFolderID() == null ? null : parameters.getFolderID().getValue(); - if (folderIdParam != null) + String folderIdParam = parameters.getFolderId() == null ? null : parameters.getFolderId().getValue(); + if ((folderIdParam != null) && !folderIdParam.equals("")) { folderId = cmisObjectsUtils.getIdentifierInstance(folderIdParam, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); } - + + @SuppressWarnings("unused") + List> orderingFields = null; + if ((parameters.getOrderBy() != null) && (parameters.getOrderBy().getValue() != null) && !parameters.getOrderBy().getValue().equals("")) + { + orderingFields = checkAndParseOrderByClause(parameters.getOrderBy().getValue()); + } + + // TODO: Ordering functionality SHOULD be moved to getChildren service method NodeRef[] nodeRefs = cmisService.getCheckedOut(AuthenticationUtil.getFullyAuthenticatedUser(), folderId, (folderId == null)); Cursor cursor = createCursor(nodeRefs.length, parameters.getSkipCount() != null ? parameters.getSkipCount().getValue() : null, parameters.getMaxItems() != null ? parameters.getMaxItems().getValue() : null); @@ -106,29 +113,29 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na * @param parameters repositoryId: repository Id; folderId: folder Id; type: DOCUMENTS, FOLDERS, POLICIES, ANY; filter: property filter; includeAllowableActions; * includeRelationships; maxItems: 0 = Unlimited; skipCount: 0 = start at beginning * @return collection of CmisObjectType and boolean hasMoreItems - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws ObjectNotFoundException - * @throws ConstraintViolationException - * @throws FilterNotValidException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetChildrenResponse getChildren(GetChildren parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, - FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public GetChildrenResponse getChildren(GetChildren parameters) throws CmisException { + checkRepositoryId(parameters.getRepositoryId()); PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); NodeRef folderNodeRef = cmisObjectsUtils.getIdentifierInstance(parameters.getFolderId(), AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); EnumTypesOfFileableObjects types = EnumTypesOfFileableObjects.ANY; - if (parameters.getType() != null) + if ((parameters.getType() != null) && ((parameters.getType().getValue() != null))) { types = parameters.getType().getValue(); } + @SuppressWarnings("unused") + List> orderingFields = null; + if ((parameters.getOrderBy() != null) && !parameters.getOrderBy().equals("")) + { + orderingFields = checkAndParseOrderByClause(parameters.getOrderBy()); + } + + // TODO: Ordering functionality SHOULD be moved to getChildren service method NodeRef[] listing = null; switch (types) { @@ -139,7 +146,8 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na listing = cmisService.getChildren(folderNodeRef, CMISTypesFilterEnum.FOLDERS); break; case POLICIES: - throw new OperationNotSupportedException(POLICIES_LISTING_UNSUPPORTED_EXCEPTION_MESSAGE); + throw new CmisException(POLICIES_LISTING_UNSUPPORTED_EXCEPTION_MESSAGE, cmisObjectsUtils.createCmisException(POLICIES_LISTING_UNSUPPORTED_EXCEPTION_MESSAGE, + EnumServiceException.NOT_SUPPORTED)); case ANY: listing = cmisService.getChildren(folderNodeRef, CMISTypesFilterEnum.ANY); break; @@ -156,11 +164,36 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na resultListing.add(createCmisObject(listing[index].toString(), propertyFilter)); } + // TODO: includeAllowableActions, includeRelationships + response.setHasMoreItems(cursor.getEndRow() < (listing.length - 1)); return response; } + // TODO: This method will create appropriate Ordering fields + private List> checkAndParseOrderByClause(String orderByClause) throws CmisException + { + List> result = new LinkedList>(); + + if (!ORDER_BY_CLAUSE_MASK.matcher(orderByClause).matches()) + { + throw cmisObjectsUtils.createCmisException(("\"" + orderByClause + "\" Order By Clause is invalid!"), EnumServiceException.INVALID_ARGUMENT); + } + + for (String token : orderByClause.split(",")) + { + token = token.trim(); + + String[] direction = token.split(" "); + String fieldName = direction[0]; + + result.add(new Pair(fieldName, ((direction.length == 1) ? (true) : (direction[direction.length - 1].toLowerCase().equals("asc"))))); + } + + return result; + } + /** * Gets the list of descendant objects contained at one or more levels in the tree rooted at the specified folder. Only the filter-selected properties associated with each * object are returned. The content-stream is not returned. For paging through the children (depth of 1) only use {@link #getChildren(GetChildren parameters)}. @@ -168,18 +201,9 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na * @param parameters repositoryId: repository Id; folderId: folder Id; depth: 1 this folder only (Default), N folders deep, -1 for all levels; filter: property filter; * includeAllowableActions; includeRelationships; * @return collection of CmisObjectType - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws ObjectNotFoundException - * @throws ConstraintViolationException - * @throws FilterNotValidException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetDescendantsResponse getDescendants(GetDescendants parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, - ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public GetDescendantsResponse getDescendants(GetDescendants parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); @@ -188,18 +212,27 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na GetDescendantsResponse response = new GetDescendantsResponse(); HierarchyReceiverStrategy receiver = createHierarchyReceiver(parameters.getType() != null ? parameters.getType() : EnumTypesOfFileableObjects.ANY, depth); - createCmisObjectList(propertyFilter, receiver.receiveHierarchy(parameters.getFolderId()), response.getObject()); + + List> orderingFields = null; + if ((parameters.getOrderBy() != null) && !parameters.getOrderBy().equals("")) + { + orderingFields = checkAndParseOrderByClause(parameters.getOrderBy()); + } + + // TODO: Ordering functionality SHOULD be moved to getChildren service method + createCmisObjectList(propertyFilter, receiver.receiveHierarchy(parameters.getFolderId(), orderingFields), response.getObject()); // TODO: includeAllowableActions, includeRelationships return response; } - private void checkDepthParameter(BigInteger depth) throws InvalidArgumentException + private void checkDepthParameter(BigInteger depth) throws CmisException { if (depth.equals(BigInteger.ZERO) || (depth.compareTo(FULL_DESCENDANTS_HIERARCHY_CONDITION) < EQUALS_CONDITION_VALUE)) { - throw new InvalidArgumentException("The specified descendants depth is not valid. Valid depth values are: -1 (full hierarchy), N > 0"); + throw cmisObjectsUtils.createCmisException("The specified descendants depth is not valid. Valid depth values are: -1 (full hierarchy), N > 0", + EnumServiceException.INVALID_ARGUMENT); } } @@ -209,20 +242,26 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na * @param parameters repositoryId: repository Id; folderId: folder Id; filter: property filter; includeAllowableActions; includeRelationships; returnToRoot: If false, return * only the immediate parent of the folder. If true, return an ordered list of all ancestor folders from the specified folder to the root folder * @return collection of CmisObjectType - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws ObjectNotFoundException - * @throws ConstraintViolationException - * @throws FilterNotValidException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetFolderParentResponse getFolderParent(GetFolderParent parameters) - throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public GetFolderParentResponse getFolderParent(GetFolderParent parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); + + String filter = parameters.getFilter(); + if (filter != null) + { + if (!filter.contains(CMISDictionaryModel.PROP_PARENT_ID)) + { + filter = CMISDictionaryModel.PROP_PARENT_ID + FILTER_TOKENS_DELIMETER + filter; + } + + if (!filter.contains(CMISDictionaryModel.PROP_OBJECT_ID)) + { + filter = CMISDictionaryModel.PROP_OBJECT_ID + FILTER_TOKENS_DELIMETER + filter; + } + } + PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); GetFolderParentResponse response = new GetFolderParentResponse(); @@ -240,18 +279,10 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na * * @param parameters repositoryId: repository Id; objectId: object Id; filter: property filter; includeAllowableActions; includeRelationships; * @return collection of CmisObjectType - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws ObjectNotFoundException - * @throws ConstraintViolationException - * @throws FilterNotValidException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, + * FILTER_NOT_VALID) */ - public GetObjectParentsResponse getObjectParents(GetObjectParents parameters) - throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public GetObjectParentsResponse getObjectParents(GetObjectParents parameters) throws CmisException { // TODO: Policy @@ -259,7 +290,8 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); GetObjectParentsResponse response = new GetObjectParentsResponse(); - List parents = receiveObjectParents((NodeRef) cmisObjectsUtils.getIdentifierInstance(parameters.getObjectId(), AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier()); + List parents = receiveObjectParents((NodeRef) cmisObjectsUtils.getIdentifierInstance(parameters.getObjectId(), AlfrescoObjectType.DOCUMENT_OBJECT) + .getConvertedIdentifier()); createCmisObjectList(propertyFilter, parents, response.getObject()); // TODO: includeAllowableActions, includeRelationships @@ -267,19 +299,19 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na return response; } - private List receiveParentList(String targetChildIdentifier, boolean fullParentsHierarchy) - throws InvalidNodeRefException, InvalidArgumentException, ObjectNotFoundException + private List receiveParentList(String targetChildIdentifier, boolean fullParentsHierarchy) throws CmisException { List result = new LinkedList(); if (targetChildIdentifier.equals(cmisService.getDefaultRootNodeRef().toString())) { return result; } - - NodeRef currentParent = receiveNextParentNodeReference((NodeRef) cmisObjectsUtils.getIdentifierInstance(targetChildIdentifier, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(), result); + + NodeRef currentParent = receiveNextParentNodeReference((NodeRef) cmisObjectsUtils.getIdentifierInstance(targetChildIdentifier, AlfrescoObjectType.FOLDER_OBJECT) + .getConvertedIdentifier(), result); return (fullParentsHierarchy) ? (receiveFullAncestorsHierachy(currentParent, result)) : (result); } - + private List receiveFullAncestorsHierachy(NodeRef currentParent, List parents) { String lastAncestorIdentifier = cmisService.getDefaultRootNodeRef().toString(); @@ -289,18 +321,18 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na } return parents; } - + private NodeRef receiveNextParentNodeReference(NodeRef currentParent, List parents) { - currentParent = nodeService.getPrimaryParent(currentParent).getParentRef(); + currentParent = nodeService.getPrimaryParent(currentParent).getParentRef(); if (currentParent != null) { parents.add(currentParent); } return currentParent; } - - private List receiveObjectParents(NodeRef objectId) throws InvalidArgumentException + + private List receiveObjectParents(NodeRef objectId) throws CmisException { List parents = new LinkedList(); for (ChildAssociationRef childParentAssociation : nodeService.getParentAssocs(objectId)) @@ -310,7 +342,6 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na return parents; } - private HierarchyReceiverStrategy createHierarchyReceiver(EnumTypesOfFileableObjects returnObjectsType, BigInteger finalDepth) { if (finalDepth.equals(FULL_DESCENDANTS_HIERARCHY_CONDITION)) @@ -323,14 +354,15 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na } } - private void separateDescendantsObjects(EnumTypesOfFileableObjects returnObjectsType, List descendantsFolders, List currentLayerFolders, List currentLayerDocuments) + private void separateDescendantsObjects(EnumTypesOfFileableObjects returnObjectsType, List descendantsFolders, List currentLayerFolders, + List currentLayerDocuments, List> orderingFields) { for (NodeRef element : descendantsFolders) { - // TODO: OrderBy functionality processing. Instead Arrays.asList() it is necessary to add ordering processing method to store each new element where it should go + // TODO: Ordering functionality SHOULD be moved to getChildren service method currentLayerFolders.addAll(Arrays.asList(cmisService.getChildren(element, CMISTypesFilterEnum.FOLDERS))); - // TODO: OrderBy functionality processing. Instead Arrays.asList() it is necessary to add ordering processing method to store each new element where it should go + // TODO: Ordering functionality SHOULD be moved to getChildren service method if ((returnObjectsType == EnumTypesOfFileableObjects.ANY) || (returnObjectsType == EnumTypesOfFileableObjects.DOCUMENTS)) { currentLayerDocuments.addAll(Arrays.asList(cmisService.getChildren(element, CMISTypesFilterEnum.DOCUMENTS))); @@ -339,9 +371,9 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na } private List performDescendantsResultObjectsStoring(EnumTypesOfFileableObjects returnObjectsType, List resultList, List descendantsFolders, - List currentLayerFolders, List currentLayerDocuments) + List currentLayerFolders, List currentLayerDocuments, List> orderingFields) { - separateDescendantsObjects(returnObjectsType, descendantsFolders, currentLayerFolders, currentLayerDocuments); + separateDescendantsObjects(returnObjectsType, descendantsFolders, currentLayerFolders, currentLayerDocuments, orderingFields); if ((returnObjectsType == EnumTypesOfFileableObjects.ANY) || (returnObjectsType == EnumTypesOfFileableObjects.FOLDERS)) { @@ -363,7 +395,7 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na * @return List that contains all appropriates layers of Alfresco objects * @throws InvalidArgumentException */ - public List receiveHierarchy(String rootFolderIdentifier) throws InvalidArgumentException; + public List receiveHierarchy(String rootFolderIdentifier, List> orderFields) throws CmisException; } /** @@ -386,12 +418,13 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na /** * Traverse Alfresco objects hierarchy until there is some Folder-objects can be found */ - public List receiveHierarchy(String rootFolderIdentifier) throws InvalidArgumentException + public List receiveHierarchy(String rootFolderIdentifier, List> orderingFields) throws CmisException { descendantsFolders.add((NodeRef) cmisObjectsUtils.getIdentifierInstance(rootFolderIdentifier, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier()); while (!descendantsFolders.isEmpty()) { - descendantsFolders = performDescendantsResultObjectsStoring(returnObjectsType, resultList, descendantsFolders, new LinkedList(), new LinkedList()); + descendantsFolders = performDescendantsResultObjectsStoring(returnObjectsType, resultList, descendantsFolders, new LinkedList(), + new LinkedList(), orderingFields); } return resultList; @@ -422,13 +455,14 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na /** * This method of this class receives Alfresco objects hierarchy until specified layer number */ - public List receiveHierarchy(String rootFolderIdentifier) throws InvalidArgumentException + public List receiveHierarchy(String rootFolderIdentifier, List> orderingFields) throws CmisException { descendantsFolders.add((NodeRef) cmisObjectsUtils.getIdentifierInstance(rootFolderIdentifier, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier()); do { - descendantsFolders = performDescendantsResultObjectsStoring(this.returnObjectsType, this.resultList, this.descendantsFolders, new LinkedList(), new LinkedList()); + descendantsFolders = performDescendantsResultObjectsStoring(this.returnObjectsType, this.resultList, this.descendantsFolders, new LinkedList(), + new LinkedList(), orderingFields); currentDepth = currentDepth.add(BigInteger.ONE); } while (!descendantsFolders.isEmpty() && (currentDepth.compareTo(this.finalDepth) < EQUALS_CONDITION_VALUE)); diff --git a/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java index 9dbd9fcb8d..0f54f07a5d 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Alfresco Software Limited. + * Copyright (C) 2005-2009 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 @@ -29,12 +29,15 @@ import java.io.InputStream; import java.io.Serializable; import java.math.BigInteger; import java.util.HashMap; +import java.util.List; import java.util.Map; import javax.activation.DataHandler; import javax.xml.ws.Holder; +import org.alfresco.cmis.CMISContentStreamAllowedEnum; import org.alfresco.cmis.CMISDictionaryModel; +import org.alfresco.cmis.CMISPropertyDefinition; import org.alfresco.cmis.CMISScope; import org.alfresco.cmis.CMISTypeDefinition; import org.alfresco.model.ContentModel; @@ -49,11 +52,13 @@ import org.alfresco.service.cmr.dictionary.DictionaryService; import org.alfresco.service.cmr.lock.NodeLockedException; import org.alfresco.service.cmr.model.FileExistsException; import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.ContentReader; import org.alfresco.service.cmr.repository.ContentWriter; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.security.AccessStatus; import org.alfresco.service.cmr.security.PermissionService; +import org.alfresco.service.cmr.version.Version; import org.alfresco.service.cmr.version.VersionType; import org.alfresco.service.namespace.QName; @@ -63,7 +68,7 @@ import org.alfresco.service.namespace.QName; * @author Dmitry Lazurkin * @author Dmitry Velichkevich */ -@javax.jws.WebService(name = "ObjectServicePort", serviceName = "ObjectService", portName = "ObjectServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.ObjectServicePort") +@javax.jws.WebService(name = "ObjectServicePort", serviceName = "ObjectService", portName = "ObjectServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.ObjectServicePort") public class DMObjectServicePort extends DMAbstractServicePort implements ObjectServicePort { private static final int SINGLE_PARENT_CONDITION = 1; @@ -76,13 +81,12 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object { this.permissionService = permissionService; } - + public void setDictionaryService(DictionaryService dictionaryService) { this.dictionaryService = dictionaryService; } - /** * Creates a document object of the specified type, and optionally adds the document to a folder * @@ -93,37 +97,18 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param contentStream content stream * @param versioningState versioning state (checkedout, minor, major) * @return Id of the created document object - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws StorageException - * @throws StreamNotSupportedException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws TypeNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE, + * STREAM_NOT_SUPPORTED) */ - public String createDocument(String repositoryId, String typeId, CmisPropertiesType properties, String folderId, CmisContentStreamType contentStream, EnumVersioningState versioningState) - throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, FolderNotValidException, - OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public String createDocument(String repositoryId, String typeId, CmisPropertiesType properties, String folderId, CmisContentStreamType contentStream, + EnumVersioningState versioningState) throws CmisException { checkRepositoryId(repositoryId); - + NodeRef parentNodeRef = safeGetFolderNodeRef(folderId); Map propertiesMap = getPropertiesMap(properties); CMISTypeDefinition typeDef = cmisDictionaryService.findType(typeId); - if (typeDef.getTypeId().getScope() != CMISScope.DOCUMENT) - { - throw new ConstraintViolationException("Invalid document type " + typeId); - } - NodeRef parentNodeRef = safeGetFolderNodeRef(folderId); - - String documentName = (String) propertiesMap.get(CMISDictionaryModel.PROP_NAME); - if (documentName == null) - { - throw new InvalidArgumentException("Name property not found"); - } + String documentName = checkConstraintsAndGetName(typeId, typeDef, parentNodeRef, contentStream, propertiesMap, versioningState); NodeRef newDocumentNodeRef = fileFolderService.create(parentNodeRef, documentName, typeDef.getTypeId().getQName()).getNodeRef(); ContentWriter writer = fileFolderService.getWriter(newDocumentNodeRef); @@ -132,6 +117,10 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object { writer.setMimetype(mimeType); } + else if (contentStream.getMimeType() != null) + { + writer.setMimetype(contentStream.getMimeType()); + } InputStream inputstream = null; try { @@ -139,7 +128,7 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object } catch (IOException e) { - throw new ConstraintViolationException("", e.getCause()); + throw cmisObjectsUtils.createCmisException(e.toString(), EnumServiceException.CONSTRAINT); } writer.putContent(inputstream); @@ -153,21 +142,70 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object switch (versioningState) { - case CHECKEDOUT: - newDocumentNodeRef = checkoutNode(newDocumentNodeRef); - break; - case MAJOR: - this.versionService.createVersion(newDocumentNodeRef, createVersionProperties(INITIAL_VERSION_DESCRIPTION, VersionType.MAJOR)); - break; - case MINOR: - this.versionService.createVersion(newDocumentNodeRef, createVersionProperties(INITIAL_VERSION_DESCRIPTION, VersionType.MINOR)); - break; + case CHECKEDOUT: + newDocumentNodeRef = checkoutNode(newDocumentNodeRef); + break; + case MAJOR: + this.versionService.createVersion(newDocumentNodeRef, createVersionProperties(INITIAL_VERSION_DESCRIPTION, VersionType.MAJOR)); + break; + case MINOR: + this.versionService.createVersion(newDocumentNodeRef, createVersionProperties(INITIAL_VERSION_DESCRIPTION, VersionType.MINOR)); + break; } String versionLabel = (String) cmisService.getProperty(newDocumentNodeRef, CMISDictionaryModel.PROP_VERSION_LABEL); - return versionLabel != null && versionLabel.contains(VERSION_DELIMETER) ? - newDocumentNodeRef.toString() + CmisObjectsUtils.NODE_REFERENCE_ID_DELIMETER + versionLabel : - newDocumentNodeRef.toString(); + return versionLabel != null && versionLabel.contains(VERSION_DELIMETER) ? newDocumentNodeRef.toString() + CmisObjectsUtils.NODE_REFERENCE_ID_DELIMETER + versionLabel + : newDocumentNodeRef.toString(); + } + + private String checkConstraintsAndGetName(String documentTypeId, CMISTypeDefinition typeDef, NodeRef parentNodeRef, CmisContentStreamType contentStream, + Map propertiesMap, EnumVersioningState versioningState) throws CmisException + { + if ((typeDef.getTypeId().getScope() != CMISScope.DOCUMENT) || !typeDef.isCreatable()) + { + throw cmisObjectsUtils.createCmisException(("Invalid document type \"" + documentTypeId + "\". Specified type is not Document type or type is not Creatable"), + EnumServiceException.CONSTRAINT); + } + + if (CMISContentStreamAllowedEnum.NOT_ALLOWED == typeDef.getContentStreamAllowed()) + { + throw cmisObjectsUtils.createCmisException(("Content stream not allowed for \"" + documentTypeId + "\" document object type"), + EnumServiceException.STREAM_NOT_SUPPORTED); + } + else + { + if ((CMISContentStreamAllowedEnum.REQUIRED == typeDef.getContentStreamAllowed()) && (contentStream == null)) + { + throw cmisObjectsUtils.createCmisException("Content stream for document object of " + documentTypeId + " type is required", EnumServiceException.CONSTRAINT); + } + } + + if (typeDef.isVersionable() && (versioningState != null)) + { + throw cmisObjectsUtils.createCmisException(("Verioning for \"" + documentTypeId + "\" document type is not allowed"), EnumServiceException.CONSTRAINT); + } + + String folderTypeId = (String) cmisService.getProperty(parentNodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID); + CMISTypeDefinition folderTypeDefinition = cmisDictionaryService.findType(folderTypeId); + if ((folderTypeDefinition.getAllowedTargetTypes() != null) && !folderTypeDefinition.getAllowedTargetTypes().isEmpty() + && !folderTypeDefinition.getAllowedTargetTypes().contains(typeDef)) + { + throw cmisObjectsUtils.createCmisException(("Children of \"" + documentTypeId + "\" type are not allowed for specified folder"), EnumServiceException.CONSTRAINT); + } + + String result = (String) propertiesMap.get(CMISDictionaryModel.PROP_NAME); + if (result == null) + { + throw cmisObjectsUtils.createCmisException("Name property not found", EnumServiceException.INVALID_ARGUMENT); + } + + CMISPropertyDefinition nameProperty = cmisDictionaryService.findProperty(CMISDictionaryModel.PROP_NAME, null); + if ((nameProperty.getMaximumLength() > 0) && (result.length() > nameProperty.getMaximumLength())) + { + throw cmisObjectsUtils.createCmisException("Name property length too big", EnumServiceException.CONSTRAINT); + } + + return result; } /** @@ -178,34 +216,31 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param properties CMIS properties * @param folderId parent folder for this new folder * @return Id of the created folder object - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws TypeNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE) */ - public String createFolder(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) - throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public String createFolder(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) throws CmisException { checkRepositoryId(repositoryId); - NodeRef folderNodeRef = cmisObjectsUtils.getIdentifierInstance(folderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); + NodeRef folderNodeRef = null; + try + { + folderNodeRef = cmisObjectsUtils.getIdentifierInstance(folderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); + } + catch (CmisException e) + { + e.getFaultInfo().setType(EnumServiceException.CONSTRAINT); + throw e; + } CMISTypeDefinition type = getCmisTypeDefinition(typeId); if (type == null || type.getTypeId().getScope() != CMISScope.FOLDER) { - throw new TypeNotFoundException(typeId); + throw cmisObjectsUtils.createCmisException("The typeID is not an Object-Type whose baseType is 'Folder': " + typeId, EnumServiceException.CONSTRAINT); } Map propertiesMap = getPropertiesMap(properties); String name = (String) propertiesMap.get(CMISDictionaryModel.PROP_NAME); - if (name == null) - { - throw new InvalidArgumentException("Name property not found"); - } - + checkPropertyName(type, name); assertExistFolder(folderNodeRef); try @@ -217,7 +252,7 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object } catch (FileExistsException e) { - throw new UpdateConflictException("Folder already exists"); + throw cmisObjectsUtils.createCmisException("Folder already exists", EnumServiceException.CONTENT_ALREADY_EXISTS); } } @@ -229,20 +264,11 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param properties CMIS properties * @param folderId parent folder for this new policy * @return Id of the created policy object - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws TypeNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE) */ - public String createPolicy(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) - throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public String createPolicy(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) throws CmisException { - // TODO: - return null; + throw cmisObjectsUtils.createCmisException("Policy objects not supported", EnumServiceException.NOT_SUPPORTED); } /** @@ -254,41 +280,34 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param sourceObjectId source object Id * @param targetObjectId target object Id * @return Id of the created relationship object - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws TypeNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE) */ - public String createRelationship(String repositoryId, String typeId, CmisPropertiesType properties, String sourceObjectId, String targetObjectId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public String createRelationship(String repositoryId, String typeId, CmisPropertiesType properties, String sourceObjectId, String targetObjectId) throws CmisException { checkRepositoryId(repositoryId); NodeRef sourceNodeRef; NodeRef targetNodeRef; - try - { - sourceNodeRef = cmisObjectsUtils.getIdentifierInstance(sourceObjectId, AlfrescoObjectType.ANY_OBJECT).getConvertedIdentifier(); - targetNodeRef = cmisObjectsUtils.getIdentifierInstance(targetObjectId, AlfrescoObjectType.ANY_OBJECT).getConvertedIdentifier(); - } - catch (InvalidArgumentException e) - { - if (e.getCause() instanceof ObjectNotFoundException) - { - throw new ObjectNotFoundException(e.getMessage()); - } - throw e; - } + sourceNodeRef = cmisObjectsUtils.getIdentifierInstance(sourceObjectId, AlfrescoObjectType.ANY_OBJECT).getConvertedIdentifier(); + targetNodeRef = cmisObjectsUtils.getIdentifierInstance(targetObjectId, AlfrescoObjectType.ANY_OBJECT).getConvertedIdentifier(); CMISTypeDefinition relationshipType = cmisDictionaryService.findType(typeId); if (relationshipType == null || relationshipType.getTypeId().getScope() != CMISScope.RELATIONSHIP) { - throw new TypeNotFoundException(typeId); + throw cmisObjectsUtils.createCmisException(typeId, EnumServiceException.INVALID_ARGUMENT); + } + + CMISTypeDefinition sourceType = cmisDictionaryService.findType((String) cmisService.getProperty(sourceNodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + CMISTypeDefinition targetType = cmisDictionaryService.findType((String) cmisService.getProperty(targetNodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + + if (!relationshipType.getAllowedSourceTypes().contains(sourceType)) + { + cmisObjectsUtils.createCmisException(("Source object type is not allowed for \"" + typeId + "\" Relationship type"), EnumServiceException.CONSTRAINT); + } + if (!relationshipType.getAllowedTargetTypes().contains(targetType)) + { + cmisObjectsUtils.createCmisException(("Target object type is not allowed for \"" + typeId + "\" Relationship type"), EnumServiceException.CONSTRAINT); } QName relationshipTypeQName = relationshipType.getTypeId().getQName(); @@ -297,19 +316,19 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object { if (!dictionaryService.isSubClass(nodeService.getType(sourceNodeRef), associationDef.getSourceClass().getName())) { - throw new ConstraintViolationException("Source object type isn't allowed as source type"); + throw cmisObjectsUtils.createCmisException("Source object type isn't allowed as source type", EnumServiceException.CONSTRAINT); } if (!dictionaryService.isSubClass(nodeService.getType(targetNodeRef), associationDef.getTargetClass().getName())) { - throw new ConstraintViolationException("Target object type isn't allowed as target type"); + throw cmisObjectsUtils.createCmisException("Target object type isn't allowed as target type", EnumServiceException.CONSTRAINT); } return nodeService.createAssociation(sourceNodeRef, targetNodeRef, relationshipTypeQName).toString(); } else { - throw new TypeNotFoundException(relationshipType.getTypeId().getQName() + " Relationship type not found"); + throw cmisObjectsUtils.createCmisException((relationshipType.getTypeId().getQName() + " Relationship type not found"), EnumServiceException.INVALID_ARGUMENT); } } @@ -319,22 +338,25 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * * @param repositoryId repository Id * @param documentId document Id - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws StorageException - * @throws StreamNotSupportedException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws VersioningException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE, + * UPDATE_CONFLICT, VERSIONING) */ - public void deleteContentStream(String repositoryId, String documentId) - throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, VersioningException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void deleteContentStream(String repositoryId, String documentId) throws CmisException { + // TODO: Where is changeToken? checkRepositoryId(repositoryId); - safeDeleteContentStream((NodeRef) cmisObjectsUtils.getIdentifierInstance(documentId, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier()); + NodeRef currentNode = (NodeRef) cmisObjectsUtils.getIdentifierInstance(documentId, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); + + CMISTypeDefinition typeDef = cmisDictionaryService.findType((String) cmisService.getProperty(currentNode, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + if (CMISContentStreamAllowedEnum.REQUIRED.equals(typeDef.getContentStreamAllowed())) + { + throw cmisObjectsUtils.createCmisException("The Objects Object-Type definition 'contentStreamAllowed' attribute is set to 'required'.", + EnumServiceException.CONSTRAINT); + } + + checkVersion(currentNode); + + safeDeleteContentStream(currentNode); } /** @@ -342,16 +364,10 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * * @param repositoryId repository Id * @param objectId object Id - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, + * UPDATE_CONFLICT) */ - public void deleteObject(String repositoryId, String objectId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void deleteObject(String repositoryId, String objectId) throws CmisException { checkRepositoryId(repositoryId); @@ -360,7 +376,8 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object checkObjectTypeAndAppropriateStates(objectNodeReference, nodeService.getType(objectNodeReference)); if (!cmisObjectsUtils.deleteObject(objectNodeReference)) { - throw new PermissionDeniedException("Currently authenticated User has no appropriate Permissions to delete specified Object"); + throw cmisObjectsUtils.createCmisException("Currently authenticated User has no appropriate Permissions to delete specified Object", + EnumServiceException.PERMISSION_DENIED); } } @@ -374,16 +391,9 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * objects in this tree (Default) * @param continueOnFailure flag * @return collection of object IDs that failed to delete (if continueOnFailure is FALSE, then single object ID) - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, UPDATE_CONFLICT) */ - public FailedToDelete deleteTree(String repositoryId, String folderId, EnumUnfileNonfolderObjects unfileNonfolderObjects, Boolean continueOnFailure) - throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public FailedToDelete deleteTree(String repositoryId, String folderId, EnumUnfileNonfolderObjects unfileNonfolderObjects, Boolean continueOnFailure) throws CmisException { checkRepositoryId(repositoryId); checkUnfilingIsNotRequested(unfileNonfolderObjects); @@ -403,15 +413,9 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param repositoryId repository Id * @param objectId object Id * @return list of allowable actions - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public CmisAllowableActionsType getAllowableActions(String repositoryId, String objectId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException + public CmisAllowableActionsType getAllowableActions(String repositoryId, String objectId) throws CmisException { checkRepositoryId(repositoryId); return determineObjectAllowableActions(cmisObjectsUtils.getIdentifierInstance(objectId, AlfrescoObjectType.ANY_OBJECT)); @@ -423,21 +427,27 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param repositoryId repository Id * @param documentId document to return the content-stream * @return content stream - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws StorageException - * @throws StreamNotSupportedException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws OffsetException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, STREAM_NOT_SUPPORTED) */ - public CmisContentStreamType getContentStream(String repositoryId, String documentId) - throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, OffsetException + public CmisContentStreamType getContentStream(String repositoryId, String documentId) throws CmisException { + // TODO: + // Specification says: + // Each CMIS protocol binding SHALL provide a way for fetching a sub-range within + // a content stream, in a manner appropriate to that protocol. + // + // Implementation of sub-range fetching is suspended. + // See http://tools.oasis-open.org/issues/browse/CMIS-134 + + checkRepositoryId(repositoryId); NodeRef nodeRef = cmisObjectsUtils.getIdentifierInstance(documentId, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); + CMISTypeDefinition typeDefinition = cmisDictionaryService.findType((String) cmisService.getProperty(nodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + if (CMISContentStreamAllowedEnum.NOT_ALLOWED == typeDefinition.getContentStreamAllowed()) + { + cmisObjectsUtils.createCmisException("Content stream not allowed", EnumServiceException.STREAM_NOT_SUPPORTED); + } + CmisContentStreamType response = new CmisContentStreamType(); ContentReader reader = safeGetContentReader(nodeRef); @@ -457,31 +467,53 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param objectId object Id * @param targetFolderId the target folder to be moved into * @param sourceFolderId the source folder to be moved out of - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws FolderNotValidException - * @throws OperationNotSupportedException - * @throws NotInFolderException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE, + * UPDATE_CONFLICT, VERSIONING) */ - public void moveObject(String repositoryId, String objectId, String targetFolderId, String sourceFolderId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, NotInFolderException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void moveObject(String repositoryId, String objectId, String targetFolderId, String sourceFolderId) throws CmisException { checkRepositoryId(repositoryId); - NodeRef objectNodeRef = cmisObjectsUtils.getIdentifierInstance(objectId, AlfrescoObjectType.DOCUMENT_OR_FOLDER_OBJECT).getConvertedIdentifier(); - NodeRef targetFolderNodeRef = cmisObjectsUtils.getIdentifierInstance(targetFolderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); - NodeRef sourceFolderNodeRef = cmisObjectsUtils.getIdentifierInstance(sourceFolderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); - - // TODO: Allowed_Child_Object_Types + NodeRef objectNodeRef = null; - if (nodeService.getParentAssocs(objectNodeRef).size() == SINGLE_PARENT_CONDITION || !changeObjectParentAssociation(objectNodeRef, targetFolderNodeRef, sourceFolderNodeRef)) + try { - safeMove(objectNodeRef, targetFolderNodeRef); + objectNodeRef = cmisObjectsUtils.getIdentifierInstance(objectId, AlfrescoObjectType.DOCUMENT_OR_FOLDER_OBJECT).getConvertedIdentifier(); } + catch (CmisException e) + { + e.getFaultInfo().setType(EnumServiceException.CONSTRAINT); + throw e; + } + + checkVersion(objectNodeRef); + + NodeRef targetFolderNodeRef = cmisObjectsUtils.getIdentifierInstance(targetFolderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); + List parentsAssociations = nodeService.getParentAssocs(objectNodeRef); + NodeRef sourceFolderNodeRef = null; + if ((parentsAssociations != null) && (SINGLE_PARENT_CONDITION != nodeService.getParentAssocs(objectNodeRef).size())) + { + try + { + sourceFolderNodeRef = cmisObjectsUtils.getIdentifierInstance(sourceFolderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); + + if (!cmisObjectsUtils.isPrimaryObjectParent(sourceFolderNodeRef, objectNodeRef)) + { + changeObjectParentAssociation(objectNodeRef, targetFolderNodeRef, sourceFolderNodeRef); + return; + } + } + catch (CmisException e) + { + e.getFaultInfo().setMessage( + "Invalid source forlder for multifiled document was specified. Multifiled document must be moved from concrete folder. Exception message: " + + e.getFaultInfo().getMessage()); + throw e; + } + } + + safeMove(objectNodeRef, targetFolderNodeRef); + // TODO: Allowed_Child_Object_Types } /** @@ -491,32 +523,30 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param documentId document Id * @param overwriteFlag flag * @param contentStream content stream - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws StorageException - * @throws StreamNotSupportedException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws ContentAlreadyExistsException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, + * CONTENT_ALREADY_EXISTS, STORAGE, STREAM_NOT_SUPPORTED, UPDATE_CONFLICT, VERSIONING) */ - public void setContentStream(String repositoryId, Holder documentId, Boolean overwriteFlag, CmisContentStreamType contentStream) - throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, ContentAlreadyExistsException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void setContentStream(String repositoryId, Holder documentId, Boolean overwriteFlag, CmisContentStreamType contentStream) throws CmisException { checkRepositoryId(repositoryId); NodeRef nodeRef = cmisObjectsUtils.getIdentifierInstance(documentId.value, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); + CMISTypeDefinition typeDef = cmisDictionaryService.findType((String) cmisService.getProperty(nodeRef, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + if (CMISContentStreamAllowedEnum.NOT_ALLOWED.equals(typeDef.getContentStreamAllowed())) + { + throw cmisObjectsUtils.createCmisException("The Objects Object-Type definition 'contentStreamAllowed' attribute is set to 'notAllowed'.", + EnumServiceException.CONSTRAINT); + } + if (contentStream.getStream() == null) { - throw new InvalidArgumentException("New Content Stream was not provided"); + throw cmisObjectsUtils.createCmisException("New Content Stream was not provided", EnumServiceException.CONSTRAINT); } if ((nodeService.getProperty(nodeRef, ContentModel.PROP_CONTENT) != null) && !overwriteFlag) { - throw new ContentAlreadyExistsException(); + throw cmisObjectsUtils.createCmisException("Content already exists", EnumServiceException.CONTENT_ALREADY_EXISTS); } ContentWriter writer = fileFolderService.getWriter(nodeRef); @@ -527,7 +557,7 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object } catch (IOException e) { - throw new ConstraintViolationException("", e.getCause()); + throw cmisObjectsUtils.createCmisException(e.getMessage(), EnumServiceException.CONSTRAINT); } writer.setMimetype(contentStream.getMimeType()); @@ -541,20 +571,17 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * @param objectId object Id * @param changeToken change token * @param properties list of properties to update - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, + * UPDATE_CONFLICT, VERSIONING) */ - public void updateProperties(String repositoryId, Holder objectId, String changeToken, CmisPropertiesType properties) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void updateProperties(String repositoryId, Holder objectId, String changeToken, CmisPropertiesType properties) throws CmisException { checkRepositoryId(repositoryId); checkForReadOnlyProperties(properties); NodeRef objectNodeRef = cmisObjectsUtils.getIdentifierInstance(objectId.value, AlfrescoObjectType.DOCUMENT_OR_FOLDER_OBJECT).getConvertedIdentifier(); + String name = (String) PropertyUtil.getProperty(properties, CMISDictionaryModel.PROP_NAME); + checkPropertyName(objectNodeRef, name); setProperties(objectNodeRef, properties); // TODO: change token @@ -568,27 +595,21 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object * * @param parameters * @return collection collection of CmisObjectType - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FilterNotValidException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FOLDER_NOT_VALID) */ - public GetPropertiesResponse getProperties(GetProperties parameters) - throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException + public GetPropertiesResponse getProperties(GetProperties parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); String identifier = ((NodeRef) cmisObjectsUtils.getIdentifierInstance(parameters.getObjectId(), AlfrescoObjectType.ANY_OBJECT).getConvertedIdentifier()).toString(); - EnumReturnVersion returnVersion = (parameters.getReturnVersion() != null && parameters.getReturnVersion().getValue() != null) ? parameters.getReturnVersion().getValue() : null; - - if ((cmisObjectsUtils.determineObjectType(identifier) == EnumObjectType.DOCUMENT) && returnVersion != null) + EnumReturnVersion returnVersion = (parameters.getReturnVersion() != null && parameters.getReturnVersion().getValue() != null) ? parameters.getReturnVersion().getValue() + : null; + + if ((returnVersion != null) && (cmisObjectsUtils.determineObjectType(identifier) == EnumObjectType.DOCUMENT)) { - identifier = getLatestNode(new NodeRef(identifier), returnVersion != EnumReturnVersion.LATEST).toString(); + identifier = getLatestNode(new NodeRef(identifier), (EnumReturnVersion.LATEST != returnVersion)).toString(); } GetPropertiesResponse response = new GetPropertiesResponse(); @@ -609,8 +630,7 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object return response; } - - private Map getPropertiesMap(CmisPropertiesType cmisProperties) throws InvalidArgumentException + private Map getPropertiesMap(CmisPropertiesType cmisProperties) throws CmisException { Map properties = new HashMap(); @@ -619,7 +639,7 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object String name = PropertyUtil.getRepositoryPropertyName(cmisProperty.getName()); if (name == null) { - throw new InvalidArgumentException("Unknown property with name " + name); + throw cmisObjectsUtils.createCmisException(("Unknown property with name " + name), EnumServiceException.INVALID_ARGUMENT); } properties.put(name, PropertyUtil.getValue(cmisProperty)); @@ -628,24 +648,15 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object return properties; } - private boolean changeObjectParentAssociation(NodeRef objectNodeRef, NodeRef targetFolderNodeRef, NodeRef sourceFolderNodeReference) - throws UpdateConflictException, PermissionDeniedException + private void changeObjectParentAssociation(NodeRef objectNodeRef, NodeRef targetFolderNodeRef, NodeRef sourceFolderNodeReference) throws CmisException { - if (cmisObjectsUtils.isPrimaryObjectParent(sourceFolderNodeReference, objectNodeRef)) - { - return false; - } - - if (!cmisObjectsUtils.removeObject(objectNodeRef, sourceFolderNodeReference) && cmisObjectsUtils.addObjectToFolder(objectNodeRef, targetFolderNodeRef)) + if (!cmisObjectsUtils.removeObject(objectNodeRef, sourceFolderNodeReference) || !cmisObjectsUtils.addObjectToFolder(objectNodeRef, targetFolderNodeRef)) { determineException(cmisObjectsUtils.getLastOperationException()); } - - return true; } - private void safeMove(NodeRef objectNodeRef, NodeRef targetFolderNodeRef) - throws PermissionDeniedException, UpdateConflictException + private void safeMove(NodeRef objectNodeRef, NodeRef targetFolderNodeRef) throws CmisException { try { @@ -657,7 +668,7 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object } } - private void safeDeleteContentStream(NodeRef documentNodeReference) throws ConstraintViolationException + private void safeDeleteContentStream(NodeRef documentNodeReference) throws CmisException { try { @@ -665,73 +676,109 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object } catch (NodeLockedException e) { - throw new ConstraintViolationException("Content Stream Deletion is not allowed for specified Document", e); + throw cmisObjectsUtils.createCmisException("Content Stream Deletion is not allowed for specified Document", EnumServiceException.UPDATE_CONFLICT); } } - private ContentReader safeGetContentReader(NodeRef objectNodeReference) throws StorageException + private ContentReader safeGetContentReader(NodeRef objectNodeReference) throws CmisException { ContentReader reader = fileFolderService.getReader(objectNodeReference); if (reader == null) { - throw new StorageException("The specified Document has no Content Stream"); + throw cmisObjectsUtils.createCmisException("The specified Document has no Content Stream", EnumServiceException.INVALID_ARGUMENT); } return reader; } - private NodeRef safeGetFolderNodeRef(String folderId) throws FolderNotValidException + private NodeRef safeGetFolderNodeRef(String folderId) throws CmisException { try { return this.cmisObjectsUtils.getIdentifierInstance(folderId, AlfrescoObjectType.FOLDER_OBJECT).getConvertedIdentifier(); } - catch (InvalidArgumentException e) + catch (CmisException e) { - throw new FolderNotValidException("Unfiling is not suppoerted. Each Document must have existent parent Folder"); + throw cmisObjectsUtils.createCmisException("Unfiling is not suppoerted. Each Document must have existent parent Folder", EnumServiceException.OBJECT_NOT_FOUND, e); } } - - private void checkObjectTypeAndAppropriateStates(NodeRef objectNodeReference, QName objectType) throws InvalidArgumentException, ConstraintViolationException + + private void checkObjectTypeAndAppropriateStates(NodeRef objectNodeReference, QName objectType) throws CmisException { if (objectType == null) { - throw new InvalidArgumentException("Specified Object has invalid Object Type"); + throw cmisObjectsUtils.createCmisException("Specified Object has invalid Object Type", EnumServiceException.INVALID_ARGUMENT); } if (objectType.equals(ContentModel.TYPE_FOLDER) && (nodeService.getChildAssocs(objectNodeReference).size() > 0)) { - throw new ConstraintViolationException("Could not delete folder with at least one Child"); + throw cmisObjectsUtils.createCmisException("Could not delete folder with at least one Child", EnumServiceException.CONSTRAINT); } } - private void checkUnfilingIsNotRequested(EnumUnfileNonfolderObjects unfileNonfolderObjects) throws OperationNotSupportedException + private void checkUnfilingIsNotRequested(EnumUnfileNonfolderObjects unfileNonfolderObjects) throws CmisException { if (unfileNonfolderObjects == EnumUnfileNonfolderObjects.UNFILE) { - throw new OperationNotSupportedException("Unfiling is not supported"); + throw cmisObjectsUtils.createCmisException("Unfiling is not supported", EnumServiceException.NOT_SUPPORTED); } } - private void checkForRootObject(String repositoryId, String objectId) throws OperationNotSupportedException + private void checkForRootObject(String repositoryId, String objectId) throws CmisException { if (this.cmisService.getDefaultRootNodeRef().toString().equals(objectId) || repositoryId.equals(objectId)) { - throw new OperationNotSupportedException("Could not delete Repository object or Root Folder object - operation is not allowed or not supported"); + throw cmisObjectsUtils.createCmisException("Could not delete Repository object or Root Folder object - operation is not allowed or not supported", + EnumServiceException.NOT_SUPPORTED); } } - private void checkForReadOnlyProperties(CmisPropertiesType properties) throws ConstraintViolationException + private void checkForReadOnlyProperties(CmisPropertiesType properties) throws CmisException { for (CmisProperty property : properties.getProperty()) { if (PropertyUtil.isReadOnlyRepositoryProperty(property.getName())) { - throw new ConstraintViolationException("The property " + property.getName() + " is Read Only and couldn't be updated"); + throw cmisObjectsUtils.createCmisException(("The property " + property.getName() + " is Read Only and couldn't be updated"), EnumServiceException.CONSTRAINT); } } } - private CmisAllowableActionsType determineObjectAllowableActions(IdentifierConversionResults objectIdentifierContainer) throws OperationNotSupportedException + private void checkVersion(NodeRef currentNode) throws CmisException + { + if (!cmisObjectsUtils.isFolder(currentNode)) + { + NodeRef latestNode = getLatestNode(currentNode, true); + Version currentVersion = versionService.getCurrentVersion(currentNode); + Version latestVersion = versionService.getCurrentVersion(latestNode); + if ((currentVersion != null && latestVersion != null) && (!currentVersion.getVersionLabel().equals(latestVersion.getVersionLabel()))) + { + throw cmisObjectsUtils.createCmisException("Document is a non-current Document Version", EnumServiceException.VERSIONING); + } + } + } + + private void checkPropertyName(CMISTypeDefinition type, String name) throws CmisException + { + CMISPropertyDefinition propertyDefinition = cmisDictionaryService.findProperty(CMISDictionaryModel.PROP_NAME, type); + + if (propertyDefinition.isRequired() && (name == null || name.length() < 1)) + { + throw cmisObjectsUtils.createCmisException("Name property required", EnumServiceException.CONSTRAINT); + } + + if (name != null && (propertyDefinition.getMaximumLength() > 0) && (name.length() > propertyDefinition.getMaximumLength())) + { + throw cmisObjectsUtils.createCmisException("Name is too long", EnumServiceException.CONSTRAINT); + } + } + + private void checkPropertyName(NodeRef node, String name) throws CmisException + { + CMISTypeDefinition type = cmisDictionaryService.findType((String) cmisService.getProperty(node, CMISDictionaryModel.PROP_OBJECT_TYPE_ID)); + checkPropertyName(type, name); + } + + private CmisAllowableActionsType determineObjectAllowableActions(IdentifierConversionResults objectIdentifierContainer) throws CmisException { Object objectNodeReference = objectIdentifierContainer.getConvertedIdentifier(); @@ -742,18 +789,18 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object switch (cmisObjectsUtils.determineObjectType(objectNodeReference.toString())) { - case DOCUMENT: - { - return determineDocumentAllowableActions((NodeRef) objectNodeReference); - } - case FOLDER: - { - return determineFolderAllowableActions((NodeRef) objectNodeReference); - } + case DOCUMENT: + { + return determineDocumentAllowableActions((NodeRef) objectNodeReference); + } + case FOLDER: + { + return determineFolderAllowableActions((NodeRef) objectNodeReference); + } } // TODO: determinePolicyAllowableActions() when Policy functionality is ready - throw new OperationNotSupportedException("It is impossible to get Allowable actions for the specified Object"); + throw cmisObjectsUtils.createCmisException("It is impossible to get Allowable actions for the specified Object", EnumServiceException.NOT_SUPPORTED); } private CmisAllowableActionsType determineBaseAllowableActions(NodeRef objectNodeReference) @@ -816,14 +863,14 @@ public class DMObjectServicePort extends DMAbstractServicePort implements Object return result; } - private void determineException(Throwable lastException) throws PermissionDeniedException, UpdateConflictException + private void determineException(Throwable lastException) throws CmisException { if (lastException instanceof AccessDeniedException) { - throw new PermissionDeniedException(lastException.getMessage()); + throw cmisObjectsUtils.createCmisException(lastException.toString(), EnumServiceException.PERMISSION_DENIED); } - throw new UpdateConflictException("Couldn't to relocate multi-filed Object"); + throw cmisObjectsUtils.createCmisException("Couldn't to relocate multi-filed Object", EnumServiceException.UPDATE_CONFLICT); } - + } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMPolicyServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMPolicyServicePort.java index 25a82e5322..948205e5cd 100755 --- a/source/java/org/alfresco/repo/cmis/ws/DMPolicyServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMPolicyServicePort.java @@ -24,9 +24,11 @@ */ package org.alfresco.repo.cmis.ws; -@javax.jws.WebService(name = "PolicyServicePort", serviceName = "PolicyServicePort", portName = "PolicyServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.PolicyServicePort") + +@javax.jws.WebService(name = "PolicyServicePort", serviceName = "PolicyServicePort", portName = "PolicyServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.PolicyServicePort") public class DMPolicyServicePort extends DMAbstractServicePort implements PolicyServicePort { + private static final String POLICY_NOT_SUPPORTED_MESSAGE = "PolicyService not supported"; /** * Applies a policy object to a target object. @@ -34,38 +36,22 @@ public class DMPolicyServicePort extends DMAbstractServicePort implements Policy * @param repositoryId repository Id * @param policyId policy Id * @param objectId target object Id - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT) */ - public void applyPolicy(String repositoryId, String policyId, String objectId) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, - OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void applyPolicy(String repositoryId, String policyId, String objectId) throws CmisException { - // TODO Auto-generated method stub + throw cmisObjectsUtils.createCmisException(POLICY_NOT_SUPPORTED_MESSAGE, EnumServiceException.NOT_SUPPORTED); } /** * Gets the list of policy objects currently applied to a target object. * * @param parameters repositoryId: repository Id; objectId: target object Id; filter: filter specifying which properties to return - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FilterNotValidException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetAppliedPoliciesResponse getAppliedPolicies(GetAppliedPolicies parameters) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, - ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public GetAppliedPoliciesResponse getAppliedPolicies(GetAppliedPolicies parameters) throws CmisException { - // TODO Auto-generated method stub - return null; + throw cmisObjectsUtils.createCmisException(POLICY_NOT_SUPPORTED_MESSAGE, EnumServiceException.NOT_SUPPORTED); } /** @@ -74,18 +60,10 @@ public class DMPolicyServicePort extends DMAbstractServicePort implements Policy * @param repositoryId repository Id * @param policyId policy Id * @param objectId target object Id. - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT) */ - public void removePolicy(String repositoryId, String policyId, String objectId) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, - OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void removePolicy(String repositoryId, String policyId, String objectId) throws CmisException { - // TODO Auto-generated method stub + throw cmisObjectsUtils.createCmisException(POLICY_NOT_SUPPORTED_MESSAGE, EnumServiceException.NOT_SUPPORTED); } - } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMRelationshipServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMRelationshipServicePort.java index 844dfc3a0a..91076f3210 100755 --- a/source/java/org/alfresco/repo/cmis/ws/DMRelationshipServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMRelationshipServicePort.java @@ -30,7 +30,6 @@ import java.util.List; import org.alfresco.cmis.CMISScope; import org.alfresco.cmis.CMISTypeDefinition; -import org.alfresco.cmis.CMISTypeId; import org.alfresco.repo.cmis.PropertyFilter; import org.alfresco.repo.cmis.ws.utils.AlfrescoObjectType; import org.alfresco.repo.web.util.paging.Cursor; @@ -45,7 +44,7 @@ import org.alfresco.service.namespace.QNamePattern; * * @author Dmitry Velichkevich */ -@javax.jws.WebService(name = "RelationshipServicePort", serviceName = "RelationshipService", portName = "RelationshipServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.RelationshipServicePort") +@javax.jws.WebService(name = "RelationshipServicePort", serviceName = "RelationshipService", portName = "RelationshipServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.RelationshipServicePort") public class DMRelationshipServicePort extends DMAbstractServicePort implements RelationshipServicePort { private DictionaryService dictionaryService; @@ -55,7 +54,6 @@ public class DMRelationshipServicePort extends DMAbstractServicePort implements this.dictionaryService = dictionaryService; } - /** * Gets a list of relationships associated with the object, optionally of a specified relationship type, and optionally in a specified direction. * @@ -63,34 +61,39 @@ public class DMRelationshipServicePort extends DMAbstractServicePort implements * Relationship Type; includeSubRelationshipTypes: false (Default); filter: property filter; includeAllowableActions: false (default); maxItems: 0 = Unlimited; * skipCount: 0 = start at beginning * @return collection of CmisObjectType and boolean hasMoreItems - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FilterNotValidException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws TypeNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetRelationshipsResponse getRelationships(GetRelationships parameters) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, - ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public GetRelationshipsResponse getRelationships(GetRelationships parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); - EnumRelationshipDirection direction = ((parameters.getDirection() != null) && (parameters.getDirection().getValue() != null)) ? parameters.getDirection().getValue() : EnumRelationshipDirection.SOURCE; - Boolean includingSubtypes = ((parameters.getIncludeSubRelationshipTypes() != null) && (parameters.getIncludeSubRelationshipTypes().getValue() != null)) ? parameters.getIncludeSubRelationshipTypes().getValue() : false; + EnumRelationshipDirection direction = ((parameters.getDirection() != null) && (parameters.getDirection().getValue() != null)) ? parameters.getDirection().getValue() + : EnumRelationshipDirection.SOURCE; + Boolean includingSubtypes = ((parameters.getIncludeSubRelationshipTypes() != null) && (parameters.getIncludeSubRelationshipTypes().getValue() != null)) ? parameters + .getIncludeSubRelationshipTypes().getValue() : false; String typeId = ((parameters.getTypeId() != null) && (parameters.getTypeId().getValue() != null)) ? parameters.getTypeId().getValue() : null; BigInteger skipCount = ((parameters.getSkipCount() != null) && (parameters.getSkipCount().getValue() != null)) ? parameters.getSkipCount().getValue() : BigInteger.ZERO; BigInteger maxItems = ((parameters.getMaxItems() != null) && (parameters.getMaxItems().getValue() != null)) ? parameters.getMaxItems().getValue() : BigInteger.ZERO; - CMISTypeDefinition cmisTypeDef = cmisDictionaryService.findType(typeId); - QName associationType = cmisTypeDef.getTypeId().getQName(); + QName associationType = null; + if ((parameters.getTypeId() != null) && (parameters.getTypeId().getValue() != null) && !parameters.getTypeId().getValue().equals("")) + { + CMISTypeDefinition cmisTypeDef = cmisDictionaryService.findType(typeId); + associationType = cmisTypeDef.getTypeId().getQName(); + } + // TODO: process 'includeAllowableActions' param, see DMObjectServicePort->determineObjectAllowableActions PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); NodeRef objectNodeRef = (NodeRef) cmisObjectsUtils.getIdentifierInstance(parameters.getObjectId(), AlfrescoObjectType.DOCUMENT_OR_FOLDER_OBJECT).getConvertedIdentifier(); - List assocs = receiveAssociations(objectNodeRef, associationType, direction, includingSubtypes); - + List assocs = null; + try + { + assocs = receiveAssociations(objectNodeRef, associationType, direction, includingSubtypes); + } + catch (Exception e) + { + throw cmisObjectsUtils.createCmisException("Can't receive associations", e); + } return formatResponse(propertyFilter, assocs.toArray(), new GetRelationshipsResponse(), skipCount, maxItems); } @@ -99,21 +102,20 @@ public class DMRelationshipServicePort extends DMAbstractServicePort implements List result = new LinkedList(); QNamePattern matcher = new RelationshipTypeFilter(relationshipType, includeSubtypes); - if ((direction == EnumRelationshipDirection.BOTH) || (direction == EnumRelationshipDirection.TARGET)) + if ((direction == EnumRelationshipDirection.EITHER) || (direction == EnumRelationshipDirection.TARGET)) { result.addAll(nodeService.getSourceAssocs(objectNodeReference, matcher)); } - if ((direction == EnumRelationshipDirection.BOTH) || (direction == EnumRelationshipDirection.SOURCE)) + if ((direction == EnumRelationshipDirection.EITHER) || (direction == EnumRelationshipDirection.SOURCE)) { result.addAll(nodeService.getTargetAssocs(objectNodeReference, matcher)); } return result; } - + private GetRelationshipsResponse formatResponse(PropertyFilter filter, Object[] sourceArray, GetRelationshipsResponse result, BigInteger skipCount, BigInteger maxItems) - throws InvalidArgumentException, FilterNotValidException { Cursor cursor = createCursor(sourceArray.length, skipCount, maxItems); for (int i = cursor.getStartRow(); i < cursor.getEndRow(); i++) @@ -123,7 +125,6 @@ public class DMRelationshipServicePort extends DMAbstractServicePort implements return result; } - private class RelationshipTypeFilter implements QNamePattern { private boolean includeSubtypes; @@ -152,4 +153,5 @@ public class DMRelationshipServicePort extends DMAbstractServicePort implements } } } + } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java index 60276feb8d..15bb38cd6b 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java @@ -31,10 +31,12 @@ import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedList; import java.util.List; import java.util.Map; import javax.xml.bind.JAXBElement; +import javax.xml.ws.Holder; import org.alfresco.cmis.CMISCardinalityEnum; import org.alfresco.cmis.CMISChoice; @@ -43,6 +45,7 @@ import org.alfresco.cmis.CMISDataTypeEnum; import org.alfresco.cmis.CMISDictionaryModel; import org.alfresco.cmis.CMISJoinEnum; import org.alfresco.cmis.CMISPropertyDefinition; +import org.alfresco.cmis.CMISQueryEnum; import org.alfresco.cmis.CMISTypeDefinition; import org.alfresco.cmis.CMISUpdatabilityEnum; import org.alfresco.repo.web.util.paging.Cursor; @@ -50,34 +53,38 @@ import org.alfresco.service.descriptor.Descriptor; /** * Port for repository service. - * + * * @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") +@javax.jws.WebService(name = "RepositoryServicePort", serviceName = "RepositoryService", portName = "RepositoryServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.RepositoryServicePort") public class DMRepositoryServicePort extends DMAbstractServicePort implements RepositoryServicePort { private static Map joinEnumMapping; private static Map contentStreamAllowedEnumMapping; - private static Map updatabilityEnumMapping; + private static Map updatabilityEnumMapping; private static Map cardinalityEnumMapping; private static Map propertyTypeEnumMapping; + private static HashMap queryTypeEnumMapping; + + // TODO: Hardcoded! should be reteived using standart mechanism + private String repositoryUri = " http://localhost:8080/alfresco/cmis"; static { joinEnumMapping = new HashMap(); joinEnumMapping.put(CMISJoinEnum.INNER_AND_OUTER_JOIN_SUPPORT, EnumCapabilityJoin.INNERANDOUTER); joinEnumMapping.put(CMISJoinEnum.INNER_JOIN_SUPPORT, EnumCapabilityJoin.INNERONLY); - joinEnumMapping.put(CMISJoinEnum.NO_JOIN_SUPPORT, EnumCapabilityJoin.NOJOIN); + joinEnumMapping.put(CMISJoinEnum.NO_JOIN_SUPPORT, EnumCapabilityJoin.NONE); contentStreamAllowedEnumMapping = new HashMap(); contentStreamAllowedEnumMapping.put(CMISContentStreamAllowedEnum.ALLOWED, EnumContentStreamAllowed.ALLOWED); contentStreamAllowedEnumMapping.put(CMISContentStreamAllowedEnum.NOT_ALLOWED, EnumContentStreamAllowed.NOTALLOWED); contentStreamAllowedEnumMapping.put(CMISContentStreamAllowedEnum.REQUIRED, EnumContentStreamAllowed.REQUIRED); - updatabilityEnumMapping = new HashMap(); - updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_AND_WRITE, EnumUpdateability.READWRITE); - updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_AND_WRITE_WHEN_CHECKED_OUT, EnumUpdateability.WHENCHECKEDOUT); - updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_ONLY, EnumUpdateability.READONLY); + updatabilityEnumMapping = new HashMap(); + updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_AND_WRITE, EnumUpdatability.READWRITE); + updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_AND_WRITE_WHEN_CHECKED_OUT, EnumUpdatability.WHENCHECKEDOUT); + updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_ONLY, EnumUpdatability.READONLY); cardinalityEnumMapping = new HashMap(); cardinalityEnumMapping.put(CMISCardinalityEnum.MULTI_VALUED, EnumCardinality.MULTI); @@ -93,25 +100,29 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re propertyTypeEnumMapping.put(CMISDataTypeEnum.STRING, EnumPropertyType.STRING); propertyTypeEnumMapping.put(CMISDataTypeEnum.URI, EnumPropertyType.URI); propertyTypeEnumMapping.put(CMISDataTypeEnum.XML, EnumPropertyType.XML); + + queryTypeEnumMapping = new HashMap(); + queryTypeEnumMapping.put(CMISQueryEnum.BOTH_COMBINED, EnumCapabilityQuery.BOTHCOMBINED); + queryTypeEnumMapping.put(CMISQueryEnum.BOTH_SEPERATE, EnumCapabilityQuery.BOTHSEPARATE); + queryTypeEnumMapping.put(CMISQueryEnum.FULLTEXT_ONLY, EnumCapabilityQuery.FULLTEXTONLY); + queryTypeEnumMapping.put(CMISQueryEnum.METADATA_ONLY, EnumCapabilityQuery.METADATAONLY); + queryTypeEnumMapping.put(CMISQueryEnum.NONE, EnumCapabilityQuery.NONE); } /** * Gets a list of available repositories for this CMIS service endpoint. * * @return collection of CmisRepositoryEntryType (repositoryId - repository Id, repositoryName: repository name, repositoryURI: Repository URI) - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public List getRepositories() - throws RuntimeException, InvalidArgumentException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException + public List getRepositories() throws CmisException { CmisRepositoryEntryType repositoryEntryType = new CmisRepositoryEntryType(); Descriptor serverDescriptor = descriptorService.getCurrentRepositoryDescriptor(); - repositoryEntryType.setRepositoryID(serverDescriptor.getId()); + repositoryEntryType.setRepositoryId(serverDescriptor.getId()); repositoryEntryType.setRepositoryName(serverDescriptor.getName()); + // TODO: Hardcoded! repositoryUri should be reteived using standart mechanism + repositoryEntryType.setRepositoryURI(repositoryUri); return Collections.singletonList(repositoryEntryType); } @@ -120,18 +131,11 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re * * @param parameters repositoryId: repository Id * @return CMIS repository Info - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public CmisRepositoryInfoType getRepositoryInfo(GetRepositoryInfo parameters) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public CmisRepositoryInfoType getRepositoryInfo(String repositoryId) throws CmisException { - checkRepositoryId(parameters.getRepositoryId()); + checkRepositoryId(repositoryId); Descriptor serverDescriptor = descriptorService.getCurrentRepositoryDescriptor(); CmisRepositoryInfoType repositoryInfoType = new CmisRepositoryInfoType(); @@ -139,27 +143,27 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re repositoryInfoType.setRepositoryName(serverDescriptor.getName()); repositoryInfoType.setRepositoryRelationship("self"); repositoryInfoType.setRepositoryDescription(""); - repositoryInfoType.setRootFolderId((String) cmisService.getProperty(cmisService.getDefaultRootNodeRef(), CMISDictionaryModel.PROP_OBJECT_ID)); repositoryInfoType.setVendorName("Alfresco"); repositoryInfoType.setProductName("Alfresco Repository (" + serverDescriptor.getEdition() + ")"); repositoryInfoType.setProductVersion(serverDescriptor.getVersion()); - + repositoryInfoType.setRootFolderId((String) cmisService.getProperty(cmisService.getDefaultRootNodeRef(), CMISDictionaryModel.PROP_OBJECT_ID)); CmisRepositoryCapabilitiesType capabilities = new CmisRepositoryCapabilitiesType(); capabilities.setCapabilityMultifiling(true); capabilities.setCapabilityUnfiling(false); capabilities.setCapabilityVersionSpecificFiling(false); capabilities.setCapabilityPWCUpdateable(true); + capabilities.setCapabilityPWCSearchable(cmisQueryService.getPwcSearchable()); capabilities.setCapabilityAllVersionsSearchable(cmisQueryService.getAllVersionsSearchable()); + capabilities.setCapabilityQuery(queryTypeEnumMapping.get(cmisQueryService.getQuerySupport())); capabilities.setCapabilityJoin(joinEnumMapping.get(cmisQueryService.getJoinSupport())); repositoryInfoType.setCapabilities(capabilities); - - repositoryInfoType.setCmisVersionsSupported(cmisService.getCMISVersion()); + repositoryInfoType.setCmisVersionSupported(cmisService.getCMISVersion()); return repositoryInfoType; } /** * Create web service choice object from repository choice object - * + * * @param choice repository choice * @param propertyType type of property * @return web service choice @@ -170,54 +174,48 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re switch (propertyType) { - case BOOLEAN: - CmisChoiceBooleanType choiceBooleanType = new CmisChoiceBooleanType(); - choiceBooleanType.setIndex(BigInteger.valueOf(choice.getIndex())); - choiceBooleanType.setKey(choice.getName()); - choiceBooleanType.setValue((Boolean) choice.getValue()); - result = cmisObjectFactory.createChoiceBoolean(choiceBooleanType); - break; - case DATETIME: - CmisChoiceDateTimeType choiceDateTimeType = new CmisChoiceDateTimeType(); - choiceDateTimeType.setIndex(BigInteger.valueOf(choice.getIndex())); - choiceDateTimeType.setKey(choice.getName()); - choiceDateTimeType.setValue(convert((Date) choice.getValue())); - result = cmisObjectFactory.createChoiceDateTime(choiceDateTimeType); - break; - case DECIMAL: - CmisChoiceDecimalType choiceDecimalType = new CmisChoiceDecimalType(); - choiceDecimalType.setIndex(BigInteger.valueOf(choice.getIndex())); - choiceDecimalType.setKey(choice.getName()); - choiceDecimalType.setValue(BigDecimal.valueOf((Double) choice.getValue())); - result = cmisObjectFactory.createChoiceDecimal(choiceDecimalType); - break; - case HTML: - break; - case ID: - CmisChoiceIdType choiceIdType = new CmisChoiceIdType(); - choiceIdType.setIndex(BigInteger.valueOf(choice.getIndex())); - choiceIdType.setKey(choice.getName()); - choiceIdType.setValue((String) choice.getValue()); - result = cmisObjectFactory.createChoiceId(choiceIdType); - break; - case INTEGER: - CmisChoiceIntegerType choiceIntegerType = new CmisChoiceIntegerType(); - choiceIntegerType.setIndex(BigInteger.valueOf(choice.getIndex())); - choiceIntegerType.setKey(choice.getName()); - choiceIntegerType.setValue(BigInteger.valueOf((Integer) choice.getValue())); - result = cmisObjectFactory.createChoiceInteger(choiceIntegerType); - break; - case STRING: - CmisChoiceStringType choiceStringType = new CmisChoiceStringType(); - choiceStringType.setIndex(BigInteger.valueOf(choice.getIndex())); - choiceStringType.setKey(choice.getName()); - choiceStringType.setValue((String) choice.getValue()); - result = cmisObjectFactory.createChoiceString(choiceStringType); - break; - case URI: - break; - case XML: - break; + case BOOLEAN: + CmisChoiceBooleanType choiceBooleanType = new CmisChoiceBooleanType(); + choiceBooleanType.setKey(choice.getName()); + choiceBooleanType.getValue().add(Boolean.parseBoolean(choice.getValue().toString())); + result = cmisObjectFactory.createChoiceBoolean(choiceBooleanType); + break; + case DATETIME: + CmisChoiceDateTimeType choiceDateTimeType = new CmisChoiceDateTimeType(); + choiceDateTimeType.setKey(choice.getName()); + choiceDateTimeType.getValue().add(convert((Date) choice.getValue())); + result = cmisObjectFactory.createChoiceDateTime(choiceDateTimeType); + break; + case DECIMAL: + CmisChoiceDecimalType choiceDecimalType = new CmisChoiceDecimalType(); + choiceDecimalType.setKey(choice.getName()); + choiceDecimalType.getValue().add(BigDecimal.valueOf(Double.parseDouble(choice.getValue().toString()))); + result = cmisObjectFactory.createChoiceDecimal(choiceDecimalType); + break; + case HTML: + break; + case ID: + CmisChoiceIdType choiceIdType = new CmisChoiceIdType(); + choiceIdType.setKey(choice.getName()); + choiceIdType.getValue().add(choice.getValue().toString()); + result = cmisObjectFactory.createChoiceId(choiceIdType); + break; + case INTEGER: + CmisChoiceIntegerType choiceIntegerType = new CmisChoiceIntegerType(); + choiceIntegerType.setKey(choice.getName()); + choiceIntegerType.getValue().add(BigInteger.valueOf(Integer.parseInt(choice.getValue().toString()))); + result = cmisObjectFactory.createChoiceInteger(choiceIntegerType); + break; + case STRING: + CmisChoiceStringType choiceStringType = new CmisChoiceStringType(); + choiceStringType.setKey(choice.getName()); + choiceStringType.getValue().add(choice.getValue().toString()); + result = cmisObjectFactory.createChoiceString(choiceStringType); + break; + case URI: + break; + case XML: + break; } return result; @@ -225,7 +223,7 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re /** * Add choices childrens to list of JAXBElements - * + * * @param propertyType type of property * @param choices repository choice object * @param cmisChoices web service choice object @@ -246,11 +244,12 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re /** * Add root choices to list of choices - * + * * @param propertyType type of property * @param choices repository choice object * @param cmisChoices web service choice object */ + @SuppressWarnings("unused") private void addChoices(CMISDataTypeEnum propertyType, Collection choices, List cmisChoices) { for (CMISChoice choice : choices) @@ -267,20 +266,21 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re /** * Add property definitions to list of definitions - * + * * @param propertyDefinition repository property definition * @param wsPropertyDefs web service property definition */ private void addPropertyDefs(CMISTypeDefinition typeDefinition, CMISPropertyDefinition propertyDefinition, List wsPropertyDefs) + throws CmisException { - CmisPropertyDefinitionType wsPropertyDef = new CmisPropertyDefinitionType(); + CmisPropertyDefinitionType wsPropertyDef = createPropertyDefinitionType(propertyDefinition.getDataType()); wsPropertyDef.setName(propertyDefinition.getPropertyId().getName()); wsPropertyDef.setId(propertyDefinition.getPropertyId().getId()); wsPropertyDef.setDisplayName(propertyDefinition.getDisplayName()); wsPropertyDef.setDescription(propertyDefinition.getDescription()); wsPropertyDef.setPropertyType(propertyTypeEnumMapping.get(propertyDefinition.getDataType())); wsPropertyDef.setCardinality(cardinalityEnumMapping.get(propertyDefinition.getCardinality())); - wsPropertyDef.setUpdateability(updatabilityEnumMapping.get(propertyDefinition.getUpdatability())); + wsPropertyDef.setUpdatability(updatabilityEnumMapping.get(propertyDefinition.getUpdatability())); wsPropertyDef.setInherited(!typeDefinition.getOwnedPropertyDefinitions().containsKey(propertyDefinition.getPropertyId())); wsPropertyDef.setRequired(propertyDefinition.isRequired()); wsPropertyDef.setQueryable(propertyDefinition.isQueryable()); @@ -291,19 +291,67 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re wsPropertyDefs.add(wsPropertyDef); } + private CmisPropertyDefinitionType createPropertyDefinitionType(CMISDataTypeEnum type) throws CmisException + { + switch (type) + { + case BOOLEAN: + { + return new CmisPropertyBooleanDefinitionType(); + } + case DATETIME: + { + return new CmisPropertyDateTimeDefinitionType(); + } + case DECIMAL: + { + return new CmisPropertyDecimalDefinitionType(); + } + case HTML: + { + return new CmisPropertyHtmlDefinitionType(); + } + case ID: + { + return new CmisPropertyIdDefinitionType(); + } + case INTEGER: + { + return new CmisPropertyIntegerDefinitionType(); + } + case STRING: + { + return new CmisPropertyStringDefinitionType(); + } + case URI: + { + return new CmisPropertyUriDefinitionType(); + } + case XML: + { + return new CmisPropertyXmlDefinitionType(); + } + default: + { + throw cmisObjectsUtils.createCmisException(type.getLabel(), EnumServiceException.OBJECT_NOT_FOUND); + } + } + } + /** * Set properties for web service type definition - * + * * @param cmisTypeDefinition web service type definition * @param typeDefinition repository type definition * @param includeProperties true if need property definitions for type definition */ - private void setCmisTypeDefinitionProperties(CmisTypeDefinitionType cmisTypeDefinition, CMISTypeDefinition typeDefinition, boolean includeProperties) + @SuppressWarnings("unused") + private void setCmisTypeDefinitionProperties(CmisTypeDefinitionType cmisTypeDefinition, CMISTypeDefinition typeDefinition, boolean includeProperties) throws CmisException { cmisTypeDefinition.setTypeId(typeDefinition.getTypeId().getId()); cmisTypeDefinition.setQueryName(typeDefinition.getQueryName()); cmisTypeDefinition.setDisplayName(typeDefinition.getDisplayName()); - cmisTypeDefinition.setBaseType(EnumObjectType.fromValue(typeDefinition.getBaseType().getTypeId().getId())); + cmisTypeDefinition.setBaseType(EnumBaseObjectType.fromValue(typeDefinition.getBaseType().getTypeId().getId())); cmisTypeDefinition.setParentId(typeDefinition.getParentType().getTypeId().getId()); cmisTypeDefinition.setBaseTypeQueryName(typeDefinition.getBaseType().getQueryName()); cmisTypeDefinition.setDescription(typeDefinition.getDescription()); @@ -325,13 +373,13 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re /** * Create web service type definition for typeId - * + * * @param typeId type id * @param includeProperties true if need property definitions for type definition * @return web service type definition - * @throws ObjectNotFoundException if type id not found + * @throws CmisException if type id not found */ - private JAXBElement getCmisTypeDefinition(CMISTypeDefinition typeDef, boolean includeProperties) throws ObjectNotFoundException + private CmisTypeDefinitionType getCmisTypeDefinition(CMISTypeDefinition typeDef, boolean includeProperties) throws CmisException { if (typeDef.getParentType() == null) { @@ -340,40 +388,40 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re if (typeDef == null) { - throw new ObjectNotFoundException("Type not found"); + throw cmisObjectsUtils.createCmisException("Type not found", EnumServiceException.OBJECT_NOT_FOUND); } JAXBElement result = null; switch (typeDef.getTypeId().getScope()) { - case DOCUMENT: - CmisTypeDocumentDefinitionType documentDefinitionType = new CmisTypeDocumentDefinitionType(); - setCmisTypeDefinitionProperties(documentDefinitionType, typeDef, includeProperties); - documentDefinitionType.setVersionable(typeDef.isVersionable()); - documentDefinitionType.setContentStreamAllowed(contentStreamAllowedEnumMapping.get(typeDef.getContentStreamAllowed())); - result = cmisObjectFactory.createDocumentType(documentDefinitionType); - break; - case FOLDER: - CmisTypeFolderDefinitionType folderDefinitionType = new CmisTypeFolderDefinitionType(); - setCmisTypeDefinitionProperties(folderDefinitionType, typeDef, includeProperties); - result = cmisObjectFactory.createFolderType(folderDefinitionType); - break; - case POLICY: - CmisTypePolicyDefinitionType policyDefinitionType = new CmisTypePolicyDefinitionType(); - setCmisTypeDefinitionProperties(policyDefinitionType, typeDef, includeProperties); - result = cmisObjectFactory.createPolicyType(policyDefinitionType); - break; - case RELATIONSHIP: - CmisTypeRelationshipDefinitionType relationshipDefinitionType = new CmisTypeRelationshipDefinitionType(); - setCmisTypeDefinitionProperties(relationshipDefinitionType, typeDef, includeProperties); - result = cmisObjectFactory.createRelationshipType(relationshipDefinitionType); - break; - case UNKNOWN: - throw new ObjectNotFoundException("Unknown CMIS Type"); + case DOCUMENT: + CmisTypeDocumentDefinitionType documentDefinitionType = new CmisTypeDocumentDefinitionType(); + setCmisTypeDefinitionProperties(documentDefinitionType, typeDef, includeProperties); + documentDefinitionType.setVersionable(typeDef.isVersionable()); + documentDefinitionType.setContentStreamAllowed(contentStreamAllowedEnumMapping.get(typeDef.getContentStreamAllowed())); + result = cmisObjectFactory.createDocumentType(documentDefinitionType); + break; + case FOLDER: + CmisTypeFolderDefinitionType folderDefinitionType = new CmisTypeFolderDefinitionType(); + setCmisTypeDefinitionProperties(folderDefinitionType, typeDef, includeProperties); + result = cmisObjectFactory.createFolderType(folderDefinitionType); + break; + case POLICY: + CmisTypePolicyDefinitionType policyDefinitionType = new CmisTypePolicyDefinitionType(); + setCmisTypeDefinitionProperties(policyDefinitionType, typeDef, includeProperties); + result = cmisObjectFactory.createPolicyType(policyDefinitionType); + break; + case RELATIONSHIP: + CmisTypeRelationshipDefinitionType relationshipDefinitionType = new CmisTypeRelationshipDefinitionType(); + setCmisTypeDefinitionProperties(relationshipDefinitionType, typeDef, includeProperties); + result = cmisObjectFactory.createRelationshipType(relationshipDefinitionType); + break; + case UNKNOWN: + throw new CmisException("Unknown CMIS Type"); } - return result; + return result.getValue(); } /** @@ -381,58 +429,50 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re * * @param parameters repositoryId: repository Id; typeId: type Id; returnPropertyDefinitions: false (default); maxItems: 0 = Repository-default number of items(Default); * skipCount: 0 = start; - * @return collection of CmisTypeDefinitionType and boolean hasMoreItems - * @throws RuntimeException - * @throws InvalidArgumentException - * @throws ObjectNotFoundException - * @throws ConstraintViolationException - * @throws OperationNotSupportedException - * @throws UpdateConflictException - * @throws PermissionDeniedException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public GetTypesResponse getTypes(GetTypes parameters) - throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException + public void getTypes(String repositoryId, String typeId, Boolean returnPropertyDefinitions, BigInteger maxItems, BigInteger skipCount, + Holder> type, Holder hasMoreItems) throws CmisException { - checkRepositoryId(parameters.getRepositoryId()); + checkRepositoryId(repositoryId); Collection typeDefs; - if (parameters.getTypeId() == null) + if ((typeId == null) || typeId.equals("")) { typeDefs = cmisDictionaryService.getAllTypes(); } else { - CMISTypeDefinition typeDef = cmisDictionaryService.findType(parameters.getTypeId().getValue()); + CMISTypeDefinition typeDef = cmisDictionaryService.findType(typeId); typeDefs = typeDef.getSubTypes(true); } - GetTypesResponse response = new GetTypesResponse(); - if (parameters.getMaxItems() != null) + if (maxItems != null) { - response.setHasMoreItems(parameters.getMaxItems().getValue().intValue() < typeDefs.size()); + hasMoreItems.value = new Boolean((skipCount.intValue() + maxItems.intValue()) < typeDefs.size()); } // skip - Cursor cursor = createCursor(typeDefs.size(), parameters.getSkipCount() != null ? parameters.getSkipCount().getValue() : null, parameters.getMaxItems() != null ? parameters.getMaxItems().getValue() : null); + Cursor cursor = createCursor(typeDefs.size(), skipCount, maxItems); Iterator iterTypeDefs = typeDefs.iterator(); for (int i = 0; i < cursor.getStartRow(); i++) { iterTypeDefs.next(); } - boolean returnPropertyDefinitions = parameters.getReturnPropertyDefinitions() == null ? false : parameters.getReturnPropertyDefinitions().getValue(); + boolean returnPropertyDefinitionsVal = returnPropertyDefinitions == null ? false : returnPropertyDefinitions.booleanValue(); - List> types = response.getType(); + type.value = new LinkedList(); for (int i = cursor.getStartRow(); i <= cursor.getEndRow(); i++) { - JAXBElement element = getCmisTypeDefinition(iterTypeDefs.next(), returnPropertyDefinitions); + CmisTypeDefinitionType element = getCmisTypeDefinition(iterTypeDefs.next(), returnPropertyDefinitionsVal); if (element != null) { - types.add(element); + type.value.add(element); } } - return response; + hasMoreItems.value = ((skipCount == null) || (maxItems == null)) ? (false) : ((cursor.getEndRow() < typeDefs.size())); } /** @@ -440,24 +480,13 @@ public class DMRepositoryServicePort extends DMAbstractServicePort implements Re * * @param parameters repositoryId: repository Id; typeId: type Id; * @return CMIS type definition - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws TypeNotFoundException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public GetTypeDefinitionResponse getTypeDefinition(GetTypeDefinition parameters) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public CmisTypeDefinitionType getTypeDefinition(String repositoryId, String typeId) throws CmisException { - checkRepositoryId(parameters.getRepositoryId()); - - GetTypeDefinitionResponse response = new GetTypeDefinitionResponse(); - CMISTypeDefinition typeDef = cmisDictionaryService.findType(parameters.getTypeId()); - response.setType(getCmisTypeDefinition(typeDef, true)); - return response; + checkRepositoryId(repositoryId); + CMISTypeDefinition typeDef = cmisDictionaryService.findType(typeId); + return getCmisTypeDefinition(typeDef, true); } } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java index c7d087d335..ca62c92ddc 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java @@ -24,6 +24,7 @@ */ package org.alfresco.repo.cmis.ws; +import org.alfresco.repo.cmis.ws.utils.CmisObjectsUtils; import org.alfresco.repo.security.permissions.AccessDeniedException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -37,27 +38,49 @@ import org.springframework.aop.ThrowsAdvice; */ public class DMServicePortThrowsAdvice implements ThrowsAdvice { - private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + private static final Log LOGGER = LogFactory.getLog("org.alfresco.repo.cmis.ws"); - public void afterThrowing(AccessDeniedException e) - throws PermissionDeniedException + private CmisObjectsUtils cmisObjectsUtils; + + public void setCmisObjectsUtils(CmisObjectsUtils cmisObjectsUtils) { - if (log.isInfoEnabled()) - { - log.info(e); - } - - throw new PermissionDeniedException("Access denied. Message: " + e.getMessage(), e); + this.cmisObjectsUtils = cmisObjectsUtils; } - public void afterThrowing(java.lang.RuntimeException e) - throws RuntimeException + public void afterThrowing(AccessDeniedException e) throws CmisException { - if (log.isErrorEnabled()) + if (LOGGER.isInfoEnabled()) { - log.error(e); + LOGGER.error(e.toString(), e); } - throw new RuntimeException("Runtime error. Message: " + e.getMessage(), e); + throw cmisObjectsUtils.createCmisException(("Access denied. Message: " + e.toString()), e); + } + + public void afterThrowing(java.lang.RuntimeException e) throws CmisException + { + if (LOGGER.isErrorEnabled()) + { + LOGGER.error(e.toString(), e); + } + + throw cmisObjectsUtils.createCmisException(("Runtime error. Message: " + e.toString()), e); + } + + public void afterThrowing(java.lang.Exception e) throws CmisException + { + if (LOGGER.isInfoEnabled()) + { + LOGGER.error(e.toString(), e); + } + + if (!(e instanceof CmisException)) + { + throw cmisObjectsUtils.createCmisException(("Some error occured during last service invokation. Message: " + e.toString()), e); + } + else + { + throw (CmisException) e; + } } } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMVersioningServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMVersioningServicePort.java index 511bdaec0f..c9e900f4a4 100755 --- a/source/java/org/alfresco/repo/cmis/ws/DMVersioningServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMVersioningServicePort.java @@ -24,6 +24,7 @@ */ package org.alfresco.repo.cmis.ws; +import java.io.Serializable; import java.util.List; import javax.xml.ws.Holder; @@ -46,7 +47,7 @@ import org.alfresco.service.cmr.version.VersionType; * @author Dmitry Lazurkin * @author Dmitry Velichkevich */ -@javax.jws.WebService(name = "VersioningServicePort", serviceName = "VersioningService", portName = "VersioningServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.VersioningServicePort") +@javax.jws.WebService(name = "VersioningServicePort", serviceName = "VersioningService", portName = "VersioningServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200901", endpointInterface = "org.alfresco.repo.cmis.ws.VersioningServicePort") public class DMVersioningServicePort extends DMAbstractServicePort implements VersioningServicePort { private LockService lockService; @@ -56,22 +57,16 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve this.lockService = lockService; } - /** * Reverses the effect of a check-out. Removes the private working copy of the checked-out document object, allowing other documents in the version series to be checked out * again. * * @param repositoryId repository Id * @param documentId document Id - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, + * UPDATE_CONFLICT, VERSIONING) */ - public void cancelCheckOut(String repositoryId, String documentId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException + public void cancelCheckOut(String repositoryId, String documentId) throws CmisException { checkRepositoryId(repositoryId); NodeRef workingCopyNodeRef = cmisObjectsUtils.getIdentifierInstance(documentId, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); @@ -88,18 +83,11 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve * @param properties CMIS properties * @param contentStream content stream * @param checkinComment check in comment - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws StorageException - * @throws StreamNotSupportedException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE, + * STREAM_NOT_SUPPORTED, UPDATE_CONFLICT, VERSIONING) */ public void checkIn(String repositoryId, Holder documentId, Boolean major, CmisPropertiesType properties, CmisContentStreamType contentStream, String checkinComment) - throws PermissionDeniedException, UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + throws CmisException { checkRepositoryId(repositoryId); NodeRef workingCopyNodeRef = cmisObjectsUtils.getIdentifierInstance(documentId.value, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); @@ -115,16 +103,17 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve } catch (Exception e) { - throw new RuntimeException("Exception while updating content stream"); + throw cmisObjectsUtils.createCmisException("Exception while updating content stream", EnumServiceException.RUNTIME, e); } } + NodeRef nodeRef = checkOutCheckInService.checkin(workingCopyNodeRef, + createVersionProperties(checkinComment, major != null && major ? VersionType.MAJOR : VersionType.MINOR)); + if (properties != null) { - setProperties(workingCopyNodeRef, properties); + setProperties(nodeRef, properties); } - - NodeRef nodeRef = checkOutCheckInService.checkin(workingCopyNodeRef, createVersionProperties(checkinComment, major != null && major ? VersionType.MAJOR : VersionType.MINOR)); documentId.value = (String) cmisService.getProperty(nodeRef, CMISDictionaryModel.PROP_OBJECT_ID); } @@ -135,16 +124,10 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve * @param documentId ObjectID of document version to checkout * @param contentCopied * @return ObjectID of private working copy as documentId; True if succeed, False otherwise as contentCopied - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT, STORAGE, + * UPDATE_CONFLICT, VERSIONING) */ - public void checkOut(String repositoryId, Holder documentId, Holder contentCopied) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void checkOut(String repositoryId, Holder documentId, Holder contentCopied) throws CmisException { checkRepositoryId(repositoryId); @@ -153,7 +136,7 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve if (lockStatus.equals(LockStatus.LOCKED) || lockStatus.equals(LockStatus.LOCK_OWNER) || nodeService.hasAspect(documentNodeRef, ContentModel.ASPECT_WORKING_COPY)) { - throw new OperationNotSupportedException("Object is already checked out"); + throw cmisObjectsUtils.createCmisException("Object is already checked out", EnumServiceException.NOT_SUPPORTED); } NodeRef pwcNodeRef = checkoutNode(documentNodeRef); @@ -166,16 +149,9 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve * * @param repositoryId repository Id * @param versionSeriesId version series Id - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME) */ - public void deleteAllVersions(String repositoryId, String versionSeriesId) - throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public void deleteAllVersions(String repositoryId, String versionSeriesId) throws CmisException { checkRepositoryId(repositoryId); NodeRef documentNodeRef = cmisObjectsUtils.getIdentifierInstance(versionSeriesId, AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); @@ -187,17 +163,9 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve * * @param parameters repositoryId: repository Id; versionSeriesId: version series Id; filter: property filter; includeAllowableActions; includeRelationships; * @return list of CmisObjectType - * @throws PermissionDeniedException - * @throws UpdateConflictException - * @throws FilterNotValidException - * @throws ObjectNotFoundException - * @throws OperationNotSupportedException - * @throws InvalidArgumentException - * @throws RuntimeException - * @throws ConstraintViolationException + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetAllVersionsResponse getAllVersions(GetAllVersions parameters) - throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + public GetAllVersionsResponse getAllVersions(GetAllVersions parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); @@ -234,9 +202,9 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve * @param parameters repositoryId: repository Id; versionSeriesId: version series Id; majorVersion: whether or not to return the latest major version. Default=FALSE; filter: * property filter * @return CmisObjectType with properties + * @throws CmisException (with following {@link EnumServiceException} : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID) */ - public GetPropertiesOfLatestVersionResponse getPropertiesOfLatestVersion(GetPropertiesOfLatestVersion parameters) - throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException + public GetPropertiesOfLatestVersionResponse getPropertiesOfLatestVersion(GetPropertiesOfLatestVersion parameters) throws CmisException { checkRepositoryId(parameters.getRepositoryId()); PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); @@ -244,10 +212,15 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve NodeRef documentNodeRef = cmisObjectsUtils.getIdentifierInstance(parameters.getVersionSeriesId(), AlfrescoObjectType.DOCUMENT_OBJECT).getConvertedIdentifier(); NodeRef latestVersionNodeRef = getLatestNode(documentNodeRef, parameters.isMajorVersion()); + Serializable property = cmisService.getProperty(latestVersionNodeRef, CMISDictionaryModel.PROP_IS_MAJOR_VERSION); + if (parameters.isMajorVersion() && ((property == null) || !((Boolean)property))) + { + throw cmisObjectsUtils.createCmisException("Object that was specified has no latest major version", EnumServiceException.OBJECT_NOT_FOUND); + } + GetPropertiesOfLatestVersionResponse response = new GetPropertiesOfLatestVersionResponse(); response.setObject(new CmisObjectType()); - CmisObjectType object = response.getObject(); - object.setProperties(getPropertiesType(latestVersionNodeRef.toString(), propertyFilter)); + response.getObject().setProperties(getPropertiesType(latestVersionNodeRef.toString(), propertyFilter)); return response; } @@ -261,11 +234,11 @@ public class DMVersioningServicePort extends DMAbstractServicePort implements Ve } } - private void assertWorkingCopy(NodeRef nodeRef) throws OperationNotSupportedException + private void assertWorkingCopy(NodeRef nodeRef) throws CmisException { if (!cmisObjectsUtils.isWorkingCopy(nodeRef)) { - throw new OperationNotSupportedException("Object isn't checked out"); + throw cmisObjectsUtils.createCmisException("Object isn't checked out", EnumServiceException.NOT_SUPPORTED); } } } diff --git a/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java b/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java index cd8c76270d..6912f4391b 100755 --- a/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java +++ b/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java @@ -129,30 +129,36 @@ public class PropertyUtil if (cmisProperty instanceof CmisPropertyBoolean) { - value = ((CmisPropertyBoolean) cmisProperty).isValue(); + value = ((CmisPropertyBoolean) cmisProperty).getValue() != null && ((CmisPropertyBoolean) cmisProperty).getValue().size() > 0 ? ((CmisPropertyBoolean) cmisProperty) + .getValue().get(0) : null; } else if (cmisProperty instanceof CmisPropertyDateTime) { -// value = ((CmisPropertyDateTime) cmisProperty).getValue().; + value = ((CmisPropertyDateTime) cmisProperty).getValue() != null && ((CmisPropertyDateTime) cmisProperty).getValue().size() > 0 ? ((CmisPropertyDateTime) cmisProperty) + .getValue().get(0).toXMLFormat() : null; } else if (cmisProperty instanceof CmisPropertyDecimal) { - value = ((CmisPropertyDecimal) cmisProperty).getValue().doubleValue(); + value = ((CmisPropertyDecimal) cmisProperty).getValue() != null && ((CmisPropertyDecimal) cmisProperty).getValue().size() > 0 ? ((CmisPropertyDecimal) cmisProperty) + .getValue().get(0) : null; } else if (cmisProperty instanceof CmisPropertyHtml) { } else if (cmisProperty instanceof CmisPropertyId) { - value = ((CmisPropertyId) cmisProperty).getValue(); + value = ((CmisPropertyId) cmisProperty).getValue() != null && ((CmisPropertyId) cmisProperty).getValue().size() > 0 ? ((CmisPropertyId) cmisProperty).getValue().get(0) + : null; } else if (cmisProperty instanceof CmisPropertyInteger) { - value = ((CmisPropertyInteger) cmisProperty).getValue(); + value = ((CmisPropertyInteger) cmisProperty).getValue() != null && ((CmisPropertyInteger) cmisProperty).getValue().size() > 0 ? ((CmisPropertyInteger) cmisProperty) + .getValue().get(0) : null; } else if (cmisProperty instanceof CmisPropertyString) { - value = ((CmisPropertyString) cmisProperty).getValue(); + value = ((CmisPropertyString) cmisProperty).getValue() != null && ((CmisPropertyString) cmisProperty).getValue().size() > 0 ? ((CmisPropertyString) cmisProperty) + .getValue().get(0) : null; } else if (cmisProperty instanceof CmisPropertyUri) { diff --git a/source/java/org/alfresco/repo/cmis/ws/utils/CmisObjectsUtils.java b/source/java/org/alfresco/repo/cmis/ws/utils/CmisObjectsUtils.java index c4b426bb82..8256b5fd36 100755 --- a/source/java/org/alfresco/repo/cmis/ws/utils/CmisObjectsUtils.java +++ b/source/java/org/alfresco/repo/cmis/ws/utils/CmisObjectsUtils.java @@ -24,20 +24,23 @@ */ package org.alfresco.repo.cmis.ws.utils; +import java.math.BigInteger; +import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Map; import org.alfresco.cmis.CMISDictionaryService; import org.alfresco.cmis.CMISScope; import org.alfresco.cmis.CMISTypeDefinition; -import org.alfresco.cmis.CMISTypeId; import org.alfresco.model.ContentModel; +import org.alfresco.repo.cmis.ws.CmisException; +import org.alfresco.repo.cmis.ws.CmisFaultType; import org.alfresco.repo.cmis.ws.EnumObjectType; -import org.alfresco.repo.cmis.ws.InvalidArgumentException; -import org.alfresco.repo.cmis.ws.ObjectNotFoundException; -import org.alfresco.repo.cmis.ws.OperationNotSupportedException; +import org.alfresco.repo.cmis.ws.EnumServiceException; import org.alfresco.repo.cmis.ws.utils.DescendantsQueueManager.DescendantElement; import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.repo.security.permissions.AccessDeniedException; import org.alfresco.service.cmr.coci.CheckOutCheckInService; import org.alfresco.service.cmr.lock.LockService; import org.alfresco.service.cmr.lock.LockStatus; @@ -67,6 +70,15 @@ public class CmisObjectsUtils DOCUMENT_AND_FOLDER_TYPES.add(ContentModel.TYPE_FOLDER); } + private static final Map CLASS_TO_ENUM_EXCEPTION_MAPPING; + static + { + CLASS_TO_ENUM_EXCEPTION_MAPPING = new HashMap(); + CLASS_TO_ENUM_EXCEPTION_MAPPING.put(AccessDeniedException.class.getName(), EnumServiceException.PERMISSION_DENIED); + CLASS_TO_ENUM_EXCEPTION_MAPPING.put(java.lang.RuntimeException.class.getName(), EnumServiceException.RUNTIME); + // TODO: insert CLASS_TO_ENUM_EXCEPTION_MAPPING.put(.class.getName(), EnumServiceException.); + } + private CheckOutCheckInService checkOutCheckInService; private CMISDictionaryService cmisDictionaryService; private FileFolderService fileFolderService; @@ -76,7 +88,6 @@ public class CmisObjectsUtils private Throwable lastOperationException; - public void setCmisDictionaryService(CMISDictionaryService cmisDictionaryService) { this.cmisDictionaryService = cmisDictionaryService; @@ -106,13 +117,46 @@ public class CmisObjectsUtils { this.authorityService = authorityService; } - - - public IdentifierConversionResults getIdentifierInstance(String identifier, AlfrescoObjectType expectedType) throws InvalidArgumentException + + public CmisException createCmisException(String message, EnumServiceException exceptionType) + { + return createCmisException(message, exceptionType, null, 0); + } + + public CmisException createCmisException(String message, Throwable cause) + { + EnumServiceException exceptionType = null; + + if (CLASS_TO_ENUM_EXCEPTION_MAPPING.containsKey(cause.getClass().getName())) + { + exceptionType = CLASS_TO_ENUM_EXCEPTION_MAPPING.get(cause.getClass().getName()); + } + + exceptionType = (exceptionType == null) ? (EnumServiceException.RUNTIME) : (exceptionType); + + return createCmisException(message, exceptionType, cause, 0); + } + + public CmisException createCmisException(String message, EnumServiceException exceptionType, Throwable cause) + { + return createCmisException(message, exceptionType, cause, 0); + } + + public CmisException createCmisException(String message, EnumServiceException exceptionType, Throwable cause, int errorCode) + { + CmisFaultType fault = new CmisFaultType(); + fault.setMessage(message); + fault.setType(exceptionType); + fault.setCode(BigInteger.valueOf(errorCode)); + + return new CmisException(message, fault, cause); + } + + public IdentifierConversionResults getIdentifierInstance(String identifier, AlfrescoObjectType expectedType) throws CmisException { if (!(identifier instanceof String)) { - throw new InvalidArgumentException("Invalid Object Identifier was specified"); + throw createCmisException("Invalid Object Identifier was specified", EnumServiceException.INVALID_ARGUMENT); } IdentifierConversionResults result; @@ -135,11 +179,10 @@ public class CmisObjectsUtils return result; } - throw new InvalidArgumentException("Unexpected object type of the specified Object Identifier " + identifier); + throw createCmisException(("Unexpected object type of the specified Object Identifier " + identifier), EnumServiceException.INVALID_ARGUMENT); } - public void deleteFolder(NodeRef folderNodeReference, boolean continueOnFailure, boolean totalDeletion, List resultList) - throws OperationNotSupportedException + public void deleteFolder(NodeRef folderNodeReference, boolean continueOnFailure, boolean totalDeletion, List resultList) throws CmisException { DescendantsQueueManager queueManager = new DescendantsQueueManager(new ChildAssociationRef(ContentModel.ASSOC_CONTAINS, null, null, folderNodeReference)); @@ -159,7 +202,8 @@ public class CmisObjectsUtils } while (!queueManager.isEmpty() && (continueOnFailure || resultList.isEmpty())); } - private void processUnlinkStatus(DescendantElement currentElement, UnlinkOperationStatus unlinkStatus, DescendantsQueueManager queueManager, List resultList, boolean addAllFailedToDelete) + private void processUnlinkStatus(DescendantElement currentElement, UnlinkOperationStatus unlinkStatus, DescendantsQueueManager queueManager, List resultList, + boolean addAllFailedToDelete) { if (!unlinkStatus.getChildren().isEmpty()) { @@ -174,7 +218,7 @@ public class CmisObjectsUtils queueManager.removeParents(currentElement, resultList); } } - + public boolean deleteObject(NodeRef objectNodeReference) { return canLock(objectNodeReference) && performNodeDeletion(objectNodeReference); @@ -202,7 +246,8 @@ public class CmisObjectsUtils { try { - QName name = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, QName.createValidLocalName((String)nodeService.getProperty(objectNodeRef, ContentModel.PROP_NAME))); + QName name = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, QName.createValidLocalName((String) nodeService.getProperty(objectNodeRef, + ContentModel.PROP_NAME))); nodeService.addChild(parentFolderNodeRef, objectNodeRef, ContentModel.ASSOC_CONTAINS, name); return true; } @@ -277,7 +322,7 @@ public class CmisObjectsUtils public boolean isChildOfThisFolder(NodeRef objectNodeReference, NodeRef folderNodeReference) { - NodeRef searchedObjectNodeReference = fileFolderService.searchSimple(folderNodeReference, (String)nodeService.getProperty(objectNodeReference, ContentModel.PROP_NAME)); + NodeRef searchedObjectNodeReference = fileFolderService.searchSimple(folderNodeReference, (String) nodeService.getProperty(objectNodeReference, ContentModel.PROP_NAME)); return (searchedObjectNodeReference != null) && searchedObjectNodeReference.equals(objectNodeReference); } @@ -333,12 +378,12 @@ public class CmisObjectsUtils } else { - objectUnlinked = !isPrimaryObjectParent(parentFolderNodeReference, objectNodeReference) && removeObject(objectNodeReference, parentFolderNodeReference); + objectUnlinked = !isPrimaryObjectParent(parentFolderNodeReference, objectNodeReference) && removeObject(objectNodeReference, parentFolderNodeReference); } return new UnlinkOperationStatus(objectUnlinked, new LinkedList()); } - private NodeRef safeGetNodeRef(String nodeIdentifier) throws InvalidArgumentException + private NodeRef safeGetNodeRef(String nodeIdentifier) throws CmisException { if (NodeRef.isNodeRef(nodeIdentifier)) { @@ -349,7 +394,8 @@ public class CmisObjectsUtils } } - throw new InvalidArgumentException("Invalid Object Identifier was specified: Identifier is incorrect or Object with the specified Identifier does not exist", new ObjectNotFoundException()); + throw createCmisException("Invalid Object Identifier was specified: Identifier is incorrect or Object with the specified Identifier does not exist", + EnumServiceException.OBJECT_NOT_FOUND); } private String cutNodeVersionIfNecessary(String identifier, String[] splitNodeIdentifier, int startIndex) @@ -357,7 +403,8 @@ public class CmisObjectsUtils String withoutVersionSuffix = identifier; if (splitNodeIdentifier.length == NODE_REFERENCE_WITH_SUFFIX_DELIMETERS_COUNT) { - withoutVersionSuffix = splitNodeIdentifier[startIndex++ - 1] + DOUBLE_NODE_REFERENCE_ID_DELIMETER + splitNodeIdentifier[startIndex++] + NODE_REFERENCE_ID_DELIMETER + splitNodeIdentifier[startIndex]; + withoutVersionSuffix = splitNodeIdentifier[startIndex++ - 1] + DOUBLE_NODE_REFERENCE_ID_DELIMETER + splitNodeIdentifier[startIndex++] + NODE_REFERENCE_ID_DELIMETER + + splitNodeIdentifier[startIndex]; } return withoutVersionSuffix; } @@ -382,6 +429,7 @@ public class CmisObjectsUtils { return new IdentifierConversionResults() { + @SuppressWarnings("unchecked") public AssociationRef getConvertedIdentifier() { return new AssociationRef(identifier); @@ -393,6 +441,7 @@ public class CmisObjectsUtils { return new IdentifierConversionResults() { + @SuppressWarnings("unchecked") public NodeRef getConvertedIdentifier() { return identifier; @@ -430,10 +479,10 @@ public class CmisObjectsUtils return this.children; } } - + public Throwable getLastOperationException() { return lastOperationException; } - + } diff --git a/source/java/org/alfresco/repo/cmis/ws/utils/DescendantsQueueManager.java b/source/java/org/alfresco/repo/cmis/ws/utils/DescendantsQueueManager.java index 8c7a4be869..a5aed3e5e2 100755 --- a/source/java/org/alfresco/repo/cmis/ws/utils/DescendantsQueueManager.java +++ b/source/java/org/alfresco/repo/cmis/ws/utils/DescendantsQueueManager.java @@ -45,7 +45,7 @@ public class DescendantsQueueManager protected DescendantsQueueManager() { } - + public boolean isEmpty() { return this.queue.isEmpty(); @@ -62,7 +62,7 @@ public class DescendantsQueueManager queue.remove(result); return result; } - + public void addFirst(DescendantElement parent, List children) { for (ChildAssociationRef child : children) @@ -70,7 +70,7 @@ public class DescendantsQueueManager queue.addFirst(createElement(parent, child)); } } - + private DescendantElement createElement(DescendantElement parent, ChildAssociationRef child) { return new DescendantElement(parent, child); @@ -80,7 +80,7 @@ public class DescendantsQueueManager { queue.addLast(element); } - + public void removeParents(DescendantElement element, List undeletedNodes) { @@ -134,5 +134,5 @@ public class DescendantsQueueManager return (childAssoc != null) ? (childAssoc.equals(currentElement.getChildAssoc())) : (currentElement.getChildAssoc() == null); } } - + } diff --git a/source/sample/JavaCmisTest/cmis-test.bat b/source/sample/JavaCmisTest/cmis-test.bat index 2d985cf560..fe29636925 100755 --- a/source/sample/JavaCmisTest/cmis-test.bat +++ b/source/sample/JavaCmisTest/cmis-test.bat @@ -1,6 +1,6 @@ @echo off -set CLASSPATH=cmis-test.jar +set CLASSPATH=cmis-test-client.jar for %%i in (./lib/*.jar) do call set CLASSPATH=./lib/%%~i;%%CLASSPATH%% java org.alfresco.cmis.ws.example.SimpleExecutableCmisServicesUtilizer %1 %2 %3 diff --git a/source/sample/JavaCmisTest/lib/cmis-types.jar b/source/sample/JavaCmisTest/lib/cmis-types.jar index 4a454022d3..caa9eb9adc 100755 Binary files a/source/sample/JavaCmisTest/lib/cmis-types.jar and b/source/sample/JavaCmisTest/lib/cmis-types.jar differ diff --git a/source/sample/JavaCmisTest/lib/velocity-1.4.jar b/source/sample/JavaCmisTest/lib/velocity-1.4.jar new file mode 100755 index 0000000000..04ec9d2f85 Binary files /dev/null and b/source/sample/JavaCmisTest/lib/velocity-1.4.jar differ diff --git a/source/sample/JavaCmisTest/lib/velocity-dep-1.4.jar b/source/sample/JavaCmisTest/lib/velocity-dep-1.4.jar new file mode 100755 index 0000000000..375712b0e8 Binary files /dev/null and b/source/sample/JavaCmisTest/lib/velocity-dep-1.4.jar differ diff --git a/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/ExecutableServicesHelper.java b/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/ExecutableServicesHelper.java index 59bca4cda2..2ce526a09a 100755 --- a/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/ExecutableServicesHelper.java +++ b/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/ExecutableServicesHelper.java @@ -39,15 +39,9 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import org.alfresco.repo.cmis.ws.CmisObjectType; -import org.alfresco.repo.cmis.ws.CmisQueryType; -import org.alfresco.repo.cmis.ws.CmisRepositoryEntryType; import org.alfresco.repo.cmis.ws.EnumTypesOfFileableObjects; import org.alfresco.repo.cmis.ws.GetChildren; import org.alfresco.repo.cmis.ws.GetChildrenResponse; -import org.alfresco.repo.cmis.ws.GetFolderParent; -import org.alfresco.repo.cmis.ws.GetRepositories; -import org.alfresco.repo.cmis.ws.GetRepositoryInfo; -import org.alfresco.repo.cmis.ws.GetTypes; import org.alfresco.repo.cmis.ws.NavigationServicePort; import org.alfresco.repo.cmis.ws.ObjectFactory; import org.alfresco.repo.cmis.ws.RepositoryServicePort; @@ -68,12 +62,13 @@ import org.apache.ws.security.handler.WSHandlerConstants; */ public class ExecutableServicesHelper { - private static final QName NAVIGATION_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "NavigationService"); - private static final QName REPOSITORY_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); + private static final QName NAVIGATION_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "NavigationService"); + private static final QName REPOSITORY_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RepositoryService"); private static final String NAVIGATION_SERVER_URL_POSTFIX = "/alfresco/cmis/NavigationService?wsdl"; private static final String REPOSITORY_SERVER_URL_POSTFIX = "/alfresco/cmis/RepositoryService?wsdl"; + @SuppressWarnings("unused") private static final Log LOGGER = LogFactory.getLog(ExecutableServicesHelper.class); private String username; @@ -164,10 +159,7 @@ public class ExecutableServicesHelper */ public String receiveCompanyHomeObjectId(RepositoryServicePort servicesPort) throws Exception { - GetRepositoryInfo parameteers = new GetRepositoryInfo(); - parameteers.setRepositoryId(servicesPort.getRepositories().get(0).getRepositoryID()); - - return servicesPort.getRepositoryInfo(parameteers).getRootFolderId(); + return servicesPort.getRepositoryInfo(servicesPort.getRepositories().get(0).getRepositoryId()).getRootFolderId(); } /** @@ -191,7 +183,7 @@ public class ExecutableServicesHelper RepositoryServicePort authorizedRepositoryServicePort = receiveAuthorizedRepositoryServicePort(); GetChildren requestParameters = objectFactory.createGetChildren(); - requestParameters.setRepositoryId(authorizedRepositoryServicePort.getRepositories().get(0).getRepositoryID()); + requestParameters.setRepositoryId(authorizedRepositoryServicePort.getRepositories().get(0).getRepositoryId()); requestParameters.setFilter(objectFactory.createGetChildrenFilter("*")); requestParameters.setMaxItems(objectFactory.createGetChildrenMaxItems(BigInteger.valueOf(Long.MAX_VALUE))); requestParameters.setFolderId(receiveCompanyHomeObjectId(authorizedRepositoryServicePort)); @@ -214,7 +206,7 @@ public class ExecutableServicesHelper Map outInterceptorProperties = new HashMap(); outInterceptorProperties.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN + " " + WSHandlerConstants.TIMESTAMP); outInterceptorProperties.put(WSHandlerConstants.USER, username); - outInterceptorProperties.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST); + outInterceptorProperties.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT); outInterceptorProperties.put(WSHandlerConstants.PW_CALLBACK_REF, new CallbackHandler() { diff --git a/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java b/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java index 247ae59bda..a3e621776a 100755 --- a/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java +++ b/source/sample/JavaCmisTest/src/org/alfresco/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java @@ -102,7 +102,7 @@ public class SimpleExecutableCmisServicesUtilizer for (CmisObjectType item : response) { boolean thisIsFolder = ((CmisPropertyString) getCmisProperty(item.getProperties(), "BaseType")).getValue().contains("folder"); - String itemName = ((CmisPropertyString) getCmisProperty(item.getProperties(), "Name")).getValue(); + String itemName = ((CmisPropertyString) getCmisProperty(item.getProperties(), "Name")).getValue().get(0); System.out.println(((thisIsFolder) ? ("[") : ("")) + itemName + ((thisIsFolder) ? ("]") : (""))); } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/CmisServiceTestHelper.java b/source/test/java/org/alfresco/repo/cmis/ws/CmisServiceTestHelper.java index 35ff4c49a1..63c1373b89 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/CmisServiceTestHelper.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/CmisServiceTestHelper.java @@ -195,7 +195,7 @@ public class CmisServiceTestHelper extends TestCase List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setValue(name); + cmisProperty.getValue().add(name); propertiesList.add(cmisProperty); CmisContentStreamType cmisStream = new CmisContentStreamType(); @@ -221,7 +221,7 @@ public class CmisServiceTestHelper extends TestCase List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setValue(name); + cmisProperty.getValue().add(name); propertiesList.add(cmisProperty); CmisContentStreamType cmisStream = new CmisContentStreamType(); @@ -252,7 +252,7 @@ public class CmisServiceTestHelper extends TestCase List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setValue(name + dataSource.getName()); + cmisProperty.getValue().add(name + dataSource.getName()); propertiesList.add(cmisProperty); // public String createDocument(String repositoryId, String typeId, CmisPropertiesType properties, String folderId, CmisContentStreamType contentStream, @@ -277,9 +277,7 @@ public class CmisServiceTestHelper extends TestCase CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setPropertyType(EnumPropertyType.STRING); - cmisProperty.setIndex(BigInteger.valueOf(1)); - cmisProperty.setValue(name); + cmisProperty.getValue().add(name); propertiesList.add(cmisProperty); // public String createFolder(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) @@ -296,9 +294,7 @@ public class CmisServiceTestHelper extends TestCase CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setPropertyType(EnumPropertyType.STRING); - cmisProperty.setIndex(BigInteger.valueOf(1)); - cmisProperty.setValue(name); + cmisProperty.getValue().add(name); propertiesList.add(cmisProperty); // public String createFolder(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) @@ -316,7 +312,6 @@ public class CmisServiceTestHelper extends TestCase public void deleteFolder(String folderId) throws Exception { objectServicePort.deleteTree(repositoryId, folderId, EnumUnfileNonfolderObjects.DELETE, true); - assertNull("Folder has not been deleted", getObjectProperties(folderId)); } public GetPropertiesResponse getObjectProperties(String objectId) @@ -329,25 +324,16 @@ public class CmisServiceTestHelper extends TestCase request.setFilter(cmisObjectFactory.createGetPropertiesFilter("*")); request.setIncludeAllowableActions(cmisObjectFactory.createGetPropertiesIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetPropertiesIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetPropertiesIncludeRelationships(EnumIncludeRelationships.BOTH)); GetPropertiesResponse response = null; try { response = objectServicePort.getProperties(request); } - - catch (InvalidArgumentException e) - { - // e.printStackTrace(); - } - catch (ObjectNotFoundException e) - { - - } catch (Exception e) { - e.printStackTrace(); + } return response; } @@ -362,32 +348,23 @@ public class CmisServiceTestHelper extends TestCase request.setFilter(cmisObjectFactory.createGetPropertiesFilter(filter)); request.setIncludeAllowableActions(cmisObjectFactory.createGetPropertiesIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetPropertiesIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetPropertiesIncludeRelationships(EnumIncludeRelationships.BOTH)); GetPropertiesResponse response = null; try { response = objectServicePort.getProperties(request); } - - catch (FilterNotValidException e) - { - fail("FilterNotValidException"); - } - catch (ObjectNotFoundException e) - { - - } catch (Exception e) { - e.printStackTrace(); + fail(e.getMessage()); } return response; } /** * This method simplify receiving of Object Identificator for Company Home Root Folder - * + * * @param servicesPort - RepositoryServicePort instance that configured with WSS4J Client * @return String representation of Object Identificator * @throws Exception This exception throws when any CMIS Services operations was failed @@ -395,11 +372,9 @@ public class CmisServiceTestHelper extends TestCase public String getCompanyHomeId(String repositoryId) { String rootFolder = null; - GetRepositoryInfo parameters = new GetRepositoryInfo(); try { - parameters.setRepositoryId(repositoryId); - rootFolder = repositoryServicePort.getRepositoryInfo(parameters).getRootFolderId(); + rootFolder = repositoryServicePort.getRepositoryInfo(repositoryId).getRootFolderId(); } catch (Exception e) { @@ -411,10 +386,8 @@ public class CmisServiceTestHelper extends TestCase public String getUserHomeId(String repositoryId, String companyHomeId) { String userHomeFolder = null; - GetRepositoryInfo parameters = new GetRepositoryInfo(); try { - parameters.setRepositoryId(repositoryId); GetChildrenResponse response = getChildren(companyHomeId, EnumTypesOfFileableObjects.FOLDERS, 0, "*"); for (CmisObjectType object : response.getObject()) { @@ -424,7 +397,7 @@ public class CmisServiceTestHelper extends TestCase } } - userHomeFolder = repositoryServicePort.getRepositoryInfo(parameters).getRootFolderId(); + userHomeFolder = repositoryServicePort.getRepositoryInfo(repositoryId).getRootFolderId(); } catch (Exception e) { @@ -434,7 +407,7 @@ public class CmisServiceTestHelper extends TestCase } public final static String REPOSITORY_SERVICE_WSDL_LOCATION = ALFRESCO_URL + "/cmis/RepositoryService?wsdl"; - public final static QName REPOSITORY_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); + public final static QName REPOSITORY_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RepositoryService"); protected RepositoryServicePort getRepositoryServicePort() { @@ -455,7 +428,7 @@ public class CmisServiceTestHelper extends TestCase } public final static String OBJECT_SERVICE_WSDL_LOCATION = ALFRESCO_URL + "/cmis/ObjectService?wsdl"; - public final static QName OBJECT_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); + public final static QName OBJECT_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "ObjectService"); protected ObjectServicePort getObjectServicePort() { @@ -476,7 +449,7 @@ public class CmisServiceTestHelper extends TestCase } public final static String VERSIONING_SERVICE_WSDL_LOCATION = ALFRESCO_URL + "/cmis/VersioningService?wsdl"; - public final static QName VERSIONING_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "VersioningService"); + public final static QName VERSIONING_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "VersioningService"); protected VersioningServicePort getVersioningServicePort() { @@ -495,7 +468,7 @@ public class CmisServiceTestHelper extends TestCase } public final static String MULTIFILING_SERVICE_WSDL_LOCATION = ALFRESCO_URL + "/cmis/MultiFilingService?wsdl"; - public final static QName MULTIFILING_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "MultiFilingService"); + public final static QName MULTIFILING_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "MultiFilingService"); protected MultiFilingServicePort getMultiFilingServicePort() { @@ -514,7 +487,7 @@ public class CmisServiceTestHelper extends TestCase } public final static String NAVIGATION_SERVICE_WSDL_LOCATION = ALFRESCO_URL + "/cmis/NavigationService?wsdl"; - public final static QName NAVIGATION_SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "NavigationService"); + public final static QName NAVIGATION_SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "NavigationService"); protected NavigationServicePort getNavigationServicePort() { @@ -539,7 +512,7 @@ public class CmisServiceTestHelper extends TestCase { try { - return repositoryServicePort.getRepositories().get(0).getRepositoryID(); + return repositoryServicePort.getRepositories().get(0).getRepositoryId(); } catch (Exception e) { @@ -588,7 +561,7 @@ public class CmisServiceTestHelper extends TestCase request.setVersionSeriesId(documentId); request.setFilter(cmisObjectFactory.createGetAllVersionsFilter("*")); request.setIncludeAllowableActions(cmisObjectFactory.createGetAllVersionsIncludeAllowableActions(Boolean.FALSE)); - request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(Boolean.FALSE)); + request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(EnumIncludeRelationships.NONE)); response = versioningServicePort.getAllVersions(request); assertNotNull(response.getObject()); @@ -609,9 +582,7 @@ public class CmisServiceTestHelper extends TestCase CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setPropertyType(EnumPropertyType.STRING); - cmisProperty.setIndex(BigInteger.valueOf(1)); - cmisProperty.setValue(name); + cmisProperty.getValue().add(name); propertiesList.add(cmisProperty); // createRelationship(String repositoryId, String typeId, CmisPropertiesType properties, String sourceObjectId, String targetObjectId) @@ -630,7 +601,7 @@ public class CmisServiceTestHelper extends TestCase List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(propName); - cmisProperty.setValue(propValue); + cmisProperty.getValue().add(propValue); propertiesList.add(cmisProperty); Holder documentIdHolder = new Holder(documentId); @@ -673,7 +644,7 @@ public class CmisServiceTestHelper extends TestCase request.setObjectId(objectId); request.setFilter("*"); request.setIncludeAllowableActions(cmisObjectFactory.createGetObjectParentsIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetObjectParentsIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetObjectParentsIncludeRelationships(EnumIncludeRelationships.BOTH)); GetObjectParentsResponse response = null; @@ -681,7 +652,7 @@ public class CmisServiceTestHelper extends TestCase { response = navigationServicePort.getObjectParents(request); } - catch (FilterNotValidException e) + catch (Exception e) { fail(e.getMessage()); } @@ -741,7 +712,7 @@ public class CmisServiceTestHelper extends TestCase { response = navigationServicePort.getChildren(request); } - catch (FilterNotValidException e) + catch (Exception e) { fail(e.getMessage()); } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMDiscoveryServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMDiscoveryServiceTest.java index e05a29ac08..b636b8e14a 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMDiscoveryServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMDiscoveryServiceTest.java @@ -34,7 +34,7 @@ public class DMDiscoveryServiceTest extends AbstractServiceTest { public final static String SERVICE_WSDL_LOCATION = CmisServiceTestHelper.ALFRESCO_URL + "/cmis/DiscoveryService?wsdl"; - public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "DiscoveryService"); + public final static QName SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "DiscoveryService"); public final static String STATEMENT = "SELECT * FROM Document"; public DMDiscoveryServiceTest() @@ -46,7 +46,7 @@ public class DMDiscoveryServiceTest extends AbstractServiceTest { super(testCase, username, password); } - + protected Object getServicePort() { URL serviceWsdlURL; @@ -63,9 +63,10 @@ public class DMDiscoveryServiceTest extends AbstractServiceTest return service.getPort(DiscoveryServicePort.class); } - public void testQuery() throws Exception + public void testQuery() throws Exception { CmisQueryType request = new CmisQueryType(); + request.setRepositoryId(repositoryId); request.setStatement(STATEMENT); QueryResponse response = ((DiscoveryServicePort) servicePort).query(request); assertNotNull(response); diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMMultiFilingServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMMultiFilingServiceTest.java index 1c07023fe4..bb4a1e4aa8 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMMultiFilingServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMMultiFilingServiceTest.java @@ -32,7 +32,7 @@ public class DMMultiFilingServiceTest extends AbstractServiceTest { public final static String SERVICE_WSDL_LOCATION = CmisServiceTestHelper.ALFRESCO_URL + "/cmis/MultiFilingService?wsdl"; - public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "MultiFilingService"); + public final static QName SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "MultiFilingService"); private String anotherFolderId; public DMMultiFilingServiceTest() @@ -58,8 +58,16 @@ public class DMMultiFilingServiceTest extends AbstractServiceTest protected void tearDown() throws Exception { super.tearDown(); - deleteInitialContent(); - helper.deleteFolder(anotherFolderId); + try + { + deleteInitialContent(); + helper.deleteFolder(anotherFolderId); + } + catch (Exception e) + { + + } + } protected Object getServicePort() @@ -92,9 +100,9 @@ public class DMMultiFilingServiceTest extends AbstractServiceTest ((MultiFilingServicePort) servicePort).removeObjectFromFolder(repositoryId, documentId, null); fail("Expects exception"); } - catch (Exception e) + catch (CmisException e) { - assertTrue(e instanceof OperationNotSupportedException); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); } helper.removeObjectFromFolder(documentId, anotherFolderId); @@ -105,9 +113,9 @@ public class DMMultiFilingServiceTest extends AbstractServiceTest ((MultiFilingServicePort) servicePort).removeObjectFromFolder(repositoryId, documentId, folderId); fail("Expected exception"); } - catch (Exception e) + catch (CmisException e) { - assertTrue(e instanceof NotInFolderException); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.INVALID_ARGUMENT)); } try @@ -116,9 +124,9 @@ public class DMMultiFilingServiceTest extends AbstractServiceTest ((MultiFilingServicePort) servicePort).removeObjectFromFolder(repositoryId, documentId, companyHomeId); fail("Expected exception"); } - catch (Exception e) + catch (CmisException e) { - assertTrue(e instanceof OperationNotSupportedException); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); } } } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServiceTest.java index 35a1e2a2d9..37ccbedd94 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServiceTest.java @@ -122,8 +122,10 @@ public class DMNavigationServiceTest extends AbstractServiceTest } String folderName1 = "Test Cmis Folder (" + System.currentTimeMillis() + ")"; + @SuppressWarnings("unused") String folderId1 = helper.createFolder(folderName1, folderId); String documentName1 = "Test cmis document (" + System.currentTimeMillis() + ")"; + @SuppressWarnings("unused") String documentId1 = helper.createDocument(documentName1, folderId, CMISDictionaryModel.DOCUMENT_TYPE_ID, EnumVersioningState.MAJOR); response = getChildren(folderId, EnumTypesOfFileableObjects.ANY, 0); @@ -180,6 +182,7 @@ public class DMNavigationServiceTest extends AbstractServiceTest folderName = "Test Cmis Folder (" + System.currentTimeMillis() + ")"; String folderId1 = helper.createFolder(folderName, folderId); documentName = "Test cmis document (" + System.currentTimeMillis() + ")"; + @SuppressWarnings("unused") String documentId1 = helper.createDocument(documentName, folderId1, CMISDictionaryModel.DOCUMENT_TYPE_ID, EnumVersioningState.MAJOR); response = getDescendants(folderId, EnumTypesOfFileableObjects.FOLDERS, 1); @@ -299,7 +302,7 @@ public class DMNavigationServiceTest extends AbstractServiceTest request.setDepth(cmisObjectFactory.createGetDescendantsDepth(BigInteger.valueOf(depth))); request.setFilter(cmisObjectFactory.createGetPropertiesFilter("*")); request.setIncludeAllowableActions(cmisObjectFactory.createGetDescendantsIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetDescendantsIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetDescendantsIncludeRelationships(EnumIncludeRelationships.BOTH)); GetDescendantsResponse response = ((NavigationServicePort) servicePort).getDescendants(request); return response; @@ -359,7 +362,7 @@ public class DMNavigationServiceTest extends AbstractServiceTest request.setReturnToRoot(cmisObjectFactory.createGetFolderParentReturnToRoot(setReturnToRoot)); request.setIncludeAllowableActions(cmisObjectFactory.createGetFolderParentIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetFolderParentIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetFolderParentIncludeRelationships(EnumIncludeRelationships.BOTH)); GetFolderParentResponse response = ((NavigationServicePort) servicePort).getFolderParent(request); return response; @@ -376,14 +379,14 @@ public class DMNavigationServiceTest extends AbstractServiceTest request.setFilter(filter); request.setIncludeAllowableActions(cmisObjectFactory.createGetFolderParentIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetFolderParentIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetFolderParentIncludeRelationships(EnumIncludeRelationships.BOTH)); GetFolderParentResponse response = null; try { response = ((NavigationServicePort) servicePort).getFolderParent(request); } - catch (FilterNotValidException e) + catch (Exception e) { fail(e.getMessage()); } @@ -408,13 +411,13 @@ public class DMNavigationServiceTest extends AbstractServiceTest request.setRepositoryId(repositoryId); - request.setFolderID(cmisObjectFactory.createGetCheckedoutDocsFolderID(folderId)); + request.setFolderId(cmisObjectFactory.createGetCheckedoutDocsFolderId(folderId)); request.setFilter(cmisObjectFactory.createGetCheckedoutDocsFilter("*")); request.setMaxItems(cmisObjectFactory.createGetCheckedoutDocsMaxItems(BigInteger.valueOf(maxItems))); request.setSkipCount(cmisObjectFactory.createGetCheckedoutDocsSkipCount(BigInteger.valueOf(skipCount))); request.setIncludeAllowableActions(cmisObjectFactory.createGetCheckedoutDocsIncludeAllowableActions(true)); - request.setIncludeRelationships(cmisObjectFactory.createGetCheckedoutDocsIncludeRelationships(true)); + request.setIncludeRelationships(cmisObjectFactory.createGetCheckedoutDocsIncludeRelationships(EnumIncludeRelationships.BOTH)); GetCheckedoutDocsResponse response = ((NavigationServicePort) servicePort).getCheckedoutDocs(request); diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java index f4e5fe791a..75dc314202 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java @@ -24,14 +24,12 @@ */ package org.alfresco.repo.cmis.ws; -import java.math.BigInteger; import java.util.List; import javax.activation.DataHandler; import javax.xml.ws.Holder; import org.alfresco.cmis.CMISDictionaryModel; -import org.alfresco.cmis.mapping.CMISMapping; import org.alfresco.repo.content.MimetypeMap; /** @@ -83,7 +81,7 @@ public class DMObjectServiceTest extends AbstractServiceTest List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setValue(documentName); + cmisProperty.getValue().add(documentName); propertiesList.add(cmisProperty); CmisContentStreamType cmisStream = new CmisContentStreamType(); @@ -137,14 +135,14 @@ public class DMObjectServiceTest extends AbstractServiceTest public void testCreateDocument_Exceptions() throws Exception { - // • If unfiling is not supported and a Folder is not specified, throw FolderNotValidException. + // If unfiling is not supported and a Folder is not specified, throw FolderNotValidException. try { documentName = "Test cmis document (" + System.currentTimeMillis() + ")"; documentId = helper.createDocument(documentName, null, CMISDictionaryModel.DOCUMENT_TYPE_ID, EnumVersioningState.MAJOR); fail(); } - catch (FolderNotValidException e) + catch (CmisException e) { } @@ -178,7 +176,7 @@ public class DMObjectServiceTest extends AbstractServiceTest assertNotNull(getPropertyValue(propertiesResponse, CMISDictionaryModel.PROP_CONTENT_STREAM_MIME_TYPE)); assertTrue(getPropertyBooleanValue(propertiesResponse, CMISDictionaryModel.PROP_IS_LATEST_VERSION)); - // A property filter is a string that contains either ‘*’ (to return all properties) or a comma-separated list of property names (to return selected properties). An + // A property filter is a string that contains either (to return all properties) or a comma-separated list of property names (to return selected properties). An // arbitrary number of spaces are allowed before or after each comma. // filter = "*Stream*"; @@ -222,19 +220,22 @@ public class DMObjectServiceTest extends AbstractServiceTest assertEquals(3, responseVersions.getObject().size()); assertTrue("Initial version was not returned", isExistItemWithProperty(responseVersions.getObject(), CMISDictionaryModel.PROP_VERSION_LABEL, "1.0")); - assertTrue("Invalid response ordering: First object is not latest version", (Boolean) PropertyUtil.getProperty(responseVersions.getObject().get(0).getProperties(), CMISDictionaryModel.PROP_IS_LATEST_VERSION)); - assertTrue("Invalid response ordering: Second object is not head version", (Boolean) PropertyUtil.getProperty(responseVersions.getObject().get(1).getProperties(), CMISDictionaryModel.PROP_IS_LATEST_VERSION)); + assertTrue("Invalid response ordering: First object is not latest version", (Boolean) PropertyUtil.getProperty(responseVersions.getObject().get(0).getProperties(), + CMISDictionaryModel.PROP_IS_LATEST_VERSION)); + assertTrue("Invalid response ordering: Second object is not head version", (Boolean) PropertyUtil.getProperty(responseVersions.getObject().get(1).getProperties(), + CMISDictionaryModel.PROP_IS_LATEST_VERSION)); } // This test don't asserts until CMIS setProperty()/setProperties() logic is unimplemented public void testGetDocumentProperties_Other() throws Exception { - // • If “includeAllowableActions” is TRUE, the repository will return the allowable actions for the current user for the object as part of the output. - // • "IncludeRelationships" indicates whether relationships are also returned for the object. If it is set to "source" or "target", relationships for which the returned + // If includeAllowableActions is TRUE, the repository will return the allowable actions for the current user for the object as part of the output. + // "IncludeRelationships" indicates whether relationships are also returned for the object. If it is set to "source" or "target", relationships for which the returned // object is a source, or respectively a target, will also be returned. If it is set to "both", relationships for which the returned object is either a source or a target // will be returned. If it is set to "none", relationships are not returned. GetPropertiesResponse response = helper.getObjectProperties(documentId); + @SuppressWarnings("unused") CmisObjectType object = response.getObject(); // TODO: not implemented // assertNotNull(object.getAllowableActions()); @@ -250,12 +251,10 @@ public class DMObjectServiceTest extends AbstractServiceTest { ((ObjectServicePort) servicePort).getProperties(request); } - catch (InvalidArgumentException e) + catch (CmisException e) { - return; + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.INVALID_ARGUMENT)); } - - fail("Expects exception"); } public void testGetContentStream() throws Exception @@ -276,9 +275,6 @@ public class DMObjectServiceTest extends AbstractServiceTest result = ((ObjectServicePort) servicePort).getContentStream(repositoryId, documentId); } } - catch (InvalidArgumentException e) - { - } catch (Throwable e) { e.printStackTrace(); @@ -302,34 +298,6 @@ public class DMObjectServiceTest extends AbstractServiceTest } - // this method is not implemented yet - public void testCreatePolicy() throws Exception - { - CreatePolicy request = cmisObjectFactory.createCreatePolicy(); - - request.setRepositoryId(repositoryId); - request.setFolderId(cmisObjectFactory.createCreatePolicyFolderId(companyHomeId)); - // there is no CMISMapping.POLICY_TYPE_ID - request.setTypeId("policy"); - - CmisPropertiesType properties = new CmisPropertiesType(); - List propertiesList = properties.getProperty(); - - CmisPropertyString cmisProperty = new CmisPropertyString(); - cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setPropertyType(EnumPropertyType.STRING); - cmisProperty.setIndex(BigInteger.valueOf(1)); - cmisProperty.setValue("Cmis Test Policy"); - propertiesList.add(cmisProperty); - request.setProperties(properties); - - // TODO: not implemented - // String createPolicy(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) - String response = ((ObjectServicePort) servicePort).createPolicy(repositoryId, request.getTypeId(), request.getProperties(), companyHomeId); - - // assertNotNull(response); - } - public void testCreateRelationship() throws Exception { // TODO: uncomment @@ -360,15 +328,13 @@ public class DMObjectServiceTest extends AbstractServiceTest try { + @SuppressWarnings("unused") CmisContentStreamType result = ((ObjectServicePort) servicePort).getContentStream(repositoryId, documentId); - } - catch (StorageException e) - { + fail("Content stream was not deleted"); } catch (Exception e) { - e.printStackTrace(); // org.alfresco.repo.cmis.ws.StorageException: The specified Document has no Content Stream - fail(e.getMessage()); + } // on content update and on content delete new version should be created @@ -390,36 +356,29 @@ public class DMObjectServiceTest extends AbstractServiceTest // • If the object is the Root Folder, throw OperationNotSupportedException. documentName = "Test cmis document (" + System.currentTimeMillis() + ")"; + @SuppressWarnings("unused") String documentId = helper.createDocument(documentName, folderId); - // Try to delere folder with child + // Try to delete folder with child try { ((ObjectServicePort) servicePort).deleteObject(repositoryId, folderId); fail("Try to delere folder with child"); } - catch (ConstraintViolationException e) + catch (CmisException e) { - } - catch (Exception e) - { - e.printStackTrace(); - fail(e.getClass().getName() + ": " + e.getMessage()); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.CONSTRAINT)); } - // Try to delere root folder + // Try to delete root folder try { ((ObjectServicePort) servicePort).deleteObject(repositoryId, helper.getCompanyHomeId(repositoryId)); fail("Try to delere root folder"); } - catch (OperationNotSupportedException e) + catch (CmisException e) { - } - catch (Exception e) - { - e.printStackTrace();// org.alfresco.repo.cmis.ws.ConstraintViolationException: Could not delete folder with at least one Child - fail(e.getClass().getName() + ": " + e.getMessage()); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); } } @@ -467,57 +426,34 @@ public class DMObjectServiceTest extends AbstractServiceTest helper.deleteFolder(folderId1); - /* - // on DELETESINGLEFILED deletes only relationships and folder. Primary parent folder and contend should not be deleted - folderName = "Test Cmis Folder (" + System.currentTimeMillis() + ")"; - folderId1 = helper.createFolder(folderName, folderId); - - folderName = "Test Cmis Folder (" + System.currentTimeMillis() + ")"; - folderId2 = helper.createFolder(folderName, companyHomeId); - - documentName = "Test cmis document (" + System.currentTimeMillis() + ")"; - documentId2 = helper.createDocument(documentName, folderId2); - - String relationshipId = createRelationship("test relashionship", folderId1, documentId2); - - response = ((ObjectServicePort) servicePort).deleteTree(repositoryId, folderId1, EnumUnfileNonfolderObjects.DELETESINGLEFILED, true); - assertNotNull("DELETESINGLEFILED", response); - - assertNull("DELETESINGLEFILED", helper.getObjectProperties(folderId1)); - assertNull("DELETESINGLEFILED", helper.getObjectProperties(relationshipId)); - - assertNotNull("DELETESINGLEFILED", helper.getObjectProperties(folderId2)); - assertNotNull("DELETESINGLEFILED", helper.getObjectProperties(documentId2)); - - deleteFolder(folderId2); - - // response = ((ObjectServicePort) servicePort).deleteTree(repositoryId, folderId, EnumUnfileNonfolderObjects.UNFILE, true); - // assertNotNull("UNFILE", response); - // - // assertNull(getObjectProperties(folderId)); - - // deleteFolder(folderId); - * - */ + /* + * // on DELETESINGLEFILED deletes only relationships and folder. Primary parent folder and contend should not be deleted folderName = "Test Cmis Folder (" + + * System.currentTimeMillis() + ")"; folderId1 = helper.createFolder(folderName, folderId); folderName = "Test Cmis Folder (" + System.currentTimeMillis() + ")"; folderId2 = + * helper.createFolder(folderName, companyHomeId); documentName = "Test cmis document (" + System.currentTimeMillis() + ")"; documentId2 = + * helper.createDocument(documentName, folderId2); String relationshipId = createRelationship("test relashionship", folderId1, documentId2); response = ((ObjectServicePort) + * servicePort).deleteTree(repositoryId, folderId1, EnumUnfileNonfolderObjects.DELETESINGLEFILED, true); assertNotNull("DELETESINGLEFILED", response); + * assertNull("DELETESINGLEFILED", helper.getObjectProperties(folderId1)); assertNull("DELETESINGLEFILED", helper.getObjectProperties(relationshipId)); + * assertNotNull("DELETESINGLEFILED", helper.getObjectProperties(folderId2)); assertNotNull("DELETESINGLEFILED", helper.getObjectProperties(documentId2)); + * deleteFolder(folderId2); // response = ((ObjectServicePort) servicePort).deleteTree(repositoryId, folderId, EnumUnfileNonfolderObjects.UNFILE, true); // + * assertNotNull("UNFILE", response); // // assertNull(getObjectProperties(folderId)); // deleteFolder(folderId); + */ } public void testDeleteTree_Exceptions() throws Exception { - // Try to delere root folder + // Try to delete root folder try { + @SuppressWarnings("unused") DeleteTreeResponse.FailedToDelete response = ((ObjectServicePort) servicePort).deleteTree(repositoryId, helper.getCompanyHomeId(repositoryId), EnumUnfileNonfolderObjects.DELETE, true); fail("Try to delere root folder"); } - catch (OperationNotSupportedException e) + catch (CmisException e) { + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); } - catch (Exception e) - { - e.printStackTrace(); - fail(e.getMessage()); - } + } public void testGetAllowableActions() throws Exception @@ -567,15 +503,11 @@ public class DMObjectServiceTest extends AbstractServiceTest ((ObjectServicePort) servicePort).moveObject(repositoryId, documentId, folderId, null); fail("sourceFolderId is not specified - should throw InvalidArgumentException"); } - catch (InvalidArgumentException e) + catch (CmisException e) { + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.INVALID_ARGUMENT)); + } - } - catch (Exception e) - { - e.printStackTrace(); - fail(e.getClass().getName() + ": " + e.getMessage()); - } } public void testSetContentStream() throws Exception @@ -633,14 +565,9 @@ public class DMObjectServiceTest extends AbstractServiceTest ((ObjectServicePort) servicePort).setContentStream(repositoryId, new Holder(documentId), false, contentStream); fail("ContentAlreadyExists should be thrown"); } - catch (ContentAlreadyExistsException e) + catch (CmisException e) { - - } - catch (Exception e) - { - e.printStackTrace(); - fail(e.getMessage()); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.CONTENT_ALREADY_EXISTS)); } // now we can not set any property (beside name) when we create new document - so this case not working @@ -654,15 +581,11 @@ public class DMObjectServiceTest extends AbstractServiceTest ((ObjectServicePort) servicePort).setContentStream(repositoryId, new Holder(documentId), true, contentStream); fail("ConstraintViolationException should be thrown"); } - catch (ConstraintViolationException e) + catch (CmisException e) { + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.CONSTRAINT)); + } - } - catch (Exception e) - { - e.printStackTrace(); - fail(e.getMessage()); - } } } @@ -677,7 +600,7 @@ public class DMObjectServiceTest extends AbstractServiceTest List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_NAME); - cmisProperty.setValue(newName); + cmisProperty.getValue().add(newName); propertiesList.add(cmisProperty); // public void updateProperties(String repositoryId, Holder objectId, String changeToken, CmisPropertiesType properties) @@ -697,7 +620,7 @@ public class DMObjectServiceTest extends AbstractServiceTest List propertiesList = properties.getProperty(); CmisPropertyString cmisProperty = new CmisPropertyString(); cmisProperty.setName(CMISDictionaryModel.PROP_OBJECT_ID); - cmisProperty.setValue("new id value"); + cmisProperty.getValue().add("new id value"); propertiesList.add(cmisProperty); try @@ -706,14 +629,9 @@ public class DMObjectServiceTest extends AbstractServiceTest ((ObjectServicePort) servicePort).updateProperties(repositoryId, new Holder(documentId), new String(""), properties); fail("should not update read only propery"); } - catch (ConstraintViolationException e) + catch (CmisException e) { - - } - catch (Exception e) - { - e.printStackTrace(); - fail(e.getMessage()); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.CONSTRAINT)); } } } \ No newline at end of file diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMPolicyServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMPolicyServiceTest.java index 230646684b..d39a0cee6c 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMPolicyServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMPolicyServiceTest.java @@ -34,7 +34,7 @@ public class DMPolicyServiceTest extends AbstractServiceTest { public final static String SERVICE_WSDL_LOCATION = CmisServiceTestHelper.ALFRESCO_URL + "/cmis/PolicyService?wsdl"; - public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "PolicyServicePort"); + public final static QName SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "PolicyServicePort"); public DMPolicyServiceTest() { @@ -66,44 +66,44 @@ public class DMPolicyServiceTest extends AbstractServiceTest public void testApplyPolicy() throws Exception { - String documentId = helper.createDocument("Test cmis document (" + System.currentTimeMillis() + ")", companyHomeId); - assertNotNull(documentId); - ((PolicyServicePort) servicePort).applyPolicy(repositoryId, "policyId", documentId); // TODO policyId - helper.deleteDocument(documentId); + try + { + ((PolicyServicePort) servicePort).applyPolicy(repositoryId, "policyId", documentId); + } + catch (CmisException e) + { + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); + } } public void testGetAppliedPolicies() throws Exception { - String documentId = helper.createDocument("Test cmis document (" + System.currentTimeMillis() + ")", companyHomeId); - assertNotNull(documentId); + try + { - GetAppliedPolicies request = new GetAppliedPolicies(); - request.setRepositoryId(repositoryId); - request.setObjectId(documentId); - request.setFilter(cmisObjectFactory.createGetAppliedPoliciesFilter("")); // TODO - GetAppliedPoliciesResponse response = ((PolicyServicePort) servicePort).getAppliedPolicies(request); + GetAppliedPolicies request = new GetAppliedPolicies(); + request.setRepositoryId(repositoryId); + request.setObjectId(documentId); + request.setFilter(cmisObjectFactory.createGetAppliedPoliciesFilter("")); + @SuppressWarnings("unused") + GetAppliedPoliciesResponse response = ((PolicyServicePort) servicePort).getAppliedPolicies(request); - // TODO: Uncomment - // assertNotNull(response); - // assertNotNull(response.getObject()); - // if (!response.getObject().isEmpty()) - // { - // for (CmisObjectType object : response.getObject()) - // { - // assertNotNull(object.getProperties()); - // } - // } - - helper.deleteDocument(documentId); + } + catch (CmisException e) + { + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); + } } public void testRemovePolicy() throws Exception { - String documentId = helper.createDocument("Test cmis document (" + System.currentTimeMillis() + ")", companyHomeId); - assertNotNull(documentId); - - ((PolicyServicePort) servicePort).removePolicy(repositoryId, "policyId", documentId); // TODO policyId - - helper.deleteDocument(documentId); + try + { + ((PolicyServicePort) servicePort).removePolicy(repositoryId, "policyId", documentId); // TODO policyId + } + catch (CmisException e) + { + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); + } } } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRelationshipServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRelationshipServiceTest.java index 3d24d57cd0..5f30c2c6c8 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMRelationshipServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRelationshipServiceTest.java @@ -24,21 +24,19 @@ */ 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.cmis.mapping.CMISMapping; - public class DMRelationshipServiceTest extends AbstractServiceTest { public final static String SERVICE_WSDL_LOCATION = CmisServiceTestHelper.ALFRESCO_URL + "/cmis/RelationshipService?wsdl"; - public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "RelationshipService"); + public final static QName SERVICE_NAME = new QName("http://docs.oasis-open.org/ns/cmis/ws/200901", "RelationshipService"); + @SuppressWarnings("unused") private String relationshipId; private String document2Id; diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java index 5756449f8b..043374eb1d 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java @@ -27,6 +27,8 @@ package org.alfresco.repo.cmis.ws; import java.math.BigInteger; import java.util.List; +import javax.xml.ws.Holder; + public class DMRepositoryServiceTest extends AbstractServiceTest { public final static String TYPE_ID = "D/wcm_avmlayeredcontent"; @@ -50,7 +52,7 @@ public class DMRepositoryServiceTest extends AbstractServiceTest { List repositories = ((RepositoryServicePort) servicePort).getRepositories(); assertTrue(repositories.size() == 1); - assertFalse(repositories.get(0).getRepositoryID() == null); + assertFalse(repositories.get(0).getRepositoryId() == null); assertFalse(repositories.get(0).getRepositoryName() == null); } @@ -58,10 +60,10 @@ public class DMRepositoryServiceTest extends AbstractServiceTest { List repositories = ((RepositoryServicePort) servicePort).getRepositories(); GetRepositoryInfo parameters = new GetRepositoryInfo(); - parameters.setRepositoryId(repositories.get(0).getRepositoryID()); - CmisRepositoryInfoType cmisRepositoryInfoType = ((RepositoryServicePort) servicePort).getRepositoryInfo(parameters); + parameters.setRepositoryId(repositories.get(0).getRepositoryId()); + CmisRepositoryInfoType cmisRepositoryInfoType = ((RepositoryServicePort) servicePort).getRepositoryInfo(repositoryId); - assertTrue(cmisRepositoryInfoType.getRepositoryId().equals(repositories.get(0).getRepositoryID())); + assertTrue(cmisRepositoryInfoType.getRepositoryId().equals(repositories.get(0).getRepositoryId())); assertTrue(cmisRepositoryInfoType.getRepositoryName().equals(repositories.get(0).getRepositoryName())); CmisRepositoryCapabilitiesType capabilities = cmisRepositoryInfoType.getCapabilities(); assertTrue(capabilities.isCapabilityMultifiling() && capabilities.isCapabilityPWCUpdateable()); @@ -71,26 +73,22 @@ public class DMRepositoryServiceTest extends AbstractServiceTest public void testGetTypes() throws Exception { GetTypes request = new GetTypes(); - request.setMaxItems(cmisObjectFactory.createGetTypesMaxItems(BigInteger.valueOf(0))); - request.setSkipCount(cmisObjectFactory.createGetTypesMaxItems(BigInteger.valueOf(0))); + BigInteger maxItems = BigInteger.valueOf(0); + BigInteger skipItems = BigInteger.valueOf(0); request.setRepositoryId(repositoryId); - request.setReturnPropertyDefinitions(cmisObjectFactory.createGetTypesReturnPropertyDefinitions(Boolean.FALSE)); - GetTypesResponse response = ((RepositoryServicePort) servicePort).getTypes(request); - assertNotNull(response.getType()); - assertFalse(response.getType().isEmpty()); - CmisTypeDefinitionType element = response.getType().get(0).getValue(); + request.setIncludePropertyDefinitions(cmisObjectFactory.createGetTypesIncludePropertyDefinitions(Boolean.FALSE)); + Holder> typeHolder = new Holder>(); + Holder hasMoreElementsHolder = new Holder(); + ((RepositoryServicePort) servicePort).getTypes(repositoryId, "", Boolean.FALSE, maxItems, skipItems, typeHolder, hasMoreElementsHolder); + assertNotNull(typeHolder.value); + assertFalse(typeHolder.value.isEmpty()); + CmisTypeDefinitionType element = typeHolder.value.get(0); assertNotNull(element); } public void testGetTypeDefinition() throws Exception { - GetTypeDefinition request = new GetTypeDefinition(); - request.setRepositoryId(repositoryId); - request.setTypeId(TYPE_ID); - GetTypeDefinitionResponse response = ((RepositoryServicePort) servicePort).getTypeDefinition(request); - assertNotNull(response); - assertNotNull(response.getType()); - CmisTypeDefinitionType element = response.getType().getValue(); - assertNotNull(element); + CmisTypeDefinitionType type = ((RepositoryServicePort) servicePort).getTypeDefinition(repositoryId, TYPE_ID); + assertNotNull(type); } } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMVersioningServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMVersioningServiceTest.java index 1af282f725..464e208041 100755 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMVersioningServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMVersioningServiceTest.java @@ -126,9 +126,9 @@ public class DMVersioningServiceTest extends AbstractServiceTest fail("Expects exception"); } - catch (Throwable e) + catch (CmisException e) { - assertTrue(e instanceof OperationNotSupportedException); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); } } @@ -141,9 +141,9 @@ public class DMVersioningServiceTest extends AbstractServiceTest fail("Expects exception"); } - catch (Throwable e) + catch (CmisException e) { - assertTrue(e instanceof OperationNotSupportedException); + assertTrue(e.getFaultInfo().getType().equals(EnumServiceException.NOT_SUPPORTED)); } } @@ -210,7 +210,7 @@ public class DMVersioningServiceTest extends AbstractServiceTest request.setVersionSeriesId(documentId); request.setFilter(cmisObjectFactory.createGetAllVersionsFilter("*")); request.setIncludeAllowableActions(cmisObjectFactory.createGetAllVersionsIncludeAllowableActions(Boolean.FALSE)); - request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(Boolean.FALSE)); + request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(EnumIncludeRelationships.NONE)); GetAllVersionsResponse response = ((VersioningServicePort) servicePort).getAllVersions(request); assertNotNull(response); @@ -226,7 +226,7 @@ public class DMVersioningServiceTest extends AbstractServiceTest request.setVersionSeriesId(documentId); request.setFilter(cmisObjectFactory.createGetAllVersionsFilter("*")); request.setIncludeAllowableActions(cmisObjectFactory.createGetAllVersionsIncludeAllowableActions(Boolean.FALSE)); - request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(Boolean.FALSE)); + request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(EnumIncludeRelationships.NONE)); GetAllVersionsResponse response = ((VersioningServicePort) servicePort).getAllVersions(request); assertNotNull(response); @@ -247,7 +247,7 @@ public class DMVersioningServiceTest extends AbstractServiceTest request.setVersionSeriesId(documentId); request.setFilter(cmisObjectFactory.createGetAllVersionsFilter("*")); request.setIncludeAllowableActions(cmisObjectFactory.createGetAllVersionsIncludeAllowableActions(Boolean.FALSE)); - request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(Boolean.FALSE)); + request.setIncludeRelationships(cmisObjectFactory.createGetAllVersionsIncludeRelationships(EnumIncludeRelationships.NONE)); GetAllVersionsResponse response = ((VersioningServicePort) servicePort).getAllVersions(request); assertNotNull(response);