diff --git a/config/alfresco/cmis-ws-context.xml b/config/alfresco/cmis-ws-context.xml index 318b9b2207..96fb39341c 100644 --- a/config/alfresco/cmis-ws-context.xml +++ b/config/alfresco/cmis-ws-context.xml @@ -18,12 +18,12 @@ - + - + @@ -44,12 +44,12 @@ - + - + @@ -70,12 +70,12 @@ - + - + @@ -198,10 +198,21 @@ + + + + + + + + + + + diff --git a/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolder.java b/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolder.java index 7d6abc57b0..47a8b1c1df 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolder.java +++ b/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolder.java @@ -9,24 +9,22 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for addObjectToFolder element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="addObjectToFolder">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -40,11 +38,11 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "addObjectToFolder") public class AddObjectToFolder { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String folderId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolderResponse.java index ac52df1228..c58d9317e6 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolderResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/AddObjectToFolderResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for addObjectToFolderResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="addObjectToFolderResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/AllowableActionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/AllowableActionEnum.java deleted file mode 100755 index 24a8107be4..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/AllowableActionEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for allowableActionEnum. - * - *

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

- *

- * <simpleType name="allowableActionEnum">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="canGetProperties"/>
- *     <enumeration value="canUpdateProperties"/>
- *     <enumeration value="canDeleteObject"/>
- *     <enumeration value="canGetObjectParents"/>
- *     <enumeration value="canGetFolderParent"/>
- *     <enumeration value="canMoveObject"/>
- *     <enumeration value="canAddObjectToFolder"/>
- *     <enumeration value="canRemoveObjectFromFolder"/>
- *     <enumeration value="canGetRelationships"/>
- *     <enumeration value="canApplyPolicy"/>
- *     <enumeration value="canRemovePolicy"/>
- *     <enumeration value="canGetAppliedPolicies"/>
- *     <enumeration value="canGetContentStream"/>
- *     <enumeration value="canSetContentStream"/>
- *     <enumeration value="canDeleteContentStream"/>
- *     <enumeration value="canCheckOut"/>
- *     <enumeration value="canCancelCheckout"/>
- *     <enumeration value="canCheckIn"/>
- *     <enumeration value="canGetChildren"/>
- *     <enumeration value="canGetDescendants"/>
- *     <enumeration value="canCreateDocument"/>
- *     <enumeration value="canCreateFolder"/>
- *     <enumeration value="canCreateRelationship"/>
- *     <enumeration value="canCreatePolicy"/>
- *     <enumeration value="canDeleteTree"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum AllowableActionEnum { - - @XmlEnumValue("canAddObjectToFolder") - CAN_ADD_OBJECT_TO_FOLDER("canAddObjectToFolder"), - @XmlEnumValue("canApplyPolicy") - CAN_APPLY_POLICY("canApplyPolicy"), - @XmlEnumValue("canCancelCheckout") - CAN_CANCEL_CHECKOUT("canCancelCheckout"), - @XmlEnumValue("canCheckIn") - CAN_CHECK_IN("canCheckIn"), - @XmlEnumValue("canCheckOut") - CAN_CHECK_OUT("canCheckOut"), - @XmlEnumValue("canCreateDocument") - CAN_CREATE_DOCUMENT("canCreateDocument"), - @XmlEnumValue("canCreateFolder") - CAN_CREATE_FOLDER("canCreateFolder"), - @XmlEnumValue("canCreatePolicy") - CAN_CREATE_POLICY("canCreatePolicy"), - @XmlEnumValue("canCreateRelationship") - CAN_CREATE_RELATIONSHIP("canCreateRelationship"), - @XmlEnumValue("canDeleteContentStream") - CAN_DELETE_CONTENT_STREAM("canDeleteContentStream"), - @XmlEnumValue("canDeleteObject") - CAN_DELETE_OBJECT("canDeleteObject"), - @XmlEnumValue("canDeleteTree") - CAN_DELETE_TREE("canDeleteTree"), - @XmlEnumValue("canGetAppliedPolicies") - CAN_GET_APPLIED_POLICIES("canGetAppliedPolicies"), - @XmlEnumValue("canGetChildren") - CAN_GET_CHILDREN("canGetChildren"), - @XmlEnumValue("canGetContentStream") - CAN_GET_CONTENT_STREAM("canGetContentStream"), - @XmlEnumValue("canGetDescendants") - CAN_GET_DESCENDANTS("canGetDescendants"), - @XmlEnumValue("canGetFolderParent") - CAN_GET_FOLDER_PARENT("canGetFolderParent"), - @XmlEnumValue("canGetObjectParents") - CAN_GET_OBJECT_PARENTS("canGetObjectParents"), - @XmlEnumValue("canGetProperties") - CAN_GET_PROPERTIES("canGetProperties"), - @XmlEnumValue("canGetRelationships") - CAN_GET_RELATIONSHIPS("canGetRelationships"), - @XmlEnumValue("canMoveObject") - CAN_MOVE_OBJECT("canMoveObject"), - @XmlEnumValue("canRemoveObjectFromFolder") - CAN_REMOVE_OBJECT_FROM_FOLDER("canRemoveObjectFromFolder"), - @XmlEnumValue("canRemovePolicy") - CAN_REMOVE_POLICY("canRemovePolicy"), - @XmlEnumValue("canSetContentStream") - CAN_SET_CONTENT_STREAM("canSetContentStream"), - @XmlEnumValue("canUpdateProperties") - CAN_UPDATE_PROPERTIES("canUpdateProperties"); - private final String value; - - AllowableActionEnum(String v) { - value = v; - } - - public String value() { - return value; - } - - public static AllowableActionEnum fromValue(String v) { - for (AllowableActionEnum c: AllowableActionEnum.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicy.java b/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicy.java index 6eb0a7b32e..f501613084 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicy.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicy.java @@ -9,24 +9,22 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for applyPolicy element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="applyPolicy">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="policyId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="policyId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -40,11 +38,11 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "applyPolicy") public class ApplyPolicy { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String policyId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicyResponse.java b/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicyResponse.java index 7ec7124203..3030447791 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicyResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ApplyPolicyResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for applyPolicyResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="applyPolicyResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java index 585f9d1eca..3864081ab3 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for cancelCheckOut element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="cancelCheckOut">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "cancelCheckOut") public class CancelCheckOut { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java index 54603431ee..950f4bb137 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for cancelCheckOutResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="cancelCheckOutResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java deleted file mode 100644 index b9e3fe9819..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java +++ /dev/null @@ -1,190 +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.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for capabilitiesType complex type. - * - *

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

- * <complexType name="capabilitiesType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="capabilityMultifiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="capabilityUnfiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="capabilityVersionSpecificFiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="capabilityPWCUpdatable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="capabilityAllVersionsSearchable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="capabilityJoin" type="{http://www.cmis.org/ns/1.0}joinEnum"/>
- *         <element name="capabilityFulltext" type="{http://www.cmis.org/ns/1.0}fulltextEnum"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "capabilitiesType", propOrder = { - "capabilityMultifiling", - "capabilityUnfiling", - "capabilityVersionSpecificFiling", - "capabilityPWCUpdatable", - "capabilityAllVersionsSearchable", - "capabilityJoin", - "capabilityFulltext" -}) -public class CapabilitiesType { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean capabilityMultifiling; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean capabilityUnfiling; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean capabilityVersionSpecificFiling; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean capabilityPWCUpdatable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean capabilityAllVersionsSearchable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected JoinEnum capabilityJoin; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected FulltextEnum capabilityFulltext; - - /** - * Gets the value of the capabilityMultifiling property. - * - */ - public boolean isCapabilityMultifiling() { - return capabilityMultifiling; - } - - /** - * Sets the value of the capabilityMultifiling property. - * - */ - public void setCapabilityMultifiling(boolean value) { - this.capabilityMultifiling = value; - } - - /** - * Gets the value of the capabilityUnfiling property. - * - */ - public boolean isCapabilityUnfiling() { - return capabilityUnfiling; - } - - /** - * Sets the value of the capabilityUnfiling property. - * - */ - public void setCapabilityUnfiling(boolean value) { - this.capabilityUnfiling = value; - } - - /** - * Gets the value of the capabilityVersionSpecificFiling property. - * - */ - public boolean isCapabilityVersionSpecificFiling() { - return capabilityVersionSpecificFiling; - } - - /** - * Sets the value of the capabilityVersionSpecificFiling property. - * - */ - public void setCapabilityVersionSpecificFiling(boolean value) { - this.capabilityVersionSpecificFiling = value; - } - - /** - * Gets the value of the capabilityPWCUpdatable property. - * - */ - public boolean isCapabilityPWCUpdatable() { - return capabilityPWCUpdatable; - } - - /** - * Sets the value of the capabilityPWCUpdatable property. - * - */ - public void setCapabilityPWCUpdatable(boolean value) { - this.capabilityPWCUpdatable = value; - } - - /** - * Gets the value of the capabilityAllVersionsSearchable property. - * - */ - public boolean isCapabilityAllVersionsSearchable() { - return capabilityAllVersionsSearchable; - } - - /** - * Sets the value of the capabilityAllVersionsSearchable property. - * - */ - public void setCapabilityAllVersionsSearchable(boolean value) { - this.capabilityAllVersionsSearchable = value; - } - - /** - * Gets the value of the capabilityJoin property. - * - * @return - * possible object is - * {@link JoinEnum } - * - */ - public JoinEnum getCapabilityJoin() { - return capabilityJoin; - } - - /** - * Sets the value of the capabilityJoin property. - * - * @param value - * allowed object is - * {@link JoinEnum } - * - */ - public void setCapabilityJoin(JoinEnum value) { - this.capabilityJoin = value; - } - - /** - * Gets the value of the capabilityFulltext property. - * - * @return - * possible object is - * {@link FulltextEnum } - * - */ - public FulltextEnum getCapabilityFulltext() { - return capabilityFulltext; - } - - /** - * Sets the value of the capabilityFulltext property. - * - * @param value - * allowed object is - * {@link FulltextEnum } - * - */ - public void setCapabilityFulltext(FulltextEnum value) { - this.capabilityFulltext = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java index 6e6f278d0e..57f8fe642c 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java @@ -1,35 +1,35 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for checkIn element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="checkIn">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="major" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
- *           <element name="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -46,18 +46,18 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "checkIn") public class CheckIn { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean major; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected PropertiesType properties; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected ContentStreamType contentStream; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String checkinComment; + @XmlElementRef(name = "major", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement major; + @XmlElementRef(name = "properties", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement properties; + @XmlElementRef(name = "contentStream", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement contentStream; + @XmlElementRef(name = "checkinComment", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement checkinComment; /** * Gets the value of the repositoryId property. @@ -112,10 +112,10 @@ public class CheckIn { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isMajor() { + public JAXBElement getMajor() { return major; } @@ -124,11 +124,11 @@ public class CheckIn { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setMajor(Boolean value) { - this.major = value; + public void setMajor(JAXBElement value) { + this.major = ((JAXBElement ) value); } /** @@ -136,10 +136,10 @@ public class CheckIn { * * @return * possible object is - * {@link PropertiesType } + * {@link JAXBElement }{@code <}{@link CmisPropertiesType }{@code >} * */ - public PropertiesType getProperties() { + public JAXBElement getProperties() { return properties; } @@ -148,11 +148,11 @@ public class CheckIn { * * @param value * allowed object is - * {@link PropertiesType } + * {@link JAXBElement }{@code <}{@link CmisPropertiesType }{@code >} * */ - public void setProperties(PropertiesType value) { - this.properties = value; + public void setProperties(JAXBElement value) { + this.properties = ((JAXBElement ) value); } /** @@ -160,10 +160,10 @@ public class CheckIn { * * @return * possible object is - * {@link ContentStreamType } + * {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >} * */ - public ContentStreamType getContentStream() { + public JAXBElement getContentStream() { return contentStream; } @@ -172,11 +172,11 @@ public class CheckIn { * * @param value * allowed object is - * {@link ContentStreamType } + * {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >} * */ - public void setContentStream(ContentStreamType value) { - this.contentStream = value; + public void setContentStream(JAXBElement value) { + this.contentStream = ((JAXBElement ) value); } /** @@ -184,10 +184,10 @@ public class CheckIn { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getCheckinComment() { + public JAXBElement getCheckinComment() { return checkinComment; } @@ -196,11 +196,11 @@ public class CheckIn { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setCheckinComment(String value) { - this.checkinComment = value; + public void setCheckinComment(JAXBElement value) { + this.checkinComment = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java index f4a5cdbf78..7b4e0054bd 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for checkInResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="checkInResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "checkInResponse") public class CheckInResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java b/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java index 1fbef70246..f3a3f9059e 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for checkOut element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="checkOut">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "checkOut") public class CheckOut { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java index 57b077eafa..416e6ff4d9 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for checkOutResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="checkOutResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="contentCopied" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contentCopied" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,8 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "checkOutResponse") public class CheckOutResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") protected boolean contentCopied; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java new file mode 100755 index 0000000000..98ec0394f7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAllowableActionsType.java @@ -0,0 +1,879 @@ + +package org.alfresco.repo.cmis.ws; + +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.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisAllowableActionsType complex type. + * + *

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

+ * <complexType name="cmisAllowableActionsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="parentId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="parentUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="canDelete" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canUpdateProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetRelationships" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetParents" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetFolderParent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetDescendants" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canMove" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canDeleteVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canDeleteContent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCheckout" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCancelCheckout" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCheckin" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canSetContent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetAllVersions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canAddToFolder" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canRemoveFromFolder" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canViewContent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canAddPolicy" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetAppliedPolicies" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canRemovePolicy" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canGetChildren" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCreateDocument" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCreateFolder" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCreateRelationship" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canCreatePolicy" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="canDeleteTree" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisAllowableActionsType", propOrder = { + "parentId", + "parentUrl", + "canDelete", + "canUpdateProperties", + "canGetProperties", + "canGetRelationships", + "canGetParents", + "canGetFolderParent", + "canGetDescendants", + "canMove", + "canDeleteVersion", + "canDeleteContent", + "canCheckout", + "canCancelCheckout", + "canCheckin", + "canSetContent", + "canGetAllVersions", + "canAddToFolder", + "canRemoveFromFolder", + "canViewContent", + "canAddPolicy", + "canGetAppliedPolicies", + "canRemovePolicy", + "canGetChildren", + "canCreateDocument", + "canCreateFolder", + "canCreateRelationship", + "canCreatePolicy", + "canDeleteTree", + "any" +}) +public class CmisAllowableActionsType { + + protected String parentId; + protected String parentUrl; + protected Boolean canDelete; + protected Boolean canUpdateProperties; + protected Boolean canGetProperties; + protected Boolean canGetRelationships; + protected Boolean canGetParents; + protected Boolean canGetFolderParent; + protected Boolean canGetDescendants; + protected Boolean canMove; + protected Boolean canDeleteVersion; + protected Boolean canDeleteContent; + protected Boolean canCheckout; + protected Boolean canCancelCheckout; + protected Boolean canCheckin; + protected Boolean canSetContent; + protected Boolean canGetAllVersions; + protected Boolean canAddToFolder; + protected Boolean canRemoveFromFolder; + protected Boolean canViewContent; + protected Boolean canAddPolicy; + protected Boolean canGetAppliedPolicies; + protected Boolean canRemovePolicy; + protected Boolean canGetChildren; + protected Boolean canCreateDocument; + protected Boolean canCreateFolder; + protected Boolean canCreateRelationship; + protected Boolean canCreatePolicy; + protected Boolean canDeleteTree; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the parentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentId() { + return parentId; + } + + /** + * Sets the value of the parentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParentId(String value) { + this.parentId = value; + } + + /** + * Gets the value of the parentUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentUrl() { + return parentUrl; + } + + /** + * Sets the value of the parentUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParentUrl(String value) { + this.parentUrl = value; + } + + /** + * Gets the value of the canDelete property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanDelete() { + return canDelete; + } + + /** + * Sets the value of the canDelete property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanDelete(Boolean value) { + this.canDelete = value; + } + + /** + * Gets the value of the canUpdateProperties property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanUpdateProperties() { + return canUpdateProperties; + } + + /** + * Sets the value of the canUpdateProperties property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanUpdateProperties(Boolean value) { + this.canUpdateProperties = value; + } + + /** + * Gets the value of the canGetProperties property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetProperties() { + return canGetProperties; + } + + /** + * Sets the value of the canGetProperties property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetProperties(Boolean value) { + this.canGetProperties = value; + } + + /** + * Gets the value of the canGetRelationships property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetRelationships() { + return canGetRelationships; + } + + /** + * Sets the value of the canGetRelationships property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetRelationships(Boolean value) { + this.canGetRelationships = value; + } + + /** + * Gets the value of the canGetParents property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetParents() { + return canGetParents; + } + + /** + * Sets the value of the canGetParents property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetParents(Boolean value) { + this.canGetParents = value; + } + + /** + * Gets the value of the canGetFolderParent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetFolderParent() { + return canGetFolderParent; + } + + /** + * Sets the value of the canGetFolderParent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetFolderParent(Boolean value) { + this.canGetFolderParent = value; + } + + /** + * Gets the value of the canGetDescendants property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetDescendants() { + return canGetDescendants; + } + + /** + * Sets the value of the canGetDescendants property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetDescendants(Boolean value) { + this.canGetDescendants = value; + } + + /** + * Gets the value of the canMove property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanMove() { + return canMove; + } + + /** + * Sets the value of the canMove property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanMove(Boolean value) { + this.canMove = value; + } + + /** + * Gets the value of the canDeleteVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanDeleteVersion() { + return canDeleteVersion; + } + + /** + * Sets the value of the canDeleteVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanDeleteVersion(Boolean value) { + this.canDeleteVersion = value; + } + + /** + * Gets the value of the canDeleteContent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanDeleteContent() { + return canDeleteContent; + } + + /** + * Sets the value of the canDeleteContent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanDeleteContent(Boolean value) { + this.canDeleteContent = value; + } + + /** + * Gets the value of the canCheckout property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCheckout() { + return canCheckout; + } + + /** + * Sets the value of the canCheckout property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCheckout(Boolean value) { + this.canCheckout = value; + } + + /** + * Gets the value of the canCancelCheckout property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCancelCheckout() { + return canCancelCheckout; + } + + /** + * Sets the value of the canCancelCheckout property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCancelCheckout(Boolean value) { + this.canCancelCheckout = value; + } + + /** + * Gets the value of the canCheckin property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCheckin() { + return canCheckin; + } + + /** + * Sets the value of the canCheckin property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCheckin(Boolean value) { + this.canCheckin = value; + } + + /** + * Gets the value of the canSetContent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanSetContent() { + return canSetContent; + } + + /** + * Sets the value of the canSetContent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanSetContent(Boolean value) { + this.canSetContent = value; + } + + /** + * Gets the value of the canGetAllVersions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetAllVersions() { + return canGetAllVersions; + } + + /** + * Sets the value of the canGetAllVersions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetAllVersions(Boolean value) { + this.canGetAllVersions = value; + } + + /** + * Gets the value of the canAddToFolder property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanAddToFolder() { + return canAddToFolder; + } + + /** + * Sets the value of the canAddToFolder property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanAddToFolder(Boolean value) { + this.canAddToFolder = value; + } + + /** + * Gets the value of the canRemoveFromFolder property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanRemoveFromFolder() { + return canRemoveFromFolder; + } + + /** + * Sets the value of the canRemoveFromFolder property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanRemoveFromFolder(Boolean value) { + this.canRemoveFromFolder = value; + } + + /** + * Gets the value of the canViewContent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanViewContent() { + return canViewContent; + } + + /** + * Sets the value of the canViewContent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanViewContent(Boolean value) { + this.canViewContent = value; + } + + /** + * Gets the value of the canAddPolicy property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanAddPolicy() { + return canAddPolicy; + } + + /** + * Sets the value of the canAddPolicy property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanAddPolicy(Boolean value) { + this.canAddPolicy = value; + } + + /** + * Gets the value of the canGetAppliedPolicies property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetAppliedPolicies() { + return canGetAppliedPolicies; + } + + /** + * Sets the value of the canGetAppliedPolicies property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetAppliedPolicies(Boolean value) { + this.canGetAppliedPolicies = value; + } + + /** + * Gets the value of the canRemovePolicy property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanRemovePolicy() { + return canRemovePolicy; + } + + /** + * Sets the value of the canRemovePolicy property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanRemovePolicy(Boolean value) { + this.canRemovePolicy = value; + } + + /** + * Gets the value of the canGetChildren property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanGetChildren() { + return canGetChildren; + } + + /** + * Sets the value of the canGetChildren property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanGetChildren(Boolean value) { + this.canGetChildren = value; + } + + /** + * Gets the value of the canCreateDocument property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCreateDocument() { + return canCreateDocument; + } + + /** + * Sets the value of the canCreateDocument property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCreateDocument(Boolean value) { + this.canCreateDocument = value; + } + + /** + * Gets the value of the canCreateFolder property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCreateFolder() { + return canCreateFolder; + } + + /** + * Sets the value of the canCreateFolder property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCreateFolder(Boolean value) { + this.canCreateFolder = value; + } + + /** + * Gets the value of the canCreateRelationship property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCreateRelationship() { + return canCreateRelationship; + } + + /** + * Sets the value of the canCreateRelationship property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCreateRelationship(Boolean value) { + this.canCreateRelationship = value; + } + + /** + * Gets the value of the canCreatePolicy property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanCreatePolicy() { + return canCreatePolicy; + } + + /** + * Sets the value of the canCreatePolicy property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanCreatePolicy(Boolean value) { + this.canCreatePolicy = value; + } + + /** + * Gets the value of the canDeleteTree property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCanDeleteTree() { + return canDeleteTree; + } + + /** + * Sets the value of the canDeleteTree property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCanDeleteTree(Boolean value) { + this.canDeleteTree = 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 Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java b/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java new file mode 100755 index 0000000000..891eb5e7b3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisAnyXml.java @@ -0,0 +1,96 @@ + +package org.alfresco.repo.cmis.ws; + +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.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisAnyXml complex type. + * + *

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

+ * <complexType name="cmisAnyXml">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisAnyXml", propOrder = { + "any" +}) +public class CmisAnyXml { + + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * 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 } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java new file mode 100755 index 0000000000..7d46e69365 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceBooleanType.java @@ -0,0 +1,62 @@ + +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 cmisChoiceBooleanType complex type. + * + *

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

+ * <complexType name="cmisChoiceBooleanType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceBooleanType", propOrder = { + "value" +}) +public class CmisChoiceBooleanType + extends CmisChoiceType +{ + + protected Boolean 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. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setValue(Boolean value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java new file mode 100755 index 0000000000..41d0d7a534 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDateTimeType.java @@ -0,0 +1,65 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for cmisChoiceDateTimeType complex type. + * + *

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

+ * <complexType name="cmisChoiceDateTimeType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceDateTimeType", propOrder = { + "value" +}) +public class CmisChoiceDateTimeType + extends CmisChoiceType +{ + + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar 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. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setValue(XMLGregorianCalendar value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java new file mode 100755 index 0000000000..bdcfd5f185 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceDecimalType.java @@ -0,0 +1,63 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigDecimal; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceDecimalType complex type. + * + *

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

+ * <complexType name="cmisChoiceDecimalType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceDecimalType", propOrder = { + "value" +}) +public class CmisChoiceDecimalType + extends CmisChoiceType +{ + + protected BigDecimal 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. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setValue(BigDecimal value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/HTML.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java similarity index 70% rename from source/generated/org/alfresco/repo/cmis/ws/HTML.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java index 19fa41cb4f..af7ff9c2f1 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/HTML.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceHtmlType.java @@ -11,18 +11,18 @@ import org.w3c.dom.Element; /** - *

Java class for HTML complex type. + *

Java class for cmisChoiceHtmlType complex type. * *

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

- * <complexType name="HTML">
+ * <complexType name="cmisChoiceHtmlType">
  *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
  *       <sequence>
  *         <any/>
  *       </sequence>
- *     </restriction>
+ *     </extension>
  *   </complexContent>
  * </complexType>
  * 
@@ -30,13 +30,15 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "HTML", propOrder = { +@XmlType(name = "cmisChoiceHtmlType", propOrder = { "any" }) -public class HTML { +public class CmisChoiceHtmlType + extends CmisChoiceType +{ - @XmlAnyElement - protected List any; + @XmlAnyElement(lax = true) + protected List any; /** * Gets the value of the any property. @@ -57,12 +59,13 @@ public class HTML { *

* Objects of the following type(s) are allowed in the list * {@link Element } + * {@link Object } * * */ - public List getAny() { + public List getAny() { if (any == null) { - any = new ArrayList(); + 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 new file mode 100755 index 0000000000..b01f8b7534 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIdType.java @@ -0,0 +1,62 @@ + +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 cmisChoiceIdType complex type. + * + *

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

+ * <complexType name="cmisChoiceIdType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceIdType", propOrder = { + "value" +}) +public class CmisChoiceIdType + extends CmisChoiceType +{ + + protected String 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. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java new file mode 100755 index 0000000000..9b35ebd7ee --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceIntegerType.java @@ -0,0 +1,63 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceIntegerType complex type. + * + *

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

+ * <complexType name="cmisChoiceIntegerType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceIntegerType", propOrder = { + "value" +}) +public class CmisChoiceIntegerType + extends CmisChoiceType +{ + + protected BigInteger 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. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java new file mode 100755 index 0000000000..f713335412 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceStringType.java @@ -0,0 +1,62 @@ + +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 cmisChoiceStringType complex type. + * + *

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

+ * <complexType name="cmisChoiceStringType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceStringType", propOrder = { + "value" +}) +public class CmisChoiceStringType + extends CmisChoiceType +{ + + protected String 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. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java new file mode 100755 index 0000000000..0576c0f42e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceType.java @@ -0,0 +1,172 @@ + +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.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; + + +/** + *

Java class for cmisChoiceType complex type. + * + *

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

+ * <complexType name="cmisChoiceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/2008/05}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"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceType", propOrder = { + "choice" +}) +@XmlSeeAlso({ + CmisChoiceDecimalType.class, + CmisChoiceXmlType.class, + CmisChoiceDateTimeType.class, + CmisChoiceStringType.class, + CmisChoiceUriType.class, + CmisChoiceIntegerType.class, + CmisChoiceHtmlType.class, + CmisChoiceIdType.class, + CmisChoiceBooleanType.class +}) +public abstract class CmisChoiceType { + + @XmlElementRef(name = "choice", namespace = "http://www.cmis.org/2008/05", 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") + protected String key; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the choice property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link CmisChoiceDecimalType }{@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 CmisChoiceType }{@code >} + * + * + */ + public List> getChoice() { + if (choice == null) { + choice = new ArrayList>(); + } + 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. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.java new file mode 100755 index 0000000000..a0d5fac431 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceUriType.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.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceUriType complex type. + * + *

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

+ * <complexType name="cmisChoiceUriType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceUriType", propOrder = { + "value" +}) +public class CmisChoiceUriType + extends CmisChoiceType +{ + + @XmlSchemaType(name = "anyURI") + protected String 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. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/XML.java b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java similarity index 70% rename from source/generated/org/alfresco/repo/cmis/ws/XML.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java index f65b04c965..ec7ce44ba3 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/XML.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisChoiceXmlType.java @@ -11,18 +11,18 @@ import org.w3c.dom.Element; /** - *

Java class for XML complex type. + *

Java class for cmisChoiceXmlType complex type. * *

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

- * <complexType name="XML">
+ * <complexType name="cmisChoiceXmlType">
  *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
  *       <sequence>
  *         <any/>
  *       </sequence>
- *     </restriction>
+ *     </extension>
  *   </complexContent>
  * </complexType>
  * 
@@ -30,13 +30,15 @@ import org.w3c.dom.Element; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "XML", propOrder = { +@XmlType(name = "cmisChoiceXmlType", propOrder = { "any" }) -public class XML { +public class CmisChoiceXmlType + extends CmisChoiceType +{ - @XmlAnyElement - protected List any; + @XmlAnyElement(lax = true) + protected List any; /** * Gets the value of the any property. @@ -57,12 +59,13 @@ public class XML { *

* Objects of the following type(s) are allowed in the list * {@link Element } + * {@link Object } * * */ - public List getAny() { + public List getAny() { if (any == null) { - any = new ArrayList(); + any = new ArrayList(); } return this.any; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/ContentStreamType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java similarity index 60% rename from source/generated/org/alfresco/repo/cmis/ws/ContentStreamType.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java index 36bf0c1bc7..362f2e496e 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ContentStreamType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisContentStreamType.java @@ -2,21 +2,30 @@ 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.activation.DataHandler; 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.XmlMimeType; +import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; /** - *

Java class for contentStreamType complex type. + *

Java class for cmisContentStreamType complex type. * *

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

- * <complexType name="contentStreamType">
+ * <complexType name="cmisContentStreamType">
  *   <complexContent>
  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       <sequence>
@@ -25,7 +34,9 @@ import javax.xml.bind.annotation.XmlType;
  *         <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  *         <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
  *         <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *         <any/>
  *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
  *     </restriction>
  *   </complexContent>
  * </complexType>
@@ -34,26 +45,29 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "contentStreamType", propOrder = {
+@XmlType(name = "cmisContentStreamType", propOrder = {
     "length",
     "mimeType",
     "filename",
     "uri",
-    "stream"
+    "stream",
+    "any"
 })
-public class ContentStreamType {
+public class CmisContentStreamType {
 
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected BigInteger length;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0")
     protected String mimeType;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0")
     protected String filename;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0")
+    @XmlSchemaType(name = "anyURI")
     protected String uri;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     @XmlMimeType("application/octet-stream")
     protected DataHandler stream;
+    @XmlAnyElement(lax = true)
+    protected List any;
+    @XmlAnyAttribute
+    private Map otherAttributes = new HashMap();
 
     /**
      * Gets the value of the length property.
@@ -175,4 +189,52 @@ public class ContentStreamType {
         this.stream = 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 Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java b/source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java old mode 100644 new mode 100755 similarity index 65% rename from source/generated/org/alfresco/repo/cmis/ws/BasicFault.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java index dd209f291d..0a01395548 --- a/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisFaultType.java @@ -5,16 +5,17 @@ import java.math.BigInteger; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** - *

Java class for basicFault complex type. + *

Java class for cmisFaultType complex type. * *

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

- * <complexType name="basicFault">
+ * <complexType name="cmisFaultType">
  *   <complexContent>
  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       <sequence>
@@ -29,15 +30,33 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "basicFault", propOrder = {
+@XmlType(name = "cmisFaultType", propOrder = {
     "errorCode",
     "errorMessage"
 })
-public class BasicFault {
+@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
+})
+public class CmisFaultType {
 
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected BigInteger errorCode;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String errorMessage;
 
     /**
diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java
new file mode 100755
index 0000000000..586540f0fe
--- /dev/null
+++ b/source/generated/org/alfresco/repo/cmis/ws/CmisObjectType.java
@@ -0,0 +1,214 @@
+
+package org.alfresco.repo.cmis.ws;
+
+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.XmlType;
+import javax.xml.namespace.QName;
+import org.w3c.dom.Element;
+
+
+/**
+ * 

Java class for cmisObjectType complex type. + * + *

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

+ * <complexType name="cmisObjectType">
+ *   <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"/>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisObjectType", propOrder = { + "properties", + "allowableActions", + "relationship", + "child", + "any" +}) +public class CmisObjectType { + + protected CmisPropertiesType properties; + protected CmisAllowableActionsType allowableActions; + protected List relationship; + protected List child; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link CmisPropertiesType } + * + */ + public CmisPropertiesType getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link CmisPropertiesType } + * + */ + public void setProperties(CmisPropertiesType value) { + this.properties = value; + } + + /** + * Gets the value of the allowableActions property. + * + * @return + * possible object is + * {@link CmisAllowableActionsType } + * + */ + public CmisAllowableActionsType getAllowableActions() { + return allowableActions; + } + + /** + * Sets the value of the allowableActions property. + * + * @param value + * allowed object is + * {@link CmisAllowableActionsType } + * + */ + public void setAllowableActions(CmisAllowableActionsType value) { + this.allowableActions = value; + } + + /** + * Gets the value of the relationship 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 relationship property. + * + *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } + * + * + */ + public List getChild() { + if (child == null) { + child = new ArrayList(); + } + return this.child; + } + + /** + * 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 } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java new file mode 100755 index 0000000000..b235ad85a2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertiesType.java @@ -0,0 +1,159 @@ + +package org.alfresco.repo.cmis.ws; + +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.XmlElements; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertiesType complex type. + * + *

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

+ * <complexType name="cmisPropertiesType">
+ *   <complexContent>
+ *     <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"/>
+ *         </choice>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertiesType", propOrder = { + "property", + "any" +}) +public class CmisPropertiesType { + + @XmlElements({ + @XmlElement(name = "propertyUri", type = CmisPropertyUri.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) + }) + protected List property; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the property property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisPropertyUri } + * {@link CmisPropertyId } + * {@link CmisPropertyString } + * {@link CmisPropertyXml } + * {@link CmisPropertyHtml } + * {@link CmisPropertyBoolean } + * {@link CmisPropertyDecimal } + * {@link CmisPropertyDateTime } + * {@link CmisPropertyInteger } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + + /** + * 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 } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java b/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java new file mode 100755 index 0000000000..c78b68fe1b --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisProperty.java @@ -0,0 +1,123 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.HashMap; +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.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; + + +/** + *

Java class for cmisProperty complex type. + * + *

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

+ * <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"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisProperty") +@XmlSeeAlso({ + CmisPropertyId.class, + CmisPropertyUri.class, + CmisPropertyDecimal.class, + CmisPropertyXml.class, + CmisPropertyString.class, + CmisPropertyDateTime.class, + CmisPropertyHtml.class, + CmisPropertyInteger.class, + CmisPropertyBoolean.class +}) +public class CmisProperty { + + @XmlAttribute(namespace = "http://www.cmis.org/2008/05", required = true) + protected String name; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected BigInteger index; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * 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 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. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java new file mode 100755 index 0000000000..0ebc4f3ad8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBoolean.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyBoolean complex type. + * + *

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

+ * <complexType name="cmisPropertyBoolean">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="boolean""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyBoolean", propOrder = { + "value" +}) +public class CmisPropertyBoolean + extends CmisProperty +{ + + protected Boolean value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * 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. + * + * @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; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.java new file mode 100755 index 0000000000..65c2be9ae8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyBooleanDefinitionType.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.XmlType; + + +/** + *

Java class for cmisPropertyBooleanDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyBooleanDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceBooleanType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyBooleanDefinitionType", propOrder = { + "defaultValue" +}) +public class CmisPropertyBooleanDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + + /** + * Gets the value of the defaultValue 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 defaultValue property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceBooleanType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java new file mode 100755 index 0000000000..9ba4db9d3e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTime.java @@ -0,0 +1,97 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for cmisPropertyDateTime complex type. + * + *

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

+ * <complexType name="cmisPropertyDateTime">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="datetime""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDateTime", propOrder = { + "value" +}) +public class CmisPropertyDateTime + extends CmisProperty +{ + + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * 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. + * + * @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; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.java new file mode 100755 index 0000000000..41806deb1e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDateTimeDefinitionType.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.XmlType; + + +/** + *

Java class for cmisPropertyDateTimeDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyDateTimeDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceDateTimeType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDateTimeDefinitionType", propOrder = { + "defaultValue" +}) +public class CmisPropertyDateTimeDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + + /** + * Gets the value of the defaultValue 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 defaultValue property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceDateTimeType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java new file mode 100755 index 0000000000..1552919b0b --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimal.java @@ -0,0 +1,95 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigDecimal; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyDecimal complex type. + * + *

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

+ * <complexType name="cmisPropertyDecimal">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="decimal""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDecimal", propOrder = { + "value" +}) +public class CmisPropertyDecimal + extends CmisProperty +{ + + protected BigDecimal value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * 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. + * + * @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; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java new file mode 100755 index 0000000000..6d00cb64e7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDecimalDefinitionType.java @@ -0,0 +1,97 @@ + +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; + + +/** + *

Java class for cmisPropertyDecimalDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyDecimalDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}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"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDecimalDefinitionType", propOrder = { + "defaultValue", + "precision" +}) +public class CmisPropertyDecimalDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + protected BigInteger precision; + + /** + * Gets the value of the defaultValue 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 defaultValue property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceDecimalType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setPrecision(BigInteger value) { + this.precision = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java new file mode 100755 index 0000000000..83abd860cb --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyDefinitionType.java @@ -0,0 +1,477 @@ + +package org.alfresco.repo.cmis.ws; + +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.XmlElements; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertyDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyDefinitionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <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="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="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"/>
+ *         </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"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDefinitionType", propOrder = { + "name", + "id", + "displayName", + "description", + "propertyType", + "cardinality", + "updateability", + "inherited", + "required", + "queryable", + "orderable", + "choice", + "openChoice", + "any" +}) +@XmlSeeAlso({ + CmisPropertyHtmlDefinitionType.class, + CmisPropertyIntegerDefinitionType.class, + CmisPropertyBooleanDefinitionType.class, + CmisPropertyIdDefinitionType.class, + CmisPropertyStringDefinitionType.class, + CmisPropertyDecimalDefinitionType.class, + CmisPropertyDateTimeDefinitionType.class, + CmisPropertyUriDefinitionType.class, + CmisPropertyXmlDefinitionType.class +}) +public class CmisPropertyDefinitionType { + + @XmlElement(required = true) + protected String name; + @XmlElement(required = true) + protected String id; + @XmlElement(required = true) + protected String displayName; + protected String description; + @XmlElement(required = true) + protected EnumPropertyType propertyType; + @XmlElement(required = true) + protected EnumCardinality cardinality; + @XmlElement(required = true) + protected EnumUpdateability updateability; + 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 = "choiceInteger", type = CmisChoiceIntegerType.class), + @XmlElement(name = "choiceBoolean", type = CmisChoiceBooleanType.class) + }) + protected List choice; + protected Boolean openChoice; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * 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 id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + return propertyType; + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + + /** + * Gets the value of the cardinality property. + * + * @return + * possible object is + * {@link EnumCardinality } + * + */ + public EnumCardinality getCardinality() { + return cardinality; + } + + /** + * Sets the value of the cardinality property. + * + * @param value + * allowed object is + * {@link EnumCardinality } + * + */ + public void setCardinality(EnumCardinality value) { + this.cardinality = value; + } + + /** + * Gets the value of the updateability property. + * + * @return + * possible object is + * {@link EnumUpdateability } + * + */ + public EnumUpdateability getUpdateability() { + return updateability; + } + + /** + * Sets the value of the updateability property. + * + * @param value + * allowed object is + * {@link EnumUpdateability } + * + */ + public void setUpdateability(EnumUpdateability value) { + this.updateability = value; + } + + /** + * Gets the value of the inherited property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInherited() { + return inherited; + } + + /** + * Sets the value of the inherited property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInherited(Boolean value) { + this.inherited = value; + } + + /** + * Gets the value of the required property. + * + */ + public boolean isRequired() { + return required; + } + + /** + * Sets the value of the required property. + * + */ + public void setRequired(boolean value) { + this.required = value; + } + + /** + * Gets the value of the queryable property. + * + */ + public boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + */ + public void setQueryable(boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the orderable property. + * + */ + public boolean isOrderable() { + return orderable; + } + + /** + * Sets the value of the orderable property. + * + */ + public void setOrderable(boolean value) { + this.orderable = value; + } + + /** + * Gets the value of the choice property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceUriType } + * {@link CmisChoiceXmlType } + * {@link CmisChoiceDateTimeType } + * {@link CmisChoiceIdType } + * {@link CmisChoiceHtmlType } + * {@link CmisChoiceStringType } + * {@link CmisChoiceDecimalType } + * {@link CmisChoiceIntegerType } + * {@link CmisChoiceBooleanType } + * + * + */ + public List getChoice() { + if (choice == null) { + choice = new ArrayList(); + } + return this.choice; + } + + /** + * Gets the value of the openChoice property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isOpenChoice() { + return openChoice; + } + + /** + * Sets the value of the openChoice property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOpenChoice(Boolean value) { + this.openChoice = 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 Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java new file mode 100755 index 0000000000..b3208a96e2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtml.java @@ -0,0 +1,105 @@ + +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.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertyHtml complex type. + * + *

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

+ * <complexType name="cmisPropertyHtml">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="html""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyHtml", propOrder = { + "any" +}) +public class CmisPropertyHtml + extends CmisProperty +{ + + @XmlAnyElement(lax = true) + protected List any; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * 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 } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * 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. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ChildrenType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java similarity index 51% rename from source/generated/org/alfresco/repo/cmis/ws/ChildrenType.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java index 9a97cb6168..bec1f9a854 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ChildrenType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyHtmlDefinitionType.java @@ -5,23 +5,22 @@ 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 childrenType complex type. + *

Java class for cmisPropertyHtmlDefinitionType complex type. * *

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

- * <complexType name="childrenType">
+ * <complexType name="cmisPropertyHtmlDefinitionType">
  *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="child" type="{http://www.cmis.org/ns/1.0}folderTreeType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceHtmlType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *     </restriction>
+ *     </extension>
  *   </complexContent>
  * </complexType>
  * 
@@ -29,41 +28,42 @@ import javax.xml.bind.annotation.XmlType; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "childrenType", propOrder = { - "child" +@XmlType(name = "cmisPropertyHtmlDefinitionType", propOrder = { + "defaultValue" }) -public class ChildrenType { +public class CmisPropertyHtmlDefinitionType + extends CmisPropertyDefinitionType +{ - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List child; + protected List defaultValue; /** - * Gets the value of the child property. + * Gets the value of the defaultValue 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 child property. + * This is why there is not a set method for the defaultValue property. * *

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

-     *    getChild().add(newItem);
+     *    getDefaultValue().add(newItem);
      * 
* * *

* Objects of the following type(s) are allowed in the list - * {@link FolderTreeType } + * {@link CmisChoiceHtmlType } * * */ - public List getChild() { - if (child == null) { - child = new ArrayList(); + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); } - return this.child; + return this.defaultValue; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java new file mode 100755 index 0000000000..c34b8dade8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyId.java @@ -0,0 +1,123 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyId complex type. + * + *

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

+ * <complexType name="cmisPropertyId">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="id""/>
+ *       <attribute ref="{http://www.cmis.org/2008/05}href"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyId", 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") + @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. + * + * @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; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectCollectionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java similarity index 51% rename from source/generated/org/alfresco/repo/cmis/ws/ObjectCollectionType.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java index ceae0c0d07..e092bbc4cf 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectCollectionType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIdDefinitionType.java @@ -5,23 +5,22 @@ 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 objectCollectionType complex type. + *

Java class for cmisPropertyIdDefinitionType complex type. * *

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

- * <complexType name="objectCollectionType">
+ * <complexType name="cmisPropertyIdDefinitionType">
  *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="object" type="{http://www.cmis.org/ns/1.0}objectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceIdType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *     </restriction>
+ *     </extension>
  *   </complexContent>
  * </complexType>
  * 
@@ -29,41 +28,42 @@ import javax.xml.bind.annotation.XmlType; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "objectCollectionType", propOrder = { - "object" +@XmlType(name = "cmisPropertyIdDefinitionType", propOrder = { + "defaultValue" }) -public class ObjectCollectionType { +public class CmisPropertyIdDefinitionType + extends CmisPropertyDefinitionType +{ - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List object; + protected List defaultValue; /** - * Gets the value of the object property. + * Gets the value of the defaultValue property. * *

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

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

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

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

Java class for cmisPropertyInteger complex type. + * + *

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

+ * <complexType name="cmisPropertyInteger">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="integer""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyInteger", propOrder = { + "value" +}) +public class CmisPropertyInteger + extends CmisProperty +{ + + protected BigInteger value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * 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. + * + * @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; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java new file mode 100755 index 0000000000..c3d8e5ccd5 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyIntegerDefinitionType.java @@ -0,0 +1,124 @@ + +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; + + +/** + *

Java class for cmisPropertyIntegerDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyIntegerDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}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>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyIntegerDefinitionType", propOrder = { + "defaultValue", + "maxValue", + "minValue" +}) +public class CmisPropertyIntegerDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + protected BigInteger maxValue; + protected BigInteger minValue; + + /** + * Gets the value of the defaultValue 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 defaultValue property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceIntegerType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + + /** + * Gets the value of the maxValue property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxValue() { + return maxValue; + } + + /** + * Sets the value of the maxValue property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxValue(BigInteger value) { + this.maxValue = value; + } + + /** + * Gets the value of the minValue property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMinValue() { + return minValue; + } + + /** + * Sets the value of the minValue property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMinValue(BigInteger value) { + this.minValue = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java new file mode 100755 index 0000000000..848458b27e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyString.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyString complex type. + * + *

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

+ * <complexType name="cmisPropertyString">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="string""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyString", propOrder = { + "value" +}) +public class CmisPropertyString + extends CmisProperty +{ + + protected String value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + if (propertyType == null) { + return EnumPropertyType.STRING; + } else { + return propertyType; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java new file mode 100755 index 0000000000..f3285149d3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyStringDefinitionType.java @@ -0,0 +1,97 @@ + +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; + + +/** + *

Java class for cmisPropertyStringDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyStringDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceStringType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="maxLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyStringDefinitionType", propOrder = { + "defaultValue", + "maxLength" +}) +public class CmisPropertyStringDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + protected BigInteger maxLength; + + /** + * Gets the value of the defaultValue 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 defaultValue property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceStringType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + + /** + * Gets the value of the maxLength property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxLength() { + return maxLength; + } + + /** + * Sets the value of the maxLength property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxLength(BigInteger value) { + this.maxLength = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java new file mode 100755 index 0000000000..1ce76e4388 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUri.java @@ -0,0 +1,96 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyUri complex type. + * + *

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

+ * <complexType name="cmisPropertyUri">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="uri""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyUri", propOrder = { + "value" +}) +public class CmisPropertyUri + extends CmisProperty +{ + + @XmlSchemaType(name = "anyURI") + protected String value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + if (propertyType == null) { + return EnumPropertyType.URI; + } else { + return propertyType; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java similarity index 51% rename from source/generated/org/alfresco/repo/cmis/ws/AllowableActionsType.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java index 1a5ff735dc..944346a72f 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyUriDefinitionType.java @@ -5,23 +5,22 @@ 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 allowableActionsType complex type. + *

Java class for cmisPropertyUriDefinitionType complex type. * *

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

- * <complexType name="allowableActionsType">
+ * <complexType name="cmisPropertyUriDefinitionType">
  *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
  *       <sequence>
- *         <element name="action" type="{http://www.cmis.org/ns/1.0}allowableActionEnum" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceUriType" maxOccurs="unbounded" minOccurs="0"/>
  *       </sequence>
- *     </restriction>
+ *     </extension>
  *   </complexContent>
  * </complexType>
  * 
@@ -29,41 +28,42 @@ import javax.xml.bind.annotation.XmlType; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "allowableActionsType", propOrder = { - "action" +@XmlType(name = "cmisPropertyUriDefinitionType", propOrder = { + "defaultValue" }) -public class AllowableActionsType { +public class CmisPropertyUriDefinitionType + extends CmisPropertyDefinitionType +{ - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List action; + protected List defaultValue; /** - * Gets the value of the action property. + * Gets the value of the defaultValue property. * *

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

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

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

* Objects of the following type(s) are allowed in the list - * {@link AllowableActionEnum } + * {@link CmisChoiceUriType } * * */ - public List getAction() { - if (action == null) { - action = new ArrayList(); + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); } - return this.action; + return this.defaultValue; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java new file mode 100755 index 0000000000..a29ec9b85f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXml.java @@ -0,0 +1,105 @@ + +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.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertyXml complex type. + * + *

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

+ * <complexType name="cmisPropertyXml">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="xml""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyXml", propOrder = { + "any" +}) +public class CmisPropertyXml + extends CmisProperty +{ + + @XmlAnyElement(lax = true) + protected List any; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * 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 } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * 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. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java new file mode 100755 index 0000000000..4831e89f08 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisPropertyXmlDefinitionType.java @@ -0,0 +1,125 @@ + +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; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyXmlDefinitionType complex type. + * + *

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

+ * <complexType name="cmisPropertyXmlDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}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>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyXmlDefinitionType", propOrder = { + "defaultValue", + "schemaURI", + "encoding" +}) +public class CmisPropertyXmlDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + @XmlSchemaType(name = "anyURI") + protected String schemaURI; + protected String encoding; + + /** + * Gets the value of the defaultValue 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 defaultValue property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceXmlType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + + /** + * Gets the value of the schemaURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemaURI() { + return schemaURI; + } + + /** + * Sets the value of the schemaURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemaURI(String value) { + 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 new file mode 100755 index 0000000000..4ab06c38cc --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisQueryType.java @@ -0,0 +1,234 @@ + +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; + + +/** + *

Java class for cmisQueryType complex type. + * + *

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

+ * <complexType name="cmisQueryType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="statement" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="searchAllVersions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element 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/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisQueryType", propOrder = { + "statement", + "searchAllVersions", + "pageSize", + "skipCount", + "returnAllowableActions", + "any" +}) +public class CmisQueryType { + + @XmlElement(required = true) + protected String statement; + protected Boolean searchAllVersions; + protected BigInteger pageSize; + protected BigInteger skipCount; + protected Boolean returnAllowableActions; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the statement property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatement() { + return statement; + } + + /** + * Sets the value of the statement property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatement(String value) { + this.statement = value; + } + + /** + * Gets the value of the searchAllVersions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isSearchAllVersions() { + return searchAllVersions; + } + + /** + * Sets the value of the searchAllVersions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSearchAllVersions(Boolean value) { + this.searchAllVersions = value; + } + + /** + * Gets the value of the pageSize property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getPageSize() { + return pageSize; + } + + /** + * Sets the value of the pageSize property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setPageSize(BigInteger value) { + this.pageSize = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + + /** + * Gets the value of the returnAllowableActions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isReturnAllowableActions() { + return returnAllowableActions; + } + + /** + * Sets the value of the returnAllowableActions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReturnAllowableActions(Boolean value) { + this.returnAllowableActions = 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 Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java new file mode 100755 index 0000000000..b65f5fee1c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryCapabilitiesType.java @@ -0,0 +1,294 @@ + +package org.alfresco.repo.cmis.ws; + +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; + + +/** + *

Java class for cmisRepositoryCapabilitiesType complex type. + * + *

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

+ * <complexType name="cmisRepositoryCapabilitiesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="capabilityMultifiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="capabilityUnfiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="capabilityVersionSpecificFiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <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"/>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisRepositoryCapabilitiesType", propOrder = { + "capabilityMultifiling", + "capabilityUnfiling", + "capabilityVersionSpecificFiling", + "capabilityPWCUpdateable", + "capabilityPWCSearchable", + "capabilityAllVersionsSearchable", + "capabilityQuery", + "capabilityJoin", + "capabilityFullText", + "any" +}) +public class CmisRepositoryCapabilitiesType { + + protected boolean capabilityMultifiling; + protected boolean capabilityUnfiling; + protected boolean capabilityVersionSpecificFiling; + protected boolean capabilityPWCUpdateable; + protected boolean capabilityPWCSearchable; + protected boolean capabilityAllVersionsSearchable; + @XmlElement(required = true) + protected EnumCapabilityQuery capabilityQuery; + @XmlElement(required = true) + protected EnumCapabilityJoin capabilityJoin; + @XmlElement(required = true) + protected EnumCapabilityFullText capabilityFullText; + @XmlAnyElement + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the capabilityMultifiling property. + * + */ + public boolean isCapabilityMultifiling() { + return capabilityMultifiling; + } + + /** + * Sets the value of the capabilityMultifiling property. + * + */ + public void setCapabilityMultifiling(boolean value) { + this.capabilityMultifiling = value; + } + + /** + * Gets the value of the capabilityUnfiling property. + * + */ + public boolean isCapabilityUnfiling() { + return capabilityUnfiling; + } + + /** + * Sets the value of the capabilityUnfiling property. + * + */ + public void setCapabilityUnfiling(boolean value) { + this.capabilityUnfiling = value; + } + + /** + * Gets the value of the capabilityVersionSpecificFiling property. + * + */ + public boolean isCapabilityVersionSpecificFiling() { + return capabilityVersionSpecificFiling; + } + + /** + * Sets the value of the capabilityVersionSpecificFiling property. + * + */ + public void setCapabilityVersionSpecificFiling(boolean value) { + this.capabilityVersionSpecificFiling = value; + } + + /** + * Gets the value of the capabilityPWCUpdateable property. + * + */ + public boolean isCapabilityPWCUpdateable() { + return capabilityPWCUpdateable; + } + + /** + * Sets the value of the capabilityPWCUpdateable property. + * + */ + public void setCapabilityPWCUpdateable(boolean value) { + this.capabilityPWCUpdateable = value; + } + + /** + * Gets the value of the capabilityPWCSearchable property. + * + */ + public boolean isCapabilityPWCSearchable() { + return capabilityPWCSearchable; + } + + /** + * Sets the value of the capabilityPWCSearchable property. + * + */ + public void setCapabilityPWCSearchable(boolean value) { + this.capabilityPWCSearchable = value; + } + + /** + * Gets the value of the capabilityAllVersionsSearchable property. + * + */ + public boolean isCapabilityAllVersionsSearchable() { + return capabilityAllVersionsSearchable; + } + + /** + * Sets the value of the capabilityAllVersionsSearchable property. + * + */ + public void setCapabilityAllVersionsSearchable(boolean value) { + this.capabilityAllVersionsSearchable = value; + } + + /** + * Gets the value of the capabilityQuery property. + * + * @return + * possible object is + * {@link EnumCapabilityQuery } + * + */ + public EnumCapabilityQuery getCapabilityQuery() { + return capabilityQuery; + } + + /** + * Sets the value of the capabilityQuery property. + * + * @param value + * allowed object is + * {@link EnumCapabilityQuery } + * + */ + public void setCapabilityQuery(EnumCapabilityQuery value) { + this.capabilityQuery = value; + } + + /** + * Gets the value of the capabilityJoin property. + * + * @return + * possible object is + * {@link EnumCapabilityJoin } + * + */ + public EnumCapabilityJoin getCapabilityJoin() { + return capabilityJoin; + } + + /** + * Sets the value of the capabilityJoin property. + * + * @param value + * allowed object is + * {@link EnumCapabilityJoin } + * + */ + public void setCapabilityJoin(EnumCapabilityJoin value) { + this.capabilityJoin = value; + } + + /** + * Gets the value of the capabilityFullText property. + * + * @return + * possible object is + * {@link EnumCapabilityFullText } + * + */ + public EnumCapabilityFullText getCapabilityFullText() { + return capabilityFullText; + } + + /** + * Sets the value of the capabilityFullText property. + * + * @param value + * allowed object is + * {@link EnumCapabilityFullText } + * + */ + public void setCapabilityFullText(EnumCapabilityFullText value) { + this.capabilityFullText = 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 Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelatedRepositoriesType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java similarity index 50% rename from source/generated/org/alfresco/repo/cmis/ws/RelatedRepositoriesType.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java index 66fc59a339..478a12b072 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RelatedRepositoriesType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryEntryType.java @@ -1,27 +1,37 @@ package org.alfresco.repo.cmis.ws; +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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; /** - *

Java class for relatedRepositoriesType complex type. + *

Java class for cmisRepositoryEntryType complex type. * *

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

- * <complexType name="relatedRepositoriesType">
+ * <complexType name="cmisRepositoryEntryType">
  *   <complexContent>
  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       <sequence>
- *         <element name="repositoryID" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *         <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"/>
- *         <element name="repositoryRelationshipName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <any/>
  *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
  *     </restriction>
  *   </complexContent>
  * </complexType>
@@ -30,22 +40,25 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "relatedRepositoriesType", propOrder = {
+@XmlType(name = "cmisRepositoryEntryType", propOrder = {
     "repositoryID",
     "repositoryName",
     "repositoryURI",
-    "repositoryRelationshipName"
+    "any"
 })
-public class RelatedRepositoriesType {
+public class CmisRepositoryEntryType {
 
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String repositoryID;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String repositoryName;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
+    @XmlSchemaType(name = "anyURI")
     protected String repositoryURI;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0")
-    protected String repositoryRelationshipName;
+    @XmlAnyElement(lax = true)
+    protected List any;
+    @XmlAnyAttribute
+    private Map otherAttributes = new HashMap();
 
     /**
      * Gets the value of the repositoryID property.
@@ -120,27 +133,51 @@ public class RelatedRepositoriesType {
     }
 
     /**
-     * Gets the value of the repositoryRelationshipName property.
+     * 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 } + * * - * @return - * possible object is - * {@link String } - * */ - public String getRepositoryRelationshipName() { - return repositoryRelationshipName; + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; } /** - * Sets the value of the repositoryRelationshipName property. + * Gets a map that contains attributes that aren't bound to any typed property on this class. * - * @param value - * allowed object is - * {@link String } - * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null */ - public void setRepositoryRelationshipName(String value) { - this.repositoryRelationshipName = value; + public Map getOtherAttributes() { + return otherAttributes; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java old mode 100644 new mode 100755 similarity index 67% rename from source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java rename to source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java index a9e094fd64..6179045207 --- a/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisRepositoryInfoType.java @@ -2,36 +2,43 @@ package org.alfresco.repo.cmis.ws; 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; /** - *

Java class for repositoryInfoType complex type. + *

Java class for cmisRepositoryInfoType complex type. * *

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

- * <complexType name="repositoryInfoType">
+ * <complexType name="cmisRepositoryInfoType">
  *   <complexContent>
  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       <sequence>
- *         <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *         <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"/>
- *         <element name="repositoryDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         <element name="rootFolderId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *         <element name="repositoryRelationship" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositoryDescription" type="{http://www.w3.org/2001/XMLSchema}string"/>
  *         <element name="vendorName" type="{http://www.w3.org/2001/XMLSchema}string"/>
  *         <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
  *         <element name="productVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="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/ns/1.0}XML" minOccurs="0"/>
- *         <element name="capabilities" type="{http://www.cmis.org/ns/1.0}capabilitiesType"/>
- *         <element name="relatedRepositories" type="{http://www.cmis.org/ns/1.0}relatedRepositoriesType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="repositorySpecificInformation" type="{http://www.cmis.org/2008/05}cmisAnyXml" minOccurs="0"/>
+ *         <any/>
  *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
  *     </restriction>
  *   </complexContent>
  * </complexType>
@@ -40,46 +47,47 @@ import javax.xml.bind.annotation.XmlType;
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "repositoryInfoType", propOrder = {
+@XmlType(name = "cmisRepositoryInfoType", propOrder = {
     "repositoryId",
     "repositoryName",
-    "repositoryURI",
+    "repositoryRelationship",
     "repositoryDescription",
-    "rootFolderId",
     "vendorName",
     "productName",
     "productVersion",
+    "rootFolderId",
+    "capabilities",
     "cmisVersionsSupported",
     "repositorySpecificInformation",
-    "capabilities",
-    "relatedRepositories"
+    "any"
 })
-public class RepositoryInfoType {
+public class CmisRepositoryInfoType {
 
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String repositoryId;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String repositoryName;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
-    protected String repositoryURI;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0")
+    @XmlElement(required = true)
+    protected String repositoryRelationship;
+    @XmlElement(required = true)
     protected String repositoryDescription;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
-    protected String rootFolderId;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String vendorName;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String productName;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
     protected String productVersion;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
+    @XmlElement(required = true)
+    protected String rootFolderId;
+    @XmlElement(required = true)
+    protected CmisRepositoryCapabilitiesType capabilities;
+    @XmlElement(required = true)
     protected String cmisVersionsSupported;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0")
-    protected XML repositorySpecificInformation;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
-    protected CapabilitiesType capabilities;
-    @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true)
-    protected List relatedRepositories;
+    protected CmisAnyXml repositorySpecificInformation;
+    @XmlAnyElement(lax = true)
+    protected List any;
+    @XmlAnyAttribute
+    private Map otherAttributes = new HashMap();
 
     /**
      * Gets the value of the repositoryId property.
@@ -130,27 +138,27 @@ public class RepositoryInfoType {
     }
 
     /**
-     * Gets the value of the repositoryURI property.
+     * Gets the value of the repositoryRelationship property.
      * 
      * @return
      *     possible object is
      *     {@link String }
      *     
      */
-    public String getRepositoryURI() {
-        return repositoryURI;
+    public String getRepositoryRelationship() {
+        return repositoryRelationship;
     }
 
     /**
-     * Sets the value of the repositoryURI property.
+     * Sets the value of the repositoryRelationship property.
      * 
      * @param value
      *     allowed object is
      *     {@link String }
      *     
      */
-    public void setRepositoryURI(String value) {
-        this.repositoryURI = value;
+    public void setRepositoryRelationship(String value) {
+        this.repositoryRelationship = value;
     }
 
     /**
@@ -177,30 +185,6 @@ public class RepositoryInfoType {
         this.repositoryDescription = value;
     }
 
-    /**
-     * Gets the value of the rootFolderId property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link String }
-     *     
-     */
-    public String getRootFolderId() {
-        return rootFolderId;
-    }
-
-    /**
-     * Sets the value of the rootFolderId property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *     
-     */
-    public void setRootFolderId(String value) {
-        this.rootFolderId = value;
-    }
-
     /**
      * Gets the value of the vendorName property.
      * 
@@ -273,6 +257,54 @@ public class RepositoryInfoType {
         this.productVersion = value;
     }
 
+    /**
+     * Gets the value of the rootFolderId property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getRootFolderId() {
+        return rootFolderId;
+    }
+
+    /**
+     * Sets the value of the rootFolderId property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setRootFolderId(String value) {
+        this.rootFolderId = value;
+    }
+
+    /**
+     * Gets the value of the capabilities property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link CmisRepositoryCapabilitiesType }
+     *     
+     */
+    public CmisRepositoryCapabilitiesType getCapabilities() {
+        return capabilities;
+    }
+
+    /**
+     * Sets the value of the capabilities property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link CmisRepositoryCapabilitiesType }
+     *     
+     */
+    public void setCapabilities(CmisRepositoryCapabilitiesType value) {
+        this.capabilities = value;
+    }
+
     /**
      * Gets the value of the cmisVersionsSupported property.
      * 
@@ -302,10 +334,10 @@ public class RepositoryInfoType {
      * 
      * @return
      *     possible object is
-     *     {@link XML }
+     *     {@link CmisAnyXml }
      *     
      */
-    public XML getRepositorySpecificInformation() {
+    public CmisAnyXml getRepositorySpecificInformation() {
         return repositorySpecificInformation;
     }
 
@@ -314,64 +346,59 @@ public class RepositoryInfoType {
      * 
      * @param value
      *     allowed object is
-     *     {@link XML }
+     *     {@link CmisAnyXml }
      *     
      */
-    public void setRepositorySpecificInformation(XML value) {
+    public void setRepositorySpecificInformation(CmisAnyXml value) {
         this.repositorySpecificInformation = value;
     }
 
     /**
-     * Gets the value of the capabilities property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link CapabilitiesType }
-     *     
-     */
-    public CapabilitiesType getCapabilities() {
-        return capabilities;
-    }
-
-    /**
-     * Sets the value of the capabilities property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link CapabilitiesType }
-     *     
-     */
-    public void setCapabilities(CapabilitiesType value) {
-        this.capabilities = value;
-    }
-
-    /**
-     * Gets the value of the relatedRepositories property.
+     * 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 relatedRepositories property. + * This is why there is not a set method for the any property. * *

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

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

* Objects of the following type(s) are allowed in the list - * {@link RelatedRepositoriesType } + * {@link Element } + * {@link Object } * * */ - public List getRelatedRepositories() { - if (relatedRepositories == null) { - relatedRepositories = new ArrayList(); + public List getAny() { + if (any == null) { + any = new ArrayList(); } - return this.relatedRepositories; + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java new file mode 100755 index 0000000000..3664a70019 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDefinitionType.java @@ -0,0 +1,456 @@ + +package org.alfresco.repo.cmis.ws; + +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.XmlElements; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisTypeDefinitionType complex type. + * + *

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

+ * <complexType name="cmisTypeDefinitionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <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="baseTypeQueryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="parentId" type="{http://www.w3.org/2001/XMLSchema}anyType" 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"/>
+ *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <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"/>
+ *         </choice>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisTypeDefinitionType", propOrder = { + "typeId", + "queryName", + "displayName", + "baseType", + "baseTypeQueryName", + "parentId", + "description", + "creatable", + "fileable", + "queryable", + "controllable", + "includedInSupertypeQuery", + "propertyDefinition", + "any" +}) +@XmlSeeAlso({ + CmisTypeFolderDefinitionType.class, + CmisTypeRelationshipDefinitionType.class, + CmisTypeDocumentDefinitionType.class, + CmisTypePolicyDefinitionType.class +}) +public class CmisTypeDefinitionType { + + @XmlElement(required = true) + protected String typeId; + @XmlElement(required = true) + protected String queryName; + @XmlElement(required = true) + protected String displayName; + @XmlElement(required = true) + protected EnumObjectType baseType; + @XmlElement(required = true) + protected String baseTypeQueryName; + protected Object parentId; + protected String description; + protected boolean creatable; + protected boolean fileable; + protected boolean queryable; + protected boolean controllable; + @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) + }) + protected List propertyDefinition; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the queryName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQueryName() { + return queryName; + } + + /** + * Sets the value of the queryName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQueryName(String value) { + this.queryName = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the baseType property. + * + * @return + * possible object is + * {@link EnumObjectType } + * + */ + public EnumObjectType getBaseType() { + return baseType; + } + + /** + * Sets the value of the baseType property. + * + * @param value + * allowed object is + * {@link EnumObjectType } + * + */ + public void setBaseType(EnumObjectType value) { + this.baseType = value; + } + + /** + * Gets the value of the baseTypeQueryName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBaseTypeQueryName() { + return baseTypeQueryName; + } + + /** + * Sets the value of the baseTypeQueryName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBaseTypeQueryName(String value) { + this.baseTypeQueryName = value; + } + + /** + * Gets the value of the parentId property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getParentId() { + return parentId; + } + + /** + * Sets the value of the parentId property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setParentId(Object value) { + this.parentId = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the creatable property. + * + */ + public boolean isCreatable() { + return creatable; + } + + /** + * Sets the value of the creatable property. + * + */ + public void setCreatable(boolean value) { + this.creatable = value; + } + + /** + * Gets the value of the fileable property. + * + */ + public boolean isFileable() { + return fileable; + } + + /** + * Sets the value of the fileable property. + * + */ + public void setFileable(boolean value) { + this.fileable = value; + } + + /** + * Gets the value of the queryable property. + * + */ + public boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + */ + public void setQueryable(boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the controllable property. + * + */ + public boolean isControllable() { + return controllable; + } + + /** + * Sets the value of the controllable property. + * + */ + public void setControllable(boolean value) { + this.controllable = value; + } + + /** + * Gets the value of the includedInSupertypeQuery property. + * + */ + public boolean isIncludedInSupertypeQuery() { + return includedInSupertypeQuery; + } + + /** + * Sets the value of the includedInSupertypeQuery property. + * + */ + public void setIncludedInSupertypeQuery(boolean value) { + this.includedInSupertypeQuery = value; + } + + /** + * Gets the value of the propertyDefinition 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 propertyDefinition property. + * + *

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

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

+ * 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 CmisPropertyBooleanDefinitionType } + * + * + */ + public List getPropertyDefinition() { + if (propertyDefinition == null) { + propertyDefinition = new ArrayList(); + } + return this.propertyDefinition; + } + + /** + * 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 } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java new file mode 100755 index 0000000000..4749b16dbd --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeDocumentDefinitionType.java @@ -0,0 +1,83 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisTypeDocumentDefinitionType complex type. + * + *

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

+ * <complexType name="cmisTypeDocumentDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *       <sequence>
+ *         <element name="versionable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="contentStreamAllowed" type="{http://www.cmis.org/2008/05}enumContentStreamAllowed"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisTypeDocumentDefinitionType", propOrder = { + "versionable", + "contentStreamAllowed" +}) +public class CmisTypeDocumentDefinitionType + extends CmisTypeDefinitionType +{ + + protected boolean versionable; + @XmlElement(required = true) + protected EnumContentStreamAllowed contentStreamAllowed; + + /** + * Gets the value of the versionable property. + * + */ + public boolean isVersionable() { + return versionable; + } + + /** + * Sets the value of the versionable property. + * + */ + public void setVersionable(boolean value) { + this.versionable = value; + } + + /** + * Gets the value of the contentStreamAllowed property. + * + * @return + * possible object is + * {@link EnumContentStreamAllowed } + * + */ + public EnumContentStreamAllowed getContentStreamAllowed() { + return contentStreamAllowed; + } + + /** + * Sets the value of the contentStreamAllowed property. + * + * @param value + * allowed object is + * {@link EnumContentStreamAllowed } + * + */ + public void setContentStreamAllowed(EnumContentStreamAllowed value) { + this.contentStreamAllowed = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java new file mode 100755 index 0000000000..92a24ecc5b --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeFolderDefinitionType.java @@ -0,0 +1,34 @@ + +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 cmisTypeFolderDefinitionType complex type. + * + *

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

+ * <complexType name="cmisTypeFolderDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *       <sequence>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisTypeFolderDefinitionType") +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 new file mode 100755 index 0000000000..f45e970383 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypePolicyDefinitionType.java @@ -0,0 +1,34 @@ + +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 cmisTypePolicyDefinitionType complex type. + * + *

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

+ * <complexType name="cmisTypePolicyDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisTypeDefinitionType">
+ *       <sequence>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisTypePolicyDefinitionType") +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 new file mode 100755 index 0000000000..aaa1ac38f4 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CmisTypeRelationshipDefinitionType.java @@ -0,0 +1,101 @@ + +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; + + +/** + *

Java class for cmisTypeRelationshipDefinitionType complex type. + * + *

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

+ * <complexType name="cmisTypeRelationshipDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}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"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisTypeRelationshipDefinitionType", propOrder = { + "allowedSourceTypes", + "allowedTargetTypes" +}) +public class CmisTypeRelationshipDefinitionType + extends CmisTypeDefinitionType +{ + + protected List allowedSourceTypes; + protected List allowedTargetTypes; + + /** + * Gets the value of the allowedSourceTypes 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 allowedSourceTypes property. + * + *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getAllowedTargetTypes() { + if (allowedTargetTypes == null) { + allowedTargetTypes = new ArrayList(); + } + return this.allowedTargetTypes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java index 7f6ab31144..e463b4a0cb 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "constraintViolationException", targetNamespace = "http://www.cmis.org/2008/05") public class ConstraintViolationException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault constraintViolationException; + private org.alfresco.repo.cmis.ws.ConstraintViolationExceptionType constraintViolationException; public ConstraintViolationException() { super(); @@ -30,17 +29,17 @@ public class ConstraintViolationException extends Exception { super(message, cause); } - public ConstraintViolationException(String message, org.alfresco.repo.cmis.ws.BasicFault constraintViolationException) { + 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.BasicFault constraintViolationException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..e69c375f20 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationExceptionType.java @@ -0,0 +1,32 @@ + +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 index bff3135e0e..8caad2573d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "contentAlreadyExistsException", targetNamespace = "http://www.cmis.org/2008/05") public class ContentAlreadyExistsException extends Exception { - public static final long serialVersionUID = 20080729182147L; + public static final long serialVersionUID = 20080905134438L; - private org.alfresco.repo.cmis.ws.BasicFault contentAlreadyExistsException; + private org.alfresco.repo.cmis.ws.ContentAlreadyExistsExceptionType contentAlreadyExistsException; public ContentAlreadyExistsException() { super(); @@ -30,17 +29,17 @@ public class ContentAlreadyExistsException extends Exception { super(message, cause); } - public ContentAlreadyExistsException(String message, org.alfresco.repo.cmis.ws.BasicFault contentAlreadyExistsException) { + 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.BasicFault contentAlreadyExistsException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..239882ae3f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ContentAlreadyExistsExceptionType.java @@ -0,0 +1,32 @@ + +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 a4ca57f6c7..93915c838d 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java @@ -1,35 +1,35 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for createDocument element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createDocument">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
- *           <element name="versioningState" type="{http://www.cmis.org/ns/1.0}versioningStateEnum" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="properties" type="{http://www.cmis.org/2008/05}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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -46,18 +46,17 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createDocument") public class CreateDocument { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String typeId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected PropertiesType properties; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + @XmlElement(required = true) + protected CmisPropertiesType properties; protected String folderId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected ContentStreamType contentStream; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected VersioningStateEnum versioningState; + @XmlElementRef(name = "contentStream", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement contentStream; + @XmlElementRef(name = "versioningState", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement versioningState; /** * Gets the value of the repositoryId property. @@ -112,10 +111,10 @@ public class CreateDocument { * * @return * possible object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public PropertiesType getProperties() { + public CmisPropertiesType getProperties() { return properties; } @@ -124,10 +123,10 @@ public class CreateDocument { * * @param value * allowed object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public void setProperties(PropertiesType value) { + public void setProperties(CmisPropertiesType value) { this.properties = value; } @@ -160,10 +159,10 @@ public class CreateDocument { * * @return * possible object is - * {@link ContentStreamType } + * {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >} * */ - public ContentStreamType getContentStream() { + public JAXBElement getContentStream() { return contentStream; } @@ -172,11 +171,11 @@ public class CreateDocument { * * @param value * allowed object is - * {@link ContentStreamType } + * {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >} * */ - public void setContentStream(ContentStreamType value) { - this.contentStream = value; + public void setContentStream(JAXBElement value) { + this.contentStream = ((JAXBElement ) value); } /** @@ -184,10 +183,10 @@ public class CreateDocument { * * @return * possible object is - * {@link VersioningStateEnum } + * {@link JAXBElement }{@code <}{@link EnumVersioningState }{@code >} * */ - public VersioningStateEnum getVersioningState() { + public JAXBElement getVersioningState() { return versioningState; } @@ -196,11 +195,11 @@ public class CreateDocument { * * @param value * allowed object is - * {@link VersioningStateEnum } + * {@link JAXBElement }{@code <}{@link EnumVersioningState }{@code >} * */ - public void setVersioningState(VersioningStateEnum value) { - this.versioningState = value; + public void setVersioningState(JAXBElement value) { + this.versioningState = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java index 4d3c5561d7..ab22df87a4 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for createDocumentResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createDocumentResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createDocumentResponse") public class CreateDocumentResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java index 72171c5f1b..d6974690b0 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java @@ -9,25 +9,23 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for createFolder element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createFolder">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/>
+ *         <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,13 +40,13 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createFolder") public class CreateFolder { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String typeId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected PropertiesType properties; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) + protected CmisPropertiesType properties; + @XmlElement(required = true) protected String folderId; /** @@ -104,10 +102,10 @@ public class CreateFolder { * * @return * possible object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public PropertiesType getProperties() { + public CmisPropertiesType getProperties() { return properties; } @@ -116,10 +114,10 @@ public class CreateFolder { * * @param value * allowed object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public void setProperties(PropertiesType value) { + public void setProperties(CmisPropertiesType value) { this.properties = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java index 95a06bc219..c014473a86 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for createFolderResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createFolderResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createFolderResponse") public class CreateFolderResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java b/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java index 1f4db49e68..f5cfce22e1 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreatePolicy.java @@ -1,33 +1,33 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for createPolicy element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createPolicy">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/>
+ *         <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,14 +42,14 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createPolicy") public class CreatePolicy { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String typeId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected PropertiesType properties; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String folderId; + @XmlElement(required = true) + protected CmisPropertiesType properties; + @XmlElementRef(name = "folderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement folderId; /** * Gets the value of the repositoryId property. @@ -104,10 +104,10 @@ public class CreatePolicy { * * @return * possible object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public PropertiesType getProperties() { + public CmisPropertiesType getProperties() { return properties; } @@ -116,10 +116,10 @@ public class CreatePolicy { * * @param value * allowed object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public void setProperties(PropertiesType value) { + public void setProperties(CmisPropertiesType value) { this.properties = value; } @@ -128,10 +128,10 @@ public class CreatePolicy { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFolderId() { + public JAXBElement getFolderId() { return folderId; } @@ -140,11 +140,11 @@ public class CreatePolicy { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFolderId(String value) { - this.folderId = value; + public void setFolderId(JAXBElement value) { + this.folderId = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreatePolicyResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreatePolicyResponse.java index 0bd508d2de..d5f2da8e00 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/CreatePolicyResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreatePolicyResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for createPolicyResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createPolicyResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createPolicyResponse") public class CreatePolicyResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java index 272600fa4f..52f0597337 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java @@ -9,26 +9,24 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for createRelationship element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createRelationship">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType"/>
- *           <element name="sourceObjectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="targetObjectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType"/>
+ *         <element name="sourceObjectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="targetObjectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -44,15 +42,15 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createRelationship") public class CreateRelationship { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String typeId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected PropertiesType properties; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) + protected CmisPropertiesType properties; + @XmlElement(required = true) protected String sourceObjectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String targetObjectId; /** @@ -108,10 +106,10 @@ public class CreateRelationship { * * @return * possible object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public PropertiesType getProperties() { + public CmisPropertiesType getProperties() { return properties; } @@ -120,10 +118,10 @@ public class CreateRelationship { * * @param value * allowed object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public void setProperties(PropertiesType value) { + public void setProperties(CmisPropertiesType value) { this.properties = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java index fad62443bf..c053735a56 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for createRelationshipResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="createRelationshipResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "createRelationshipResponse") public class CreateRelationshipResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java index d72245707d..701b146c60 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteAllVersions element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteAllVersions">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="versionSeriesId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="versionSeriesId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "deleteAllVersions") public class DeleteAllVersions { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String versionSeriesId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java index f5dc268c04..91aa50da60 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteAllVersionsResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteAllVersionsResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java index b3aa3651ad..187bc4fa2f 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteContentStream element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteContentStream">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "deleteContentStream") public class DeleteContentStream { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java index 92f2307253..ec4be7236f 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteContentStreamResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteContentStreamResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java index 2e2db5f2ee..72659e2381 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteObject element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteObject">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "deleteObject") public class DeleteObject { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java index 597cfe5770..7b5514c3d4 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteObjectResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteObjectResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java index 7485eaea57..07fb677168 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java @@ -1,33 +1,33 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for deleteTree element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteTree">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="unfileNonfolderObjects" type="{http://www.cmis.org/ns/1.0}unfileNonfolderObjectsEnum"/>
- *           <element name="continueOnFailure" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="unfileNonfolderObjects" type="{http://www.cmis.org/2008/05}enumUnfileNonfolderObjects"/>
+ *         <element name="continueOnFailure" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,14 +42,14 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "deleteTree") public class DeleteTree { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String folderId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected UnfileNonfolderObjectsEnum unfileNonfolderObjects; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean continueOnFailure; + @XmlElement(required = true) + protected EnumUnfileNonfolderObjects unfileNonfolderObjects; + @XmlElementRef(name = "continueOnFailure", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement continueOnFailure; /** * Gets the value of the repositoryId property. @@ -104,10 +104,10 @@ public class DeleteTree { * * @return * possible object is - * {@link UnfileNonfolderObjectsEnum } + * {@link EnumUnfileNonfolderObjects } * */ - public UnfileNonfolderObjectsEnum getUnfileNonfolderObjects() { + public EnumUnfileNonfolderObjects getUnfileNonfolderObjects() { return unfileNonfolderObjects; } @@ -116,10 +116,10 @@ public class DeleteTree { * * @param value * allowed object is - * {@link UnfileNonfolderObjectsEnum } + * {@link EnumUnfileNonfolderObjects } * */ - public void setUnfileNonfolderObjects(UnfileNonfolderObjectsEnum value) { + public void setUnfileNonfolderObjects(EnumUnfileNonfolderObjects value) { this.unfileNonfolderObjects = value; } @@ -128,10 +128,10 @@ public class DeleteTree { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isContinueOnFailure() { + public JAXBElement getContinueOnFailure() { return continueOnFailure; } @@ -140,11 +140,11 @@ public class DeleteTree { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setContinueOnFailure(Boolean value) { - this.continueOnFailure = value; + public void setContinueOnFailure(JAXBElement value) { + this.continueOnFailure = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java index 9aad0958ac..0d9f82d46d 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java @@ -8,36 +8,33 @@ import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; -import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; /** - *

Java class for deleteTreeResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="deleteTreeResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="failedToDelete">
- *             <complexType>
- *               <complexContent>
- *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                   <sequence>
- *                     <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID" maxOccurs="unbounded" minOccurs="0"/>
- *                   </sequence>
- *                 </restriction>
- *               </complexContent>
- *             </complexType>
- *           </element>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="failedToDelete">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -49,18 +46,18 @@ import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; @XmlRootElement(name = "deleteTreeResponse") public class DeleteTreeResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected FailedToDelete failedToDelete; + @XmlElement(required = true) + protected DeleteTreeResponse.FailedToDelete failedToDelete; /** * Gets the value of the failedToDelete property. * * @return * possible object is - * {@link FailedToDelete } + * {@link DeleteTreeResponse.FailedToDelete } * */ - public FailedToDelete getFailedToDelete() { + public DeleteTreeResponse.FailedToDelete getFailedToDelete() { return failedToDelete; } @@ -69,10 +66,10 @@ public class DeleteTreeResponse { * * @param value * allowed object is - * {@link FailedToDelete } + * {@link DeleteTreeResponse.FailedToDelete } * */ - public void setFailedToDelete(FailedToDelete value) { + public void setFailedToDelete(DeleteTreeResponse.FailedToDelete value) { this.failedToDelete = value; } @@ -87,7 +84,7 @@ public class DeleteTreeResponse { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID" maxOccurs="unbounded" minOccurs="0"/> + * <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -102,7 +99,6 @@ public class DeleteTreeResponse { }) public static class FailedToDelete { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) protected List objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java index c3ed004d70..349db7da86 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.DiscoveryServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:11 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:51 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "DiscoveryService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/DiscoveryService.wsdl") + +@WebServiceClient(name = "DiscoveryService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/DiscoveryService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class DiscoveryService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "DiscoveryService"); - public final static QName DiscoveryServicePort = new QName("http://www.cmis.org/ns/1.0", "DiscoveryServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class DiscoveryService extends Service { return super.getPort(DiscoveryServicePort, DiscoveryServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns DiscoveryServicePort + */ + @WebEndpoint(name = "DiscoveryServicePort") + public DiscoveryServicePort getDiscoveryServicePort(WebServiceFeature... features) { + return super.getPort(DiscoveryServicePort, DiscoveryServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java index c6f06605e8..8d1567fa9e 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/DiscoveryServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -7,24 +6,24 @@ 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; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:11 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:51 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "DiscoveryServicePort") + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "DiscoveryServicePort") +@XmlSeeAlso({ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - public interface DiscoveryServicePort { - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "queryResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "queryResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.QueryResponse query( - @WebParam(partName = "parameters", name = "query", targetNamespace = "http://www.cmis.org/ns/1.0") - Query parameters - ) throws RuntimeException, InvalidArgumentException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + public QueryResponse query( + @WebParam(partName = "parameters", name = "query", targetNamespace = "http://www.cmis.org/2008/05") + CmisQueryType parameters + ) throws PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityFullText.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityFullText.java new file mode 100755 index 0000000000..b1564f5936 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityFullText.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 enumCapabilityFullText. + * + *

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

+ *

+ * <simpleType name="enumCapabilityFullText">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="fulltextonly"/>
+ *     <enumeration value="fulltextandstructured"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumCapabilityFullText") +@XmlEnum +public enum EnumCapabilityFullText { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("fulltextonly") + FULLTEXTONLY("fulltextonly"), + @XmlEnumValue("fulltextandstructured") + FULLTEXTANDSTRUCTURED("fulltextandstructured"); + private final String value; + + EnumCapabilityFullText(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumCapabilityFullText fromValue(String v) { + for (EnumCapabilityFullText c: EnumCapabilityFullText.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 new file mode 100755 index 0000000000..e376d29812 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityJoin.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 enumCapabilityJoin. + * + *

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

+ *

+ * <simpleType name="enumCapabilityJoin">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="nojoin"/>
+ *     <enumeration value="inneronly"/>
+ *     <enumeration value="innerandouter"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumCapabilityJoin") +@XmlEnum +public enum EnumCapabilityJoin { + + @XmlEnumValue("nojoin") + NOJOIN("nojoin"), + @XmlEnumValue("inneronly") + INNERONLY("inneronly"), + @XmlEnumValue("innerandouter") + INNERANDOUTER("innerandouter"); + private final String value; + + EnumCapabilityJoin(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumCapabilityJoin fromValue(String v) { + for (EnumCapabilityJoin c: EnumCapabilityJoin.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java new file mode 100755 index 0000000000..d1c66688ca --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.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 enumCapabilityQuery. + * + *

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

+ *

+ * <simpleType name="enumCapabilityQuery">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="metadataonly"/>
+ *     <enumeration value="fulltextonly"/>
+ *     <enumeration value="both"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumCapabilityQuery") +@XmlEnum +public enum EnumCapabilityQuery { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("metadataonly") + METADATAONLY("metadataonly"), + @XmlEnumValue("fulltextonly") + FULLTEXTONLY("fulltextonly"), + @XmlEnumValue("both") + BOTH("both"); + private final String value; + + EnumCapabilityQuery(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumCapabilityQuery fromValue(String v) { + for (EnumCapabilityQuery c: EnumCapabilityQuery.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java new file mode 100755 index 0000000000..11401b726e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCardinality.java @@ -0,0 +1,51 @@ + +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 enumCardinality. + * + *

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

+ *

+ * <simpleType name="enumCardinality">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="single"/>
+ *     <enumeration value="multi"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumCardinality") +@XmlEnum +public enum EnumCardinality { + + @XmlEnumValue("single") + SINGLE("single"), + @XmlEnumValue("multi") + MULTI("multi"); + private final String value; + + EnumCardinality(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumCardinality fromValue(String v) { + for (EnumCardinality c: EnumCardinality.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java new file mode 100755 index 0000000000..6cf4f82e3b --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumCollectionType.java @@ -0,0 +1,66 @@ + +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 enumCollectionType. + * + *

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

+ *

+ * <simpleType name="enumCollectionType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="root-children"/>
+ *     <enumeration value="root-descendants"/>
+ *     <enumeration value="unfiled"/>
+ *     <enumeration value="checkedout"/>
+ *     <enumeration value="types-children"/>
+ *     <enumeration value="types-descendants"/>
+ *     <enumeration value="query"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumCollectionType") +@XmlEnum +public enum EnumCollectionType { + + @XmlEnumValue("root-children") + ROOT_CHILDREN("root-children"), + @XmlEnumValue("root-descendants") + ROOT_DESCENDANTS("root-descendants"), + @XmlEnumValue("unfiled") + UNFILED("unfiled"), + @XmlEnumValue("checkedout") + CHECKEDOUT("checkedout"), + @XmlEnumValue("types-children") + TYPES_CHILDREN("types-children"), + @XmlEnumValue("types-descendants") + TYPES_DESCENDANTS("types-descendants"), + @XmlEnumValue("query") + QUERY("query"); + private final String value; + + EnumCollectionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumCollectionType fromValue(String v) { + for (EnumCollectionType c: EnumCollectionType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ContentStreamAllowedEnum.java b/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java similarity index 56% rename from source/generated/org/alfresco/repo/cmis/ws/ContentStreamAllowedEnum.java rename to source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java index 48050e5157..25c82fccc3 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/ContentStreamAllowedEnum.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java @@ -3,17 +3,18 @@ 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 contentStreamAllowedEnum. + *

Java class for enumContentStreamAllowed. * *

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

*

- * <simpleType name="contentStreamAllowedEnum">
+ * <simpleType name="enumContentStreamAllowed">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="notAllowed"/>
+ *     <enumeration value="notallowed"/>
  *     <enumeration value="allowed"/>
  *     <enumeration value="required"/>
  *   </restriction>
@@ -21,18 +22,19 @@ import javax.xml.bind.annotation.XmlEnumValue;
  * 
* */ +@XmlType(name = "enumContentStreamAllowed") @XmlEnum -public enum ContentStreamAllowedEnum { +public enum EnumContentStreamAllowed { + @XmlEnumValue("notallowed") + NOTALLOWED("notallowed"), @XmlEnumValue("allowed") ALLOWED("allowed"), - @XmlEnumValue("notAllowed") - NOT_ALLOWED("notAllowed"), @XmlEnumValue("required") REQUIRED("required"); private final String value; - ContentStreamAllowedEnum(String v) { + EnumContentStreamAllowed(String v) { value = v; } @@ -40,13 +42,13 @@ public enum ContentStreamAllowedEnum { return value; } - public static ContentStreamAllowedEnum fromValue(String v) { - for (ContentStreamAllowedEnum c: ContentStreamAllowedEnum.values()) { + public static EnumContentStreamAllowed fromValue(String v) { + for (EnumContentStreamAllowed c: EnumContentStreamAllowed.values()) { if (c.value.equals(v)) { return c; } } - throw new IllegalArgumentException(v.toString()); + throw new IllegalArgumentException(v); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.java b/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.java new file mode 100755 index 0000000000..45fbe4e55a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumIncludeRelationships.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 enumIncludeRelationships. + * + *

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

+ *

+ * <simpleType name="enumIncludeRelationships">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="source"/>
+ *     <enumeration value="target"/>
+ *     <enumeration value="both"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumIncludeRelationships") +@XmlEnum +public enum EnumIncludeRelationships { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("source") + SOURCE("source"), + @XmlEnumValue("target") + TARGET("target"), + @XmlEnumValue("both") + BOTH("both"); + private final String value; + + EnumIncludeRelationships(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumIncludeRelationships fromValue(String v) { + for (EnumIncludeRelationships c: EnumIncludeRelationships.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.java new file mode 100755 index 0000000000..64cd594cd7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumObjectType.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 enumObjectType. + * + *

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

+ *

+ * <simpleType name="enumObjectType">
+ *   <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 = "enumObjectType") +@XmlEnum +public enum EnumObjectType { + + @XmlEnumValue("document") + DOCUMENT("document"), + @XmlEnumValue("folder") + FOLDER("folder"), + @XmlEnumValue("relationship") + RELATIONSHIP("relationship"), + @XmlEnumValue("policy") + POLICY("policy"); + private final String value; + + EnumObjectType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumObjectType fromValue(String v) { + for (EnumObjectType c: EnumObjectType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.java new file mode 100755 index 0000000000..5aef9d5265 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesBase.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 enumPropertiesBase. + * + *

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

+ *

+ * <simpleType name="enumPropertiesBase">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ObjectId"/>
+ *     <enumeration value="Uri"/>
+ *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="CreatedBy"/>
+ *     <enumeration value="CreationDate"/>
+ *     <enumeration value="LastModifiedBy"/>
+ *     <enumeration value="LastModificationDate"/>
+ *     <enumeration value="ChangeToken"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumPropertiesBase") +@XmlEnum +public enum EnumPropertiesBase { + + @XmlEnumValue("ObjectId") + OBJECT_ID("ObjectId"), + @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"); + private final String value; + + EnumPropertiesBase(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumPropertiesBase fromValue(String v) { + for (EnumPropertiesBase c: EnumPropertiesBase.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 new file mode 100755 index 0000000000..463d6ce7b0 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesFolder.java @@ -0,0 +1,75 @@ + +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 enumPropertiesFolder. + * + *

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

+ *

+ * <simpleType name="enumPropertiesFolder">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ObjectId"/>
+ *     <enumeration value="Uri"/>
+ *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="CreatedBy"/>
+ *     <enumeration value="CreationDate"/>
+ *     <enumeration value="LastModifiedBy"/>
+ *     <enumeration value="LastModificationDate"/>
+ *     <enumeration value="ChangeToken"/>
+ *     <enumeration value="ParentId"/>
+ *     <enumeration value="AllowedChildObjectTypeIds"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumPropertiesFolder") +@XmlEnum +public enum EnumPropertiesFolder { + + @XmlEnumValue("ObjectId") + OBJECT_ID("ObjectId"), + @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("ParentId") + PARENT_ID("ParentId"), + @XmlEnumValue("AllowedChildObjectTypeIds") + ALLOWED_CHILD_OBJECT_TYPE_IDS("AllowedChildObjectTypeIds"); + private final String value; + + EnumPropertiesFolder(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumPropertiesFolder fromValue(String v) { + for (EnumPropertiesFolder c: EnumPropertiesFolder.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java new file mode 100755 index 0000000000..16a3665104 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesPolicy.java @@ -0,0 +1,75 @@ + +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 enumPropertiesPolicy. + * + *

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

+ *

+ * <simpleType name="enumPropertiesPolicy">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ObjectId"/>
+ *     <enumeration value="Uri"/>
+ *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="CreatedBy"/>
+ *     <enumeration value="CreationDate"/>
+ *     <enumeration value="LastModifiedBy"/>
+ *     <enumeration value="LastModificationDate"/>
+ *     <enumeration value="ChangeToken"/>
+ *     <enumeration value="PolicyName"/>
+ *     <enumeration value="PolicyText"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumPropertiesPolicy") +@XmlEnum +public enum EnumPropertiesPolicy { + + @XmlEnumValue("ObjectId") + OBJECT_ID("ObjectId"), + @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("PolicyName") + POLICY_NAME("PolicyName"), + @XmlEnumValue("PolicyText") + POLICY_TEXT("PolicyText"); + private final String value; + + EnumPropertiesPolicy(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumPropertiesPolicy fromValue(String v) { + for (EnumPropertiesPolicy c: EnumPropertiesPolicy.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java new file mode 100755 index 0000000000..40be3b8483 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertiesRelationship.java @@ -0,0 +1,75 @@ + +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 enumPropertiesRelationship. + * + *

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

+ *

+ * <simpleType name="enumPropertiesRelationship">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ObjectId"/>
+ *     <enumeration value="Uri"/>
+ *     <enumeration value="ObjectTypeId"/>
+ *     <enumeration value="CreatedBy"/>
+ *     <enumeration value="CreationDate"/>
+ *     <enumeration value="LastModifiedBy"/>
+ *     <enumeration value="LastModificationDate"/>
+ *     <enumeration value="ChangeToken"/>
+ *     <enumeration value="SourceId"/>
+ *     <enumeration value="TargetId"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumPropertiesRelationship") +@XmlEnum +public enum EnumPropertiesRelationship { + + @XmlEnumValue("ObjectId") + OBJECT_ID("ObjectId"), + @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("SourceId") + SOURCE_ID("SourceId"), + @XmlEnumValue("TargetId") + TARGET_ID("TargetId"); + private final String value; + + EnumPropertiesRelationship(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumPropertiesRelationship fromValue(String v) { + for (EnumPropertiesRelationship c: EnumPropertiesRelationship.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java new file mode 100755 index 0000000000..a56e0008f4 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumPropertyType.java @@ -0,0 +1,72 @@ + +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 enumPropertyType. + * + *

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

+ *

+ * <simpleType name="enumPropertyType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="boolean"/>
+ *     <enumeration value="id"/>
+ *     <enumeration value="integer"/>
+ *     <enumeration value="datetime"/>
+ *     <enumeration value="decimal"/>
+ *     <enumeration value="html"/>
+ *     <enumeration value="string"/>
+ *     <enumeration value="uri"/>
+ *     <enumeration value="xml"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumPropertyType") +@XmlEnum +public enum EnumPropertyType { + + @XmlEnumValue("boolean") + BOOLEAN("boolean"), + @XmlEnumValue("id") + ID("id"), + @XmlEnumValue("integer") + INTEGER("integer"), + @XmlEnumValue("datetime") + DATETIME("datetime"), + @XmlEnumValue("decimal") + DECIMAL("decimal"), + @XmlEnumValue("html") + HTML("html"), + @XmlEnumValue("string") + STRING("string"), + @XmlEnumValue("uri") + URI("uri"), + @XmlEnumValue("xml") + XML("xml"); + private final String value; + + EnumPropertyType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumPropertyType fromValue(String v) { + for (EnumPropertyType c: EnumPropertyType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java old mode 100644 new mode 100755 similarity index 55% rename from source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java rename to source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java index c3d79b16b1..59a8969892 --- a/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRelationshipDirection.java @@ -3,36 +3,38 @@ 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 relationshipDirectionEnum. + *

Java class for enumRelationshipDirection. * *

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

*

- * <simpleType name="relationshipDirectionEnum">
+ * <simpleType name="enumRelationshipDirection">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
  *     <enumeration value="source"/>
  *     <enumeration value="target"/>
- *     <enumeration value="either"/>
+ *     <enumeration value="both"/>
  *   </restriction>
  * </simpleType>
  * 
* */ +@XmlType(name = "enumRelationshipDirection") @XmlEnum -public enum RelationshipDirectionEnum { +public enum EnumRelationshipDirection { - @XmlEnumValue("either") - EITHER("either"), @XmlEnumValue("source") SOURCE("source"), @XmlEnumValue("target") - TARGET("target"); + TARGET("target"), + @XmlEnumValue("both") + BOTH("both"); private final String value; - RelationshipDirectionEnum(String v) { + EnumRelationshipDirection(String v) { value = v; } @@ -40,13 +42,13 @@ public enum RelationshipDirectionEnum { return value; } - public static RelationshipDirectionEnum fromValue(String v) { - for (RelationshipDirectionEnum c: RelationshipDirectionEnum.values()) { + public static EnumRelationshipDirection fromValue(String v) { + for (EnumRelationshipDirection c: EnumRelationshipDirection.values()) { if (c.value.equals(v)) { return c; } } - throw new IllegalArgumentException(v.toString()); + throw new IllegalArgumentException(v); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java new file mode 100755 index 0000000000..be7b83db04 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRepositoryRelationship.java @@ -0,0 +1,63 @@ + +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 enumRepositoryRelationship. + * + *

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

+ *

+ * <simpleType name="enumRepositoryRelationship">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="self"/>
+ *     <enumeration value="replica"/>
+ *     <enumeration value="peer"/>
+ *     <enumeration value="parent"/>
+ *     <enumeration value="child"/>
+ *     <enumeration value="archive"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumRepositoryRelationship") +@XmlEnum +public enum EnumRepositoryRelationship { + + @XmlEnumValue("self") + SELF("self"), + @XmlEnumValue("replica") + REPLICA("replica"), + @XmlEnumValue("peer") + PEER("peer"), + @XmlEnumValue("parent") + PARENT("parent"), + @XmlEnumValue("child") + CHILD("child"), + @XmlEnumValue("archive") + ARCHIVE("archive"); + private final String value; + + EnumRepositoryRelationship(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumRepositoryRelationship fromValue(String v) { + for (EnumRepositoryRelationship c: EnumRepositoryRelationship.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.java new file mode 100755 index 0000000000..310f2bb65c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRestArguments.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 enumRestArguments. + * + *

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

+ *

+ * <simpleType name="enumRestArguments">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="childTypes"/>
+ *     <enumeration value="continueOnFailure"/>
+ *     <enumeration value="depth"/>
+ *     <enumeration value="direction"/>
+ *     <enumeration value="filter"/>
+ *     <enumeration value="folderByPath"/>
+ *     <enumeration value="includeAllowableActions"/>
+ *     <enumeration value="includePropertyDefinitions"/>
+ *     <enumeration value="includeRelationships"/>
+ *     <enumeration value="includeSubrelationshipTypes"/>
+ *     <enumeration value="length"/>
+ *     <enumeration value="majorVersion"/>
+ *     <enumeration value="maxItems"/>
+ *     <enumeration value="offset"/>
+ *     <enumeration value="removeFrom"/>
+ *     <enumeration value="relationshipType"/>
+ *     <enumeration value="repositoryId"/>
+ *     <enumeration value="returnToRoot"/>
+ *     <enumeration value="returnVersion"/>
+ *     <enumeration value="skipCount"/>
+ *     <enumeration value="thisVersion"/>
+ *     <enumeration value="typeId"/>
+ *     <enumeration value="types"/>
+ *     <enumeration value="unfileMultiFiledDocuments"/>
+ *     <enumeration value="versioningState"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumRestArguments") +@XmlEnum +public enum EnumRestArguments { + + @XmlEnumValue("childTypes") + CHILD_TYPES("childTypes"), + @XmlEnumValue("continueOnFailure") + CONTINUE_ON_FAILURE("continueOnFailure"), + @XmlEnumValue("depth") + DEPTH("depth"), + @XmlEnumValue("direction") + DIRECTION("direction"), + @XmlEnumValue("filter") + FILTER("filter"), + @XmlEnumValue("folderByPath") + FOLDER_BY_PATH("folderByPath"), + @XmlEnumValue("includeAllowableActions") + INCLUDE_ALLOWABLE_ACTIONS("includeAllowableActions"), + @XmlEnumValue("includePropertyDefinitions") + INCLUDE_PROPERTY_DEFINITIONS("includePropertyDefinitions"), + @XmlEnumValue("includeRelationships") + INCLUDE_RELATIONSHIPS("includeRelationships"), + @XmlEnumValue("includeSubrelationshipTypes") + INCLUDE_SUBRELATIONSHIP_TYPES("includeSubrelationshipTypes"), + @XmlEnumValue("length") + LENGTH("length"), + @XmlEnumValue("majorVersion") + MAJOR_VERSION("majorVersion"), + @XmlEnumValue("maxItems") + MAX_ITEMS("maxItems"), + @XmlEnumValue("offset") + OFFSET("offset"), + @XmlEnumValue("removeFrom") + REMOVE_FROM("removeFrom"), + @XmlEnumValue("relationshipType") + RELATIONSHIP_TYPE("relationshipType"), + @XmlEnumValue("repositoryId") + REPOSITORY_ID("repositoryId"), + @XmlEnumValue("returnToRoot") + RETURN_TO_ROOT("returnToRoot"), + @XmlEnumValue("returnVersion") + RETURN_VERSION("returnVersion"), + @XmlEnumValue("skipCount") + SKIP_COUNT("skipCount"), + @XmlEnumValue("thisVersion") + THIS_VERSION("thisVersion"), + @XmlEnumValue("typeId") + TYPE_ID("typeId"), + @XmlEnumValue("types") + TYPES("types"), + @XmlEnumValue("unfileMultiFiledDocuments") + UNFILE_MULTI_FILED_DOCUMENTS("unfileMultiFiledDocuments"), + @XmlEnumValue("versioningState") + VERSIONING_STATE("versioningState"); + private final String value; + + EnumRestArguments(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumRestArguments fromValue(String v) { + for (EnumRestArguments c: EnumRestArguments.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java b/source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java old mode 100644 new mode 100755 similarity index 50% rename from source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java rename to source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java index 19969764c7..2261d692d9 --- a/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumRestOutputHeaders.java @@ -3,33 +3,32 @@ 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 cardinalityEnum. + *

Java class for enumRestOutputHeaders. * *

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

*

- * <simpleType name="cardinalityEnum">
+ * <simpleType name="enumRestOutputHeaders">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="singleValued"/>
- *     <enumeration value="multiValued"/>
+ *     <enumeration value="contentCopied"/>
  *   </restriction>
  * </simpleType>
  * 
* */ +@XmlType(name = "enumRestOutputHeaders") @XmlEnum -public enum CardinalityEnum { +public enum EnumRestOutputHeaders { - @XmlEnumValue("multiValued") - MULTI_VALUED("multiValued"), - @XmlEnumValue("singleValued") - SINGLE_VALUED("singleValued"); + @XmlEnumValue("contentCopied") + CONTENT_COPIED("contentCopied"); private final String value; - CardinalityEnum(String v) { + EnumRestOutputHeaders(String v) { value = v; } @@ -37,13 +36,13 @@ public enum CardinalityEnum { return value; } - public static CardinalityEnum fromValue(String v) { - for (CardinalityEnum c: CardinalityEnum.values()) { + public static EnumRestOutputHeaders fromValue(String v) { + for (EnumRestOutputHeaders c: EnumRestOutputHeaders.values()) { if (c.value.equals(v)) { return c; } } - throw new IllegalArgumentException(v.toString()); + throw new IllegalArgumentException(v); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java old mode 100644 new mode 100755 similarity index 56% rename from source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java rename to source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java index 14ad786f84..0badec073c --- a/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumReturnVersion.java @@ -3,36 +3,38 @@ 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 versionEnum. + *

Java class for enumReturnVersion. * *

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

*

- * <simpleType name="versionEnum">
+ * <simpleType name="enumReturnVersion">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
  *     <enumeration value="this"/>
  *     <enumeration value="latest"/>
- *     <enumeration value="latestMajor"/>
+ *     <enumeration value="latestmajor"/>
  *   </restriction>
  * </simpleType>
  * 
* */ +@XmlType(name = "enumReturnVersion") @XmlEnum -public enum VersionEnum { +public enum EnumReturnVersion { + @XmlEnumValue("this") + THIS("this"), @XmlEnumValue("latest") LATEST("latest"), - @XmlEnumValue("latestMajor") - LATEST_MAJOR("latestMajor"), - @XmlEnumValue("this") - THIS("this"); + @XmlEnumValue("latestmajor") + LATESTMAJOR("latestmajor"); private final String value; - VersionEnum(String v) { + EnumReturnVersion(String v) { value = v; } @@ -40,13 +42,13 @@ public enum VersionEnum { return value; } - public static VersionEnum fromValue(String v) { - for (VersionEnum c: VersionEnum.values()) { + public static EnumReturnVersion fromValue(String v) { + for (EnumReturnVersion c: EnumReturnVersion.values()) { if (c.value.equals(v)) { return c; } } - throw new IllegalArgumentException(v.toString()); + 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 new file mode 100755 index 0000000000..c89071f554 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumTypesOfFileableObjects.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 enumTypesOfFileableObjects. + * + *

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

+ *

+ * <simpleType name="enumTypesOfFileableObjects">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="documents"/>
+ *     <enumeration value="folders"/>
+ *     <enumeration value="policies"/>
+ *     <enumeration value="any"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumTypesOfFileableObjects") +@XmlEnum +public enum EnumTypesOfFileableObjects { + + @XmlEnumValue("documents") + DOCUMENTS("documents"), + @XmlEnumValue("folders") + FOLDERS("folders"), + @XmlEnumValue("policies") + POLICIES("policies"), + @XmlEnumValue("any") + ANY("any"); + private final String value; + + EnumTypesOfFileableObjects(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumTypesOfFileableObjects fromValue(String v) { + for (EnumTypesOfFileableObjects c: EnumTypesOfFileableObjects.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UnfileNonfolderObjectsEnum.java b/source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java similarity index 51% rename from source/generated/org/alfresco/repo/cmis/ws/UnfileNonfolderObjectsEnum.java rename to source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java index a60157d910..d9893bd4cd 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/UnfileNonfolderObjectsEnum.java +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumUnfileNonfolderObjects.java @@ -3,36 +3,38 @@ 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 unfileNonfolderObjectsEnum. + *

Java class for enumUnfileNonfolderObjects. * *

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

*

- * <simpleType name="unfileNonfolderObjectsEnum">
+ * <simpleType name="enumUnfileNonfolderObjects">
  *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
  *     <enumeration value="unfile"/>
- *     <enumeration value="deleteSingleFiled"/>
+ *     <enumeration value="deletesinglefiled"/>
  *     <enumeration value="delete"/>
  *   </restriction>
  * </simpleType>
  * 
* */ +@XmlType(name = "enumUnfileNonfolderObjects") @XmlEnum -public enum UnfileNonfolderObjectsEnum { +public enum EnumUnfileNonfolderObjects { - @XmlEnumValue("delete") - DELETE("delete"), - @XmlEnumValue("deleteSingleFiled") - DELETE_SINGLE_FILED("deleteSingleFiled"), @XmlEnumValue("unfile") - UNFILE("unfile"); + UNFILE("unfile"), + @XmlEnumValue("deletesinglefiled") + DELETESINGLEFILED("deletesinglefiled"), + @XmlEnumValue("delete") + DELETE("delete"); private final String value; - UnfileNonfolderObjectsEnum(String v) { + EnumUnfileNonfolderObjects(String v) { value = v; } @@ -40,13 +42,13 @@ public enum UnfileNonfolderObjectsEnum { return value; } - public static UnfileNonfolderObjectsEnum fromValue(String v) { - for (UnfileNonfolderObjectsEnum c: UnfileNonfolderObjectsEnum.values()) { + public static EnumUnfileNonfolderObjects fromValue(String v) { + for (EnumUnfileNonfolderObjects c: EnumUnfileNonfolderObjects.values()) { if (c.value.equals(v)) { return c; } } - throw new IllegalArgumentException(v.toString()); + 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 new file mode 100755 index 0000000000..2a6a643f95 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumUpdateability.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 enumUpdateability. + * + *

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

+ *

+ * <simpleType name="enumUpdateability">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="readonly"/>
+ *     <enumeration value="readwrite"/>
+ *     <enumeration value="whencheckedout"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumUpdateability") +@XmlEnum +public enum EnumUpdateability { + + @XmlEnumValue("readonly") + READONLY("readonly"), + @XmlEnumValue("readwrite") + READWRITE("readwrite"), + @XmlEnumValue("whencheckedout") + WHENCHECKEDOUT("whencheckedout"); + private final String value; + + EnumUpdateability(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumUpdateability fromValue(String v) { + for (EnumUpdateability c: EnumUpdateability.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.java b/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.java new file mode 100755 index 0000000000..ce2c2032a7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/EnumVersioningState.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 enumVersioningState. + * + *

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

+ *

+ * <simpleType name="enumVersioningState">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="checkedout"/>
+ *     <enumeration value="minor"/>
+ *     <enumeration value="major"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "enumVersioningState") +@XmlEnum +public enum EnumVersioningState { + + @XmlEnumValue("checkedout") + CHECKEDOUT("checkedout"), + @XmlEnumValue("minor") + MINOR("minor"), + @XmlEnumValue("major") + MAJOR("major"); + private final String value; + + EnumVersioningState(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EnumVersioningState fromValue(String v) { + for (EnumVersioningState c: EnumVersioningState.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java index 1fc4213065..f095a4078a 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "filterNotValidException", targetNamespace = "http://www.cmis.org/2008/05") public class FilterNotValidException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault filterNotValidException; + private org.alfresco.repo.cmis.ws.FilterNotValidExceptionType filterNotValidException; public FilterNotValidException() { super(); @@ -30,17 +29,17 @@ public class FilterNotValidException extends Exception { super(message, cause); } - public FilterNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault filterNotValidException) { + 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.BasicFault filterNotValidException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..bc1447acbf --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidExceptionType.java @@ -0,0 +1,32 @@ + +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 index 784ebc6c04..9b4e5f0994 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:19 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "folderNotValidException", targetNamespace = "http://www.cmis.org/2008/05") public class FolderNotValidException extends Exception { - public static final long serialVersionUID = 20080729182219L; + public static final long serialVersionUID = 20080905134455L; - private org.alfresco.repo.cmis.ws.BasicFault folderNotValidException; + private org.alfresco.repo.cmis.ws.FolderNotValidExceptionType folderNotValidException; public FolderNotValidException() { super(); @@ -30,17 +29,17 @@ public class FolderNotValidException extends Exception { super(message, cause); } - public FolderNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault folderNotValidException) { + 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.BasicFault folderNotValidException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..f759d492cf --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidExceptionType.java @@ -0,0 +1,32 @@ + +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/FolderTreeType.java b/source/generated/org/alfresco/repo/cmis/ws/FolderTreeType.java deleted file mode 100755 index f9af53353f..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/FolderTreeType.java +++ /dev/null @@ -1,64 +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.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for folderTreeType complex type. - * - *

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

- * <complexType name="folderTreeType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/ns/1.0}objectType">
- *       <sequence>
- *         <element name="children" type="{http://www.cmis.org/ns/1.0}childrenType" minOccurs="0"/>
- *       </sequence>
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "folderTreeType", propOrder = { - "children" -}) -public class FolderTreeType - extends ObjectType -{ - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected ChildrenType children; - - /** - * Gets the value of the children property. - * - * @return - * possible object is - * {@link ChildrenType } - * - */ - public ChildrenType getChildren() { - return children; - } - - /** - * Sets the value of the children property. - * - * @param value - * allowed object is - * {@link ChildrenType } - * - */ - public void setChildren(ChildrenType value) { - this.children = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FulltextEnum.java b/source/generated/org/alfresco/repo/cmis/ws/FulltextEnum.java deleted file mode 100755 index fb45cb4043..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/FulltextEnum.java +++ /dev/null @@ -1,52 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for fulltextEnum. - * - *

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

- *

- * <simpleType name="fulltextEnum">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="noFulltext"/>
- *     <enumeration value="fulltextOnly"/>
- *     <enumeration value="fulltextAndStructured"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum FulltextEnum { - - @XmlEnumValue("fulltextAndStructured") - FULLTEXT_AND_STRUCTURED("fulltextAndStructured"), - @XmlEnumValue("fulltextOnly") - FULLTEXT_ONLY("fulltextOnly"), - @XmlEnumValue("noFulltext") - NO_FULLTEXT("noFulltext"); - private final String value; - - FulltextEnum(String v) { - value = v; - } - - public String value() { - return value; - } - - public static FulltextEnum fromValue(String v) { - for (FulltextEnum c: FulltextEnum.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java index 4b23145980..038bd3e3b1 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java @@ -1,32 +1,34 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getAllVersions element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getAllVersions">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="versionSeriesId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -35,17 +37,23 @@ import javax.xml.bind.annotation.XmlType; @XmlType(name = "", propOrder = { "repositoryId", "versionSeriesId", - "filter" + "filter", + "includeAllowableActions", + "includeRelationships" }) @XmlRootElement(name = "getAllVersions") public class GetAllVersions { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String versionSeriesId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeAllowableActions; + @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -100,10 +108,10 @@ public class GetAllVersions { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -112,11 +120,59 @@ public class GetAllVersions { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeAllowableActions property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeAllowableActions() { + return includeAllowableActions; + } + + /** + * Sets the value of the includeAllowableActions property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + 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 0c6033f9dd..8cd1442f88 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java @@ -1,66 +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.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getAllVersionsResponse element declaration. + *

Java class for anonymous complex type. * *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getVersions() { - return versions; - } - - /** - * Sets the value of the versions property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setVersions(ObjectCollectionType value) { - this.versions = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java index 5a246c4516..d200cf8391 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java @@ -9,24 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getAllowableActions element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getAllowableActions">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="asUser" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -34,18 +31,15 @@ import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "repositoryId", - "objectId", - "asUser" + "objectId" }) @XmlRootElement(name = "getAllowableActions") public class GetAllowableActions { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String asUser; /** * Gets the value of the repositoryId property. @@ -95,28 +89,4 @@ public class GetAllowableActions { this.objectId = value; } - /** - * Gets the value of the asUser property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAsUser() { - return asUser; - } - - /** - * Sets the value of the asUser property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAsUser(String value) { - this.asUser = value; - } - } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java index 1525f7717f..84965c952a 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getAllowableActionsResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getAllowableActionsResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="allowableActions" type="{http://www.cmis.org/ns/1.0}allowableActionsType"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="allowableActions" type="{http://www.cmis.org/2008/05}cmisAllowableActionsType"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,18 +34,18 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getAllowableActionsResponse") public class GetAllowableActionsResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected AllowableActionsType allowableActions; + @XmlElement(required = true) + protected CmisAllowableActionsType allowableActions; /** * Gets the value of the allowableActions property. * * @return * possible object is - * {@link AllowableActionsType } + * {@link CmisAllowableActionsType } * */ - public AllowableActionsType getAllowableActions() { + public CmisAllowableActionsType getAllowableActions() { return allowableActions; } @@ -56,10 +54,10 @@ public class GetAllowableActionsResponse { * * @param value * allowed object is - * {@link AllowableActionsType } + * {@link CmisAllowableActionsType } * */ - public void setAllowableActions(AllowableActionsType value) { + public void setAllowableActions(CmisAllowableActionsType value) { this.allowableActions = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java index bc7a841c20..93c8513ad2 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPolicies.java @@ -1,32 +1,32 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getAppliedPolicies element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getAppliedPolicies">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -40,12 +40,12 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getAppliedPolicies") public class GetAppliedPolicies { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; /** * Gets the value of the repositoryId property. @@ -100,10 +100,10 @@ public class GetAppliedPolicies { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -112,11 +112,11 @@ public class GetAppliedPolicies { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java index 2d958df223..fa5105226d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAppliedPoliciesResponse.java @@ -1,66 +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.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getAppliedPoliciesResponse element declaration. + *

Java class for anonymous complex type. * *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getAppliedPolicies() { - return appliedPolicies; - } - - /** - * Sets the value of the appliedPolicies property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setAppliedPolicies(ObjectCollectionType value) { - this.appliedPolicies = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java index a4310eff48..7e64618566 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java @@ -2,35 +2,36 @@ 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 getCheckedoutDocs element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getCheckedoutDocs">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderID" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *           <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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="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="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>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -41,24 +42,27 @@ import javax.xml.bind.annotation.XmlType; "folderID", "filter", "includeAllowableActions", + "includeRelationships", "maxItems", "skipCount" }) @XmlRootElement(name = "getCheckedoutDocs") public class GetCheckedoutDocs { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String folderID; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger maxItems; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger skipCount; + @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) + protected JAXBElement filter; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", 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) + protected JAXBElement maxItems; + @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement skipCount; /** * Gets the value of the repositoryId property. @@ -89,10 +93,10 @@ public class GetCheckedoutDocs { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFolderID() { + public JAXBElement getFolderID() { return folderID; } @@ -101,11 +105,11 @@ public class GetCheckedoutDocs { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFolderID(String value) { - this.folderID = value; + public void setFolderID(JAXBElement value) { + this.folderID = ((JAXBElement ) value); } /** @@ -113,10 +117,10 @@ public class GetCheckedoutDocs { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -125,11 +129,11 @@ public class GetCheckedoutDocs { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); } /** @@ -137,10 +141,10 @@ public class GetCheckedoutDocs { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeAllowableActions() { + public JAXBElement getIncludeAllowableActions() { return includeAllowableActions; } @@ -149,11 +153,35 @@ public class GetCheckedoutDocs { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** @@ -161,10 +189,10 @@ public class GetCheckedoutDocs { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getMaxItems() { + public JAXBElement getMaxItems() { return maxItems; } @@ -173,11 +201,11 @@ public class GetCheckedoutDocs { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setMaxItems(BigInteger value) { - this.maxItems = value; + public void setMaxItems(JAXBElement value) { + this.maxItems = ((JAXBElement ) value); } /** @@ -185,10 +213,10 @@ public class GetCheckedoutDocs { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getSkipCount() { + public JAXBElement getSkipCount() { return skipCount; } @@ -197,11 +225,11 @@ public class GetCheckedoutDocs { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setSkipCount(BigInteger value) { - this.skipCount = value; + public void setSkipCount(JAXBElement value) { + this.skipCount = ((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 2e69adf2e5..f699eb45be 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java @@ -1,70 +1,72 @@ 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 getCheckedoutDocsResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getCheckedoutDocsResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="documents" type="{http://www.cmis.org/ns/1.0}objectCollectionType"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <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 name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "documents", + "object", "hasMoreItems" }) @XmlRootElement(name = "getCheckedoutDocsResponse") public class GetCheckedoutDocsResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ObjectCollectionType documents; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected List object; protected boolean hasMoreItems; /** - * Gets the value of the documents property. + * Gets the value of the object property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getDocuments() { - return documents; - } - - /** - * Sets the value of the documents property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setDocuments(ObjectCollectionType value) { - this.documents = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java index f772d22432..c4f88c1540 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java @@ -2,36 +2,37 @@ 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 getChildren element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getChildren">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="type" type="{http://www.cmis.org/ns/1.0}typesOfFileableObjectsEnum" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *           <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="type" type="{http://www.cmis.org/2008/05}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="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>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -43,26 +44,29 @@ import javax.xml.bind.annotation.XmlType; "type", "filter", "includeAllowableActions", + "includeRelationships", "maxItems", "skipCount" }) @XmlRootElement(name = "getChildren") public class GetChildren { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String folderId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected TypesOfFileableObjectsEnum type; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger maxItems; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger skipCount; + @XmlElementRef(name = "type", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement type; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", 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) + protected JAXBElement maxItems; + @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement skipCount; /** * Gets the value of the repositoryId property. @@ -117,10 +121,10 @@ public class GetChildren { * * @return * possible object is - * {@link TypesOfFileableObjectsEnum } + * {@link JAXBElement }{@code <}{@link EnumTypesOfFileableObjects }{@code >} * */ - public TypesOfFileableObjectsEnum getType() { + public JAXBElement getType() { return type; } @@ -129,11 +133,11 @@ public class GetChildren { * * @param value * allowed object is - * {@link TypesOfFileableObjectsEnum } + * {@link JAXBElement }{@code <}{@link EnumTypesOfFileableObjects }{@code >} * */ - public void setType(TypesOfFileableObjectsEnum value) { - this.type = value; + public void setType(JAXBElement value) { + this.type = ((JAXBElement ) value); } /** @@ -141,10 +145,10 @@ public class GetChildren { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -153,11 +157,11 @@ public class GetChildren { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); } /** @@ -165,10 +169,10 @@ public class GetChildren { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeAllowableActions() { + public JAXBElement getIncludeAllowableActions() { return includeAllowableActions; } @@ -177,11 +181,35 @@ public class GetChildren { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** @@ -189,10 +217,10 @@ public class GetChildren { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getMaxItems() { + public JAXBElement getMaxItems() { return maxItems; } @@ -201,11 +229,11 @@ public class GetChildren { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setMaxItems(BigInteger value) { - this.maxItems = value; + public void setMaxItems(JAXBElement value) { + this.maxItems = ((JAXBElement ) value); } /** @@ -213,10 +241,10 @@ public class GetChildren { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getSkipCount() { + public JAXBElement getSkipCount() { return skipCount; } @@ -225,11 +253,11 @@ public class GetChildren { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setSkipCount(BigInteger value) { - this.skipCount = value; + public void setSkipCount(JAXBElement value) { + this.skipCount = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java index f15e557a92..6e6b650a6d 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java @@ -1,70 +1,72 @@ 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 getChildrenResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getChildrenResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="children" type="{http://www.cmis.org/ns/1.0}childrenType"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <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 name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "children", + "object", "hasMoreItems" }) @XmlRootElement(name = "getChildrenResponse") public class GetChildrenResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ChildrenType children; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected List object; protected boolean hasMoreItems; /** - * Gets the value of the children property. + * Gets the value of the object property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ChildrenType } - * - */ - public ChildrenType getChildren() { - return children; - } - - /** - * Sets the value of the children property. * - * @param value - * allowed object is - * {@link ChildrenType } - * */ - public void setChildren(ChildrenType value) { - this.children = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java index 1f6c5ceeae..ea8fa4fa75 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java @@ -9,23 +9,21 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getContentStream element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getContentStream">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getContentStream") public class GetContentStream { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java index 7c1b671039..761001c298 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getContentStreamResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getContentStreamResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element ref="{http://www.cmis.org/ns/1.0}contentStream"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="contentStream" type="{http://www.cmis.org/2008/05}cmisContentStreamType"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,18 +34,18 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getContentStreamResponse") public class GetContentStreamResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ContentStreamType contentStream; + @XmlElement(required = true) + protected CmisContentStreamType contentStream; /** * Gets the value of the contentStream property. * * @return * possible object is - * {@link ContentStreamType } + * {@link CmisContentStreamType } * */ - public ContentStreamType getContentStream() { + public CmisContentStreamType getContentStream() { return contentStream; } @@ -56,10 +54,10 @@ public class GetContentStreamResponse { * * @param value * allowed object is - * {@link ContentStreamType } + * {@link CmisContentStreamType } * */ - public void setContentStream(ContentStreamType value) { + public void setContentStream(CmisContentStreamType value) { this.contentStream = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java index 1114a19386..cfddbe4ac0 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java @@ -2,35 +2,36 @@ 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 getDescendants element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getDescendants">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="type" type="{http://www.cmis.org/ns/1.0}typesOfFileableObjectsEnum" minOccurs="0"/>
- *           <element name="depth" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *           <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="folderId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="type" type="{http://www.cmis.org/2008/05}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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,23 +43,25 @@ import javax.xml.bind.annotation.XmlType; "type", "depth", "filter", - "includeAllowableActions" + "includeAllowableActions", + "includeRelationships" }) @XmlRootElement(name = "getDescendants") public class GetDescendants { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String folderId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected TypesOfFileableObjectsEnum type; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger depth; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; + protected EnumTypesOfFileableObjects type; + @XmlElementRef(name = "depth", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement depth; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeAllowableActions; + @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -113,10 +116,10 @@ public class GetDescendants { * * @return * possible object is - * {@link TypesOfFileableObjectsEnum } + * {@link EnumTypesOfFileableObjects } * */ - public TypesOfFileableObjectsEnum getType() { + public EnumTypesOfFileableObjects getType() { return type; } @@ -125,10 +128,10 @@ public class GetDescendants { * * @param value * allowed object is - * {@link TypesOfFileableObjectsEnum } + * {@link EnumTypesOfFileableObjects } * */ - public void setType(TypesOfFileableObjectsEnum value) { + public void setType(EnumTypesOfFileableObjects value) { this.type = value; } @@ -137,10 +140,10 @@ public class GetDescendants { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getDepth() { + public JAXBElement getDepth() { return depth; } @@ -149,11 +152,11 @@ public class GetDescendants { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setDepth(BigInteger value) { - this.depth = value; + public void setDepth(JAXBElement value) { + this.depth = ((JAXBElement ) value); } /** @@ -161,10 +164,10 @@ public class GetDescendants { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -173,11 +176,11 @@ public class GetDescendants { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); } /** @@ -185,10 +188,10 @@ public class GetDescendants { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeAllowableActions() { + public JAXBElement getIncludeAllowableActions() { return includeAllowableActions; } @@ -197,11 +200,35 @@ public class GetDescendants { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java index f21a55f59a..b8ed7bdadc 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java @@ -1,66 +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.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getDescendantsResponse element declaration. + *

Java class for anonymous complex type. * *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ChildrenType } - * - */ - public ChildrenType getDescendants() { - return descendants; - } - - /** - * Sets the value of the descendants property. * - * @param value - * allowed object is - * {@link ChildrenType } - * */ - public void setDescendants(ChildrenType value) { - this.descendants = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java index 29cc97ba95..3450ba290d 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java @@ -1,34 +1,35 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getFolderParent element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getFolderParent">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *           <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element name="returnToRoot" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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="returnToRoot" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -39,21 +40,23 @@ import javax.xml.bind.annotation.XmlType; "folderId", "filter", "includeAllowableActions", + "includeRelationships", "returnToRoot" }) @XmlRootElement(name = "getFolderParent") public class GetFolderParent { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String folderId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") protected String filter; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean returnToRoot; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", 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) + protected JAXBElement returnToRoot; /** * Gets the value of the repositoryId property. @@ -132,10 +135,10 @@ public class GetFolderParent { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeAllowableActions() { + public JAXBElement getIncludeAllowableActions() { return includeAllowableActions; } @@ -144,11 +147,35 @@ public class GetFolderParent { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** @@ -156,10 +183,10 @@ public class GetFolderParent { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isReturnToRoot() { + public JAXBElement getReturnToRoot() { return returnToRoot; } @@ -168,11 +195,11 @@ public class GetFolderParent { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setReturnToRoot(Boolean value) { - this.returnToRoot = value; + public void setReturnToRoot(JAXBElement value) { + this.returnToRoot = ((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 ab8e417e81..2b24c1f6b2 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java @@ -1,66 +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.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getFolderParentResponse element declaration. + *

Java class for anonymous complex type. * *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getAncestors() { - return ancestors; - } - - /** - * Sets the value of the ancestors property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setAncestors(ObjectCollectionType value) { - this.ancestors = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java index d3ba9d83e6..d8410550dd 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParents.java @@ -1,33 +1,34 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getObjectParents element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getObjectParents">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *           <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -37,19 +38,21 @@ import javax.xml.bind.annotation.XmlType; "repositoryId", "objectId", "filter", - "includeAllowableActions" + "includeAllowableActions", + "includeRelationships" }) @XmlRootElement(name = "getObjectParents") public class GetObjectParents { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") protected String filter; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeAllowableActions; + @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -128,10 +131,10 @@ public class GetObjectParents { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeAllowableActions() { + public JAXBElement getIncludeAllowableActions() { return includeAllowableActions; } @@ -140,11 +143,35 @@ public class GetObjectParents { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + 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 a1c0a2af1b..344ef7ab4c 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetObjectParentsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetObjectParentsResponse.java @@ -1,66 +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.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getObjectParentsResponse element declaration. + *

Java class for anonymous complex type. * *

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

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

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getParents() { - return parents; - } - - /** - * Sets the value of the parents property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setParents(ObjectCollectionType value) { - this.parents = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java index 2552ea2509..97e694be15 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java @@ -1,33 +1,35 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getProperties element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getProperties">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="returnVersion" type="{http://www.cmis.org/ns/1.0}versionEnum" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="returnVersion" type="{http://www.cmis.org/2008/05}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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -37,19 +39,25 @@ import javax.xml.bind.annotation.XmlType; "repositoryId", "objectId", "returnVersion", - "filter" + "filter", + "includeAllowableActions", + "includeRelationships" }) @XmlRootElement(name = "getProperties") public class GetProperties { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected VersionEnum returnVersion; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; + @XmlElementRef(name = "returnVersion", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement returnVersion; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeAllowableActions; + @XmlElementRef(name = "includeRelationships", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeRelationships; /** * Gets the value of the repositoryId property. @@ -104,10 +112,10 @@ public class GetProperties { * * @return * possible object is - * {@link VersionEnum } + * {@link JAXBElement }{@code <}{@link EnumReturnVersion }{@code >} * */ - public VersionEnum getReturnVersion() { + public JAXBElement getReturnVersion() { return returnVersion; } @@ -116,11 +124,11 @@ public class GetProperties { * * @param value * allowed object is - * {@link VersionEnum } + * {@link JAXBElement }{@code <}{@link EnumReturnVersion }{@code >} * */ - public void setReturnVersion(VersionEnum value) { - this.returnVersion = value; + public void setReturnVersion(JAXBElement value) { + this.returnVersion = ((JAXBElement ) value); } /** @@ -128,10 +136,10 @@ public class GetProperties { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -140,11 +148,59 @@ public class GetProperties { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeAllowableActions property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeAllowableActions() { + return includeAllowableActions; + } + + /** + * Sets the value of the includeAllowableActions property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + 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 ffd80c3986..005ea25aee 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersion.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersion.java @@ -1,33 +1,33 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getPropertiesOfLatestVersion element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getPropertiesOfLatestVersion">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="versionSeriesId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="majorVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="versionSeriesId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="majorVersion" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="filter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,14 +42,13 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getPropertiesOfLatestVersion") public class GetPropertiesOfLatestVersion { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String versionSeriesId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean majorVersion; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; + protected boolean majorVersion; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; /** * Gets the value of the repositoryId property. @@ -102,24 +101,16 @@ public class GetPropertiesOfLatestVersion { /** * Gets the value of the majorVersion property. * - * @return - * possible object is - * {@link Boolean } - * */ - public Boolean isMajorVersion() { + public boolean isMajorVersion() { return majorVersion; } /** * Sets the value of the majorVersion property. * - * @param value - * allowed object is - * {@link Boolean } - * */ - public void setMajorVersion(Boolean value) { + public void setMajorVersion(boolean value) { this.majorVersion = value; } @@ -128,10 +119,10 @@ public class GetPropertiesOfLatestVersion { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -140,11 +131,11 @@ public class GetPropertiesOfLatestVersion { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java index 7200dc14ee..c4f09a659c 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesOfLatestVersionResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getPropertiesOfLatestVersionResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getPropertiesOfLatestVersionResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="object" type="{http://www.cmis.org/ns/1.0}objectType"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/2008/05}object"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,18 +34,18 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getPropertiesOfLatestVersionResponse") public class GetPropertiesOfLatestVersionResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ObjectType object; + @XmlElement(required = true) + protected CmisObjectType object; /** * Gets the value of the object property. * * @return * possible object is - * {@link ObjectType } + * {@link CmisObjectType } * */ - public ObjectType getObject() { + public CmisObjectType getObject() { return object; } @@ -56,10 +54,10 @@ public class GetPropertiesOfLatestVersionResponse { * * @param value * allowed object is - * {@link ObjectType } + * {@link CmisObjectType } * */ - public void setObject(ObjectType value) { + public void setObject(CmisObjectType value) { this.object = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java index 4f18c62798..c3b14d7cbf 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getPropertiesResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getPropertiesResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="object" type="{http://www.cmis.org/ns/1.0}objectType"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/2008/05}object"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,18 +34,18 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getPropertiesResponse") public class GetPropertiesResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ObjectType object; + @XmlElement(required = true) + protected CmisObjectType object; /** * Gets the value of the object property. * * @return * possible object is - * {@link ObjectType } + * {@link CmisObjectType } * */ - public ObjectType getObject() { + public CmisObjectType getObject() { return object; } @@ -56,10 +54,10 @@ public class GetPropertiesResponse { * * @param value * allowed object is - * {@link ObjectType } + * {@link CmisObjectType } * */ - public void setObject(ObjectType value) { + public void setObject(CmisObjectType value) { this.object = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java index 4dea1d4c85..cd9acb1fa1 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java @@ -2,38 +2,39 @@ 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 getRelationships element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getRelationships">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="direction" type="{http://www.cmis.org/ns/1.0}relationshipDirectionEnum" minOccurs="0"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *           <element name="includeSubRelationshipTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
- *           <element name="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="direction" type="{http://www.cmis.org/2008/05}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="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>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -47,30 +48,33 @@ import javax.xml.bind.annotation.XmlType; "includeSubRelationshipTypes", "filter", "includeAllowableActions", + "includeRelationships", "maxItems", "skipCount" }) @XmlRootElement(name = "getRelationships") public class GetRelationships { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected RelationshipDirectionEnum direction; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String typeId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeSubRelationshipTypes; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String filter; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger maxItems; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger skipCount; + @XmlElementRef(name = "direction", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement direction; + @XmlElementRef(name = "typeId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement typeId; + @XmlElementRef(name = "includeSubRelationshipTypes", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement includeSubRelationshipTypes; + @XmlElementRef(name = "filter", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement filter; + @XmlElementRef(name = "includeAllowableActions", namespace = "http://www.cmis.org/2008/05", 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) + protected JAXBElement maxItems; + @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement skipCount; /** * Gets the value of the repositoryId property. @@ -125,10 +129,10 @@ public class GetRelationships { * * @return * possible object is - * {@link RelationshipDirectionEnum } + * {@link JAXBElement }{@code <}{@link EnumRelationshipDirection }{@code >} * */ - public RelationshipDirectionEnum getDirection() { + public JAXBElement getDirection() { return direction; } @@ -137,11 +141,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link RelationshipDirectionEnum } + * {@link JAXBElement }{@code <}{@link EnumRelationshipDirection }{@code >} * */ - public void setDirection(RelationshipDirectionEnum value) { - this.direction = value; + public void setDirection(JAXBElement value) { + this.direction = ((JAXBElement ) value); } /** @@ -149,10 +153,10 @@ public class GetRelationships { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getTypeId() { + public JAXBElement getTypeId() { return typeId; } @@ -161,11 +165,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setTypeId(String value) { - this.typeId = value; + public void setTypeId(JAXBElement value) { + this.typeId = ((JAXBElement ) value); } /** @@ -173,10 +177,10 @@ public class GetRelationships { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeSubRelationshipTypes() { + public JAXBElement getIncludeSubRelationshipTypes() { return includeSubRelationshipTypes; } @@ -185,11 +189,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeSubRelationshipTypes(Boolean value) { - this.includeSubRelationshipTypes = value; + public void setIncludeSubRelationshipTypes(JAXBElement value) { + this.includeSubRelationshipTypes = ((JAXBElement ) value); } /** @@ -197,10 +201,10 @@ public class GetRelationships { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFilter() { + public JAXBElement getFilter() { return filter; } @@ -209,11 +213,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFilter(String value) { - this.filter = value; + public void setFilter(JAXBElement value) { + this.filter = ((JAXBElement ) value); } /** @@ -221,10 +225,10 @@ public class GetRelationships { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isIncludeAllowableActions() { + public JAXBElement getIncludeAllowableActions() { return includeAllowableActions; } @@ -233,11 +237,35 @@ public class GetRelationships { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; + public void setIncludeAllowableActions(JAXBElement value) { + this.includeAllowableActions = ((JAXBElement ) value); + } + + /** + * Gets the value of the includeRelationships property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public JAXBElement getIncludeRelationships() { + return includeRelationships; + } + + /** + * Sets the value of the includeRelationships property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + */ + public void setIncludeRelationships(JAXBElement value) { + this.includeRelationships = ((JAXBElement ) value); } /** @@ -245,10 +273,10 @@ public class GetRelationships { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getMaxItems() { + public JAXBElement getMaxItems() { return maxItems; } @@ -257,11 +285,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setMaxItems(BigInteger value) { - this.maxItems = value; + public void setMaxItems(JAXBElement value) { + this.maxItems = ((JAXBElement ) value); } /** @@ -269,10 +297,10 @@ public class GetRelationships { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getSkipCount() { + public JAXBElement getSkipCount() { return skipCount; } @@ -281,11 +309,11 @@ public class GetRelationships { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setSkipCount(BigInteger value) { - this.skipCount = value; + public void setSkipCount(JAXBElement value) { + this.skipCount = ((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 4ca0f701e6..9cbb191d0d 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java @@ -1,70 +1,72 @@ 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 getRelationshipsResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getRelationshipsResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="relationships" type="{http://www.cmis.org/ns/1.0}objectCollectionType"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <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 name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "relationships", + "object", "hasMoreItems" }) @XmlRootElement(name = "getRelationshipsResponse") public class GetRelationshipsResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ObjectCollectionType relationships; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected List object; protected boolean hasMoreItems; /** - * Gets the value of the relationships property. + * Gets the value of the object property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getRelationships() { - return relationships; - } - - /** - * Sets the value of the relationships property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setRelationships(ObjectCollectionType value) { - this.relationships = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositories.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositories.java index fd058f1761..ccf38cb3ef 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRepositories.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositories.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getRepositories element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getRepositories">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java index ba48ffa1f2..37f7f33d5d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoriesResponse.java @@ -11,22 +11,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getRepositoriesResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getRepositoriesResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repository" type="{http://www.cmis.org/ns/1.0}repositoryType" maxOccurs="unbounded" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,8 +36,8 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getRepositoriesResponse") public class GetRepositoriesResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List repository; + @XmlElement(nillable = true) + protected List repository; /** * Gets the value of the repository property. @@ -59,13 +57,13 @@ public class GetRepositoriesResponse { * *

* Objects of the following type(s) are allowed in the list - * {@link RepositoryType } + * {@link CmisRepositoryEntryType } * * */ - public List getRepository() { + public List getRepository() { if (repository == null) { - repository = new ArrayList(); + repository = new ArrayList(); } return this.repository; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java index 1b4207bd8a..65341b7d1b 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for getRepositoryInfo element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getRepositoryInfo">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getRepositoryInfo") public class GetRepositoryInfo { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java deleted file mode 100644 index 2b76f761c2..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java +++ /dev/null @@ -1,66 +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.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for getRepositoryInfoResponse element declaration. - * - *

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

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

Java class for getTypeDefinition element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getTypeDefinition">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="typeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -38,9 +36,9 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getTypeDefinition") public class GetTypeDefinition { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String typeId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java index 96fe799c2f..adfbfc9e78 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java @@ -1,30 +1,29 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for getTypeDefinitionResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getTypeDefinitionResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/2008/05}type" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,18 +35,22 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getTypeDefinitionResponse") public class GetTypeDefinitionResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ObjectTypeDefinitionType type; + @XmlElementRef(name = "type", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement type; /** * Gets the value of the type property. * * @return * possible object is - * {@link ObjectTypeDefinitionType } + * {@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 >} * */ - public ObjectTypeDefinitionType getType() { + public JAXBElement getType() { return type; } @@ -56,11 +59,15 @@ public class GetTypeDefinitionResponse { * * @param value * allowed object is - * {@link ObjectTypeDefinitionType } + * {@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 >} * */ - public void setType(ObjectTypeDefinitionType value) { - this.type = value; + public void setType(JAXBElement value) { + this.type = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java index fb7620ad1a..d95bcfb87e 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java @@ -2,34 +2,34 @@ 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 getTypes element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getTypes">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *           <element name="returnPropertyDefinitions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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="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>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -45,16 +45,16 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "getTypes") public class GetTypes { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String typeId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean returnPropertyDefinitions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger maxItems; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger skipCount; + @XmlElementRef(name = "typeId", namespace = "http://www.cmis.org/2008/05", 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) + protected JAXBElement maxItems; + @XmlElementRef(name = "skipCount", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement skipCount; /** * Gets the value of the repositoryId property. @@ -85,10 +85,10 @@ public class GetTypes { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getTypeId() { + public JAXBElement getTypeId() { return typeId; } @@ -97,11 +97,11 @@ public class GetTypes { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setTypeId(String value) { - this.typeId = value; + public void setTypeId(JAXBElement value) { + this.typeId = ((JAXBElement ) value); } /** @@ -109,10 +109,10 @@ public class GetTypes { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isReturnPropertyDefinitions() { + public JAXBElement getReturnPropertyDefinitions() { return returnPropertyDefinitions; } @@ -121,11 +121,11 @@ public class GetTypes { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setReturnPropertyDefinitions(Boolean value) { - this.returnPropertyDefinitions = value; + public void setReturnPropertyDefinitions(JAXBElement value) { + this.returnPropertyDefinitions = ((JAXBElement ) value); } /** @@ -133,10 +133,10 @@ public class GetTypes { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getMaxItems() { + public JAXBElement getMaxItems() { return maxItems; } @@ -145,11 +145,11 @@ public class GetTypes { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setMaxItems(BigInteger value) { - this.maxItems = value; + public void setMaxItems(JAXBElement value) { + this.maxItems = ((JAXBElement ) value); } /** @@ -157,10 +157,10 @@ public class GetTypes { * * @return * possible object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public BigInteger getSkipCount() { + public JAXBElement getSkipCount() { return skipCount; } @@ -169,11 +169,11 @@ public class GetTypes { * * @param value * allowed object is - * {@link BigInteger } + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * */ - public void setSkipCount(BigInteger value) { - this.skipCount = value; + public void setSkipCount(JAXBElement value) { + this.skipCount = ((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 fb774a3e64..50d5976719 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java @@ -3,81 +3,77 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; -import org.alfresco.repo.cmis.ws.GetTypesResponse.Types; /** - *

Java class for getTypesResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="getTypesResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="types">
- *             <complexType>
- *               <complexContent>
- *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                   <sequence>
- *                     <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
- *                   </sequence>
- *                 </restriction>
- *               </complexContent>
- *             </complexType>
- *           </element>
- *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <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="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "types", + "type", "hasMoreItems" }) @XmlRootElement(name = "getTypesResponse") public class GetTypesResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected Types types; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + @XmlElementRef(name = "type", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected List> type; protected boolean hasMoreItems; /** - * Gets the value of the types property. + * Gets the value of the type property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link 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 >} * - * @return - * possible object is - * {@link Types } - * - */ - public Types getTypes() { - return types; - } - - /** - * Sets the value of the types property. * - * @param value - * allowed object is - * {@link Types } - * */ - public void setTypes(Types value) { - this.types = value; + public List> getType() { + if (type == null) { + type = new ArrayList>(); + } + return this.type; } /** @@ -96,64 +92,4 @@ public class GetTypesResponse { this.hasMoreItems = value; } - - /** - *

Java class for anonymous complex type. - * - *

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list - * {@link ObjectTypeDefinitionType } - * - * - */ - public List getType() { - if (type == null) { - type = new ArrayList(); - } - return this.type; - } - - } - } diff --git a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java index 0d563f983d..85aac0c4bc 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "invalidArgumentException", targetNamespace = "http://www.cmis.org/2008/05") public class InvalidArgumentException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault invalidArgumentException; + private org.alfresco.repo.cmis.ws.InvalidArgumentExceptionType invalidArgumentException; public InvalidArgumentException() { super(); @@ -30,17 +29,17 @@ public class InvalidArgumentException extends Exception { super(message, cause); } - public InvalidArgumentException(String message, org.alfresco.repo.cmis.ws.BasicFault invalidArgumentException) { + 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.BasicFault invalidArgumentException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..0ad32d46f1 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentExceptionType.java @@ -0,0 +1,32 @@ + +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/JoinEnum.java b/source/generated/org/alfresco/repo/cmis/ws/JoinEnum.java deleted file mode 100755 index ddd98c3924..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/JoinEnum.java +++ /dev/null @@ -1,52 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for joinEnum. - * - *

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

- *

- * <simpleType name="joinEnum">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="noJoin"/>
- *     <enumeration value="innerOnly"/>
- *     <enumeration value="innerAndOuter"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum JoinEnum { - - @XmlEnumValue("innerAndOuter") - INNER_AND_OUTER("innerAndOuter"), - @XmlEnumValue("innerOnly") - INNER_ONLY("innerOnly"), - @XmlEnumValue("noJoin") - NO_JOIN("noJoin"); - private final String value; - - JoinEnum(String v) { - value = v; - } - - public String value() { - return value; - } - - public static JoinEnum fromValue(String v) { - for (JoinEnum c: JoinEnum.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java index 6a69852aa0..55ef7cab82 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java @@ -1,33 +1,33 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for moveObject element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="moveObject">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="targetFolderId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="sourceFolderId" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="targetFolderId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="sourceFolderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,14 +42,14 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "moveObject") public class MoveObject { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String targetFolderId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String sourceFolderId; + @XmlElementRef(name = "sourceFolderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement sourceFolderId; /** * Gets the value of the repositoryId property. @@ -128,10 +128,10 @@ public class MoveObject { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getSourceFolderId() { + public JAXBElement getSourceFolderId() { return sourceFolderId; } @@ -140,11 +140,11 @@ public class MoveObject { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setSourceFolderId(String value) { - this.sourceFolderId = value; + public void setSourceFolderId(JAXBElement value) { + this.sourceFolderId = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java index 76da81fd98..5a7bf20d7f 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for moveObjectResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="moveObjectResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java index e8f119da3d..31c6598238 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.MultiFilingServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:19 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:55 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "MultiFilingService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/MultiFilingService.wsdl") + +@WebServiceClient(name = "MultiFilingService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/MultiFilingService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class MultiFilingService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "MultiFilingService"); - public final static QName MultiFilingServicePort = new QName("http://www.cmis.org/ns/1.0", "MultiFilingServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class MultiFilingService extends Service { return super.getPort(MultiFilingServicePort, MultiFilingServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns MultiFilingServicePort + */ + @WebEndpoint(name = "MultiFilingServicePort") + public MultiFilingServicePort getMultiFilingServicePort(WebServiceFeature... features) { + return super.getPort(MultiFilingServicePort, MultiFilingServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java index d1e406984a..5ba99bfc0d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/MultiFilingServicePort.java @@ -1,44 +1,44 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:19 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:55 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "MultiFilingServicePort") - + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "MultiFilingServicePort") +@XmlSeeAlso({ObjectFactory.class}) public interface MultiFilingServicePort { - @ResponseWrapper(localName = "removeObjectFromFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.RemoveObjectFromFolderResponse") - @RequestWrapper(localName = "removeObjectFromFolder", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.RemoveObjectFromFolder") + @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") @WebMethod public void removeObjectFromFolder( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String objectId, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String folderId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, NotInFolderException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - @ResponseWrapper(localName = "addObjectToFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.AddObjectToFolderResponse") - @RequestWrapper(localName = "addObjectToFolder", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.AddObjectToFolder") + @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") @WebMethod public void addObjectToFolder( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String objectId, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String folderId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java index 943e9f23a8..ed6424a598 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.NavigationServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:03 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:47 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "NavigationService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/NavigationService.wsdl") + +@WebServiceClient(name = "NavigationService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/NavigationService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class NavigationService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "NavigationService"); - public final static QName NavigationServicePort = new QName("http://www.cmis.org/ns/1.0", "NavigationServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class NavigationService extends Service { return super.getPort(NavigationServicePort, NavigationServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns NavigationServicePort + */ + @WebEndpoint(name = "NavigationServicePort") + public NavigationServicePort getNavigationServicePort(WebServiceFeature... features) { + return super.getPort(NavigationServicePort, NavigationServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java index f8a70e436d..1c4685a7ec 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -7,56 +6,52 @@ 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; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:03 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:47 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "NavigationServicePort") + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "NavigationServicePort") +@XmlSeeAlso({ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - public interface NavigationServicePort { - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getDescendantsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getCheckedoutDocsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetDescendantsResponse getDescendants( - @WebParam(partName = "parameters", name = "getDescendants", targetNamespace = "http://www.cmis.org/ns/1.0") - GetDescendants parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getCheckedoutDocsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") - @WebMethod - public org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse getCheckedoutDocs( - @WebParam(partName = "parameters", name = "getCheckedoutDocs", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetCheckedoutDocsResponse getCheckedoutDocs( + @WebParam(partName = "parameters", name = "getCheckedoutDocs", targetNamespace = "http://www.cmis.org/2008/05") GetCheckedoutDocs parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getChildrenResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getChildrenResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetChildrenResponse getChildren( - @WebParam(partName = "parameters", name = "getChildren", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetChildrenResponse getChildren( + @WebParam(partName = "parameters", name = "getChildren", targetNamespace = "http://www.cmis.org/2008/05") GetChildren parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getObjectParentsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getObjectParentsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetObjectParentsResponse getObjectParents( - @WebParam(partName = "parameters", name = "getObjectParents", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetObjectParentsResponse getObjectParents( + @WebParam(partName = "parameters", name = "getObjectParents", targetNamespace = "http://www.cmis.org/2008/05") GetObjectParents parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getFolderParentResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getFolderParentResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetFolderParentResponse getFolderParent( - @WebParam(partName = "parameters", name = "getFolderParent", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetFolderParentResponse getFolderParent( + @WebParam(partName = "parameters", name = "getFolderParent", targetNamespace = "http://www.cmis.org/2008/05") GetFolderParent parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + + @WebResult(name = "getDescendantsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebMethod + public GetDescendantsResponse getDescendants( + @WebParam(partName = "parameters", name = "getDescendants", targetNamespace = "http://www.cmis.org/2008/05") + GetDescendants parameters + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java index 85e3eafa46..ba51feda4f 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:19 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "notInFolderException", targetNamespace = "http://www.cmis.org/2008/05") public class NotInFolderException extends Exception { - public static final long serialVersionUID = 20080729182219L; + public static final long serialVersionUID = 20080905134455L; - private org.alfresco.repo.cmis.ws.BasicFault notInFolderException; + private org.alfresco.repo.cmis.ws.NotInFolderExceptionType notInFolderException; public NotInFolderException() { super(); @@ -30,17 +29,17 @@ public class NotInFolderException extends Exception { super(message, cause); } - public NotInFolderException(String message, org.alfresco.repo.cmis.ws.BasicFault notInFolderException) { + 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.BasicFault notInFolderException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..c2559b9103 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderExceptionType.java @@ -0,0 +1,32 @@ + +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 new file mode 100755 index 0000000000..fcd509e534 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java @@ -0,0 +1,2165 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.alfresco.repo.cmis.ws package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _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"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.alfresco.repo.cmis.ws + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link GetAllowableActionsResponse } + * + */ + public GetAllowableActionsResponse createGetAllowableActionsResponse() { + return new GetAllowableActionsResponse(); + } + + /** + * Create an instance of {@link GetPropertiesOfLatestVersionResponse } + * + */ + public GetPropertiesOfLatestVersionResponse createGetPropertiesOfLatestVersionResponse() { + return new GetPropertiesOfLatestVersionResponse(); + } + + /** + * Create an instance of {@link GetTypesResponse } + * + */ + public GetTypesResponse createGetTypesResponse() { + return new GetTypesResponse(); + } + + /** + * Create an instance of {@link DeleteTree } + * + */ + public DeleteTree createDeleteTree() { + return new DeleteTree(); + } + + /** + * Create an instance of {@link CmisPropertyStringDefinitionType } + * + */ + public CmisPropertyStringDefinitionType createCmisPropertyStringDefinitionType() { + return new CmisPropertyStringDefinitionType(); + } + + /** + * Create an instance of {@link ApplyPolicyResponse } + * + */ + public ApplyPolicyResponse createApplyPolicyResponse() { + return new ApplyPolicyResponse(); + } + + /** + * Create an instance of {@link DeleteAllVersions } + * + */ + public DeleteAllVersions createDeleteAllVersions() { + return new DeleteAllVersions(); + } + + /** + * Create an instance of {@link CmisPropertyUriDefinitionType } + * + */ + public CmisPropertyUriDefinitionType createCmisPropertyUriDefinitionType() { + return new CmisPropertyUriDefinitionType(); + } + + /** + * Create an instance of {@link RemoveObjectFromFolderResponse } + * + */ + public RemoveObjectFromFolderResponse createRemoveObjectFromFolderResponse() { + return new RemoveObjectFromFolderResponse(); + } + + /** + * Create an instance of {@link CmisPropertyBoolean } + * + */ + public CmisPropertyBoolean createCmisPropertyBoolean() { + return new CmisPropertyBoolean(); + } + + /** + * Create an instance of {@link CreatePolicy } + * + */ + public CreatePolicy createCreatePolicy() { + return new CreatePolicy(); + } + + /** + * Create an instance of {@link CmisRepositoryEntryType } + * + */ + public CmisRepositoryEntryType createCmisRepositoryEntryType() { + return new CmisRepositoryEntryType(); + } + + /** + * Create an instance of {@link DeleteTreeResponse.FailedToDelete } + * + */ + public DeleteTreeResponse.FailedToDelete createDeleteTreeResponseFailedToDelete() { + return new DeleteTreeResponse.FailedToDelete(); + } + + /** + * Create an instance of {@link CreateFolderResponse } + * + */ + public CreateFolderResponse createCreateFolderResponse() { + return new CreateFolderResponse(); + } + + /** + * Create an instance of {@link CmisRepositoryInfoType } + * + */ + public CmisRepositoryInfoType createCmisRepositoryInfoType() { + return new CmisRepositoryInfoType(); + } + + /** + * Create an instance of {@link CmisPropertyUri } + * + */ + public CmisPropertyUri createCmisPropertyUri() { + return new CmisPropertyUri(); + } + + /** + * Create an instance of {@link CmisChoiceDateTimeType } + * + */ + public CmisChoiceDateTimeType createCmisChoiceDateTimeType() { + return new CmisChoiceDateTimeType(); + } + + /** + * Create an instance of {@link CmisChoiceUriType } + * + */ + public CmisChoiceUriType createCmisChoiceUriType() { + return new CmisChoiceUriType(); + } + + /** + * Create an instance of {@link CmisChoiceIntegerType } + * + */ + public CmisChoiceIntegerType createCmisChoiceIntegerType() { + return new CmisChoiceIntegerType(); + } + + /** + * Create an instance of {@link GetPropertiesOfLatestVersion } + * + */ + public GetPropertiesOfLatestVersion createGetPropertiesOfLatestVersion() { + return new GetPropertiesOfLatestVersion(); + } + + /** + * Create an instance of {@link NotInFolderExceptionType } + * + */ + 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(); + } + + /** + * Create an instance of {@link CmisPropertyDateTime } + * + */ + public CmisPropertyDateTime createCmisPropertyDateTime() { + 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 } + * + */ + public CmisPropertyHtmlDefinitionType createCmisPropertyHtmlDefinitionType() { + 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") + 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") + public JAXBElement createAllowableActions(CmisAllowableActionsType value) { + return new JAXBElement(_AllowableActions_QNAME, CmisAllowableActionsType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisChoiceStringType }{@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); + } + + /** + * 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") + public JAXBElement createPropertyUriDefinition(CmisPropertyUriDefinitionType value) { + return new JAXBElement(_PropertyUriDefinition_QNAME, CmisPropertyUriDefinitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertyDateTime }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisRepositoryInfoType }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ContentAlreadyExistsExceptionType }{@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); + } + + /** + * 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") + public JAXBElement createPropertyHtml(CmisPropertyHtml value) { + return new JAXBElement(_PropertyHtml_QNAME, CmisPropertyHtml.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") + public JAXBElement createPropertyId(CmisPropertyId value) { + return new JAXBElement(_PropertyId_QNAME, CmisPropertyId.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RuntimeExceptionType }{@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); + } + + /** + * 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") + public JAXBElement createPropertyIntegerDefinition(CmisPropertyIntegerDefinitionType value) { + return new JAXBElement(_PropertyIntegerDefinition_QNAME, CmisPropertyIntegerDefinitionType.class, null, value); + } + + /** + * 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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumTypesOfFileableObjects }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@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); + } + + /** + * 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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisPropertiesType }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@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); + } + + /** + * 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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "filter", scope = GetDescendants.class) + public JAXBElement createGetDescendantsFilter(String value) { + return new JAXBElement(_GetAllVersionsFilter_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) + 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 >}} + * + */ + @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); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumReturnVersion }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", 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 >}} + * + */ + @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); + } + + /** + * 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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", 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 >}} + * + */ + @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); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/2008/05", name = "sourceFolderId", scope = MoveObject.class) + public JAXBElement createMoveObjectSourceFolderId(String value) { + return new JAXBElement(_MoveObjectSourceFolderId_QNAME, String.class, MoveObject.class, value); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * 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); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java index ac51f4ce1e..ef70fa686b 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "objectNotFoundException", targetNamespace = "http://www.cmis.org/2008/05") public class ObjectNotFoundException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault objectNotFoundException; + private org.alfresco.repo.cmis.ws.ObjectNotFoundExceptionType objectNotFoundException; public ObjectNotFoundException() { super(); @@ -30,17 +29,17 @@ public class ObjectNotFoundException extends Exception { super(message, cause); } - public ObjectNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault objectNotFoundException) { + 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.BasicFault objectNotFoundException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..89ab366e4c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundExceptionType.java @@ -0,0 +1,32 @@ + +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 563673bc49..ef0aa718d9 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.ObjectServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:38 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "ObjectService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/ObjectService.wsdl") + +@WebServiceClient(name = "ObjectService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/ObjectService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class ObjectService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); - public final static QName ObjectServicePort = new QName("http://www.cmis.org/ns/1.0", "ObjectServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class ObjectService extends Service { return super.getPort(ObjectServicePort, ObjectServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns ObjectServicePort + */ + @WebEndpoint(name = "ObjectServicePort") + public ObjectServicePort getObjectServicePort(WebServiceFeature... features) { + return super.getPort(ObjectServicePort, ObjectServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java index e5f645a651..e823698b40 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -8,172 +7,191 @@ 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.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:38 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "ObjectServicePort") - + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "ObjectServicePort") +@XmlSeeAlso({ObjectFactory.class}) public interface ObjectServicePort { - @ResponseWrapper(localName = "deleteTreeResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteTreeResponse") - @RequestWrapper(localName = "deleteTree", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteTree") - @WebResult(name = "failedToDelete", targetNamespace = "http://www.cmis.org/ns/1.0") + @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 org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") + public void setContentStream( + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String folderId, - @WebParam(name = "unfileNonfolderObjects", targetNamespace = "http://www.cmis.org/ns/1.0") - org.alfresco.repo.cmis.ws.UnfileNonfolderObjectsEnum unfileNonfolderObjects, - @WebParam(name = "continueOnFailure", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.Boolean continueOnFailure - ) throws RuntimeException, InvalidArgumentException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; + @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 = "getAllowableActionsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetAllowableActionsResponse") - @RequestWrapper(localName = "getAllowableActions", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetAllowableActions") - @WebResult(name = "allowableActions", targetNamespace = "http://www.cmis.org/ns/1.0") - @WebMethod - public org.alfresco.repo.cmis.ws.AllowableActionsType getAllowableActions( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String objectId, - @WebParam(name = "asUser", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String asUser - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "moveObjectResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.MoveObjectResponse") - @RequestWrapper(localName = "moveObject", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.MoveObject") - @WebMethod - public void moveObject( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String objectId, - @WebParam(name = "targetFolderId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String targetFolderId, - @WebParam(name = "sourceFolderId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String sourceFolderId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; - - @ResponseWrapper(localName = "deleteContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteContentStreamResponse") - @RequestWrapper(localName = "deleteContentStream", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteContentStream") - @WebMethod - public void deleteContentStream( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String documentId - ) throws RuntimeException, InvalidArgumentException, VersioningException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, PermissionDeniedException; - - @ResponseWrapper(localName = "createFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateFolderResponse") - @RequestWrapper(localName = "createFolder", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateFolder") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") - @WebMethod - public java.lang.String createFolder( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/ns/1.0") - org.alfresco.repo.cmis.ws.PropertiesType properties, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String folderId - ) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; - - @ResponseWrapper(localName = "updatePropertiesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.UpdatePropertiesResponse") - @RequestWrapper(localName = "updateProperties", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.UpdateProperties") - @WebMethod - public void updateProperties( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(mode = WebParam.Mode.INOUT, name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") - javax.xml.ws.Holder objectId, - @WebParam(name = "changeToken", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String changeToken, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/ns/1.0") - org.alfresco.repo.cmis.ws.PropertiesType properties - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "createPolicyResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreatePolicyResponse") - @RequestWrapper(localName = "createPolicy", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreatePolicy") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") - @WebMethod - public java.lang.String createPolicy( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/ns/1.0") - org.alfresco.repo.cmis.ws.PropertiesType properties, - @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String folderId - ) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "createDocumentResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") - @WebMethod - public org.alfresco.repo.cmis.ws.CreateDocumentResponse createDocument( - @WebParam(partName = "parameters", name = "createDocument", targetNamespace = "http://www.cmis.org/ns/1.0") - CreateDocument parameters - ) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, FolderNotValidException, PermissionDeniedException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") - @WebMethod - public org.alfresco.repo.cmis.ws.GetContentStreamResponse getContentStream( - @WebParam(partName = "parameters", name = "getContentStream", targetNamespace = "http://www.cmis.org/ns/1.0") - GetContentStream parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, StorageException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, OffsetException, PermissionDeniedException; - - @ResponseWrapper(localName = "createRelationshipResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateRelationshipResponse") - @RequestWrapper(localName = "createRelationship", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateRelationship") - @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @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/ns/1.0") + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String typeId, - @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/ns/1.0") - org.alfresco.repo.cmis.ws.PropertiesType properties, - @WebParam(name = "sourceObjectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @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/ns/1.0") + @WebParam(name = "targetObjectId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String targetObjectId - ) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "setContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @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 org.alfresco.repo.cmis.ws.SetContentStreamResponse setContentStream( - @WebParam(partName = "parameters", name = "setContentStream", targetNamespace = "http://www.cmis.org/ns/1.0") - SetContentStream parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, StorageException, ContentAlreadyExistsException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, PermissionDeniedException; + 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 = "deleteObjectResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteObjectResponse") - @RequestWrapper(localName = "deleteObject", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteObject") + @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") + @WebMethod + public org.alfresco.repo.cmis.ws.CmisContentStreamType getContentStream( + @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, InvalidArgumentException, RuntimeException, OffsetException; + + @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") + @WebMethod + public void updateProperties( + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + java.lang.String repositoryId, + @WebParam(mode = WebParam.Mode.INOUT, name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") + javax.xml.ws.Holder objectId, + @WebParam(name = "changeToken", targetNamespace = "http://www.cmis.org/2008/05") + java.lang.String changeToken, + @WebParam(name = "properties", targetNamespace = "http://www.cmis.org/2008/05") + org.alfresco.repo.cmis.ws.CmisPropertiesType properties + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + + @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") + @WebMethod + public java.lang.String createFolder( + @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 + ) 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/ns/1.0") + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String objectId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) 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; @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getPropertiesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getPropertiesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetPropertiesResponse getProperties( - @WebParam(partName = "parameters", name = "getProperties", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetPropertiesResponse getProperties( + @WebParam(partName = "parameters", name = "getProperties", targetNamespace = "http://www.cmis.org/2008/05") GetProperties parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; + + @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") + @WebMethod + public java.lang.String createPolicy( + @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 + ) throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + + @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") + @WebMethod + public org.alfresco.repo.cmis.ws.CmisAllowableActionsType getAllowableActions( + @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; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java new file mode 100755 index 0000000000..efbd1f9458 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectTreeCollectionType.java @@ -0,0 +1,92 @@ + +package org.alfresco.repo.cmis.ws; + +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.XmlType; +import javax.xml.namespace.QName; + + +/** + *

Java class for objectTreeCollectionType complex type. + * + *

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

+ * <complexType name="objectTreeCollectionType">
+ *   <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"/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "objectTreeCollectionType", propOrder = { + "object" +}) +public class ObjectTreeCollectionType { + + protected List object; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the object property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectType.java deleted file mode 100755 index 3b9d595857..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectType.java +++ /dev/null @@ -1,90 +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.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for objectType complex type. - * - *

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

- * <complexType name="objectType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType" minOccurs="0"/>
- *         <element name="allowableActions" type="{http://www.cmis.org/ns/1.0}allowableActionsType" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "objectType", propOrder = { - "properties", - "allowableActions" -}) -public class ObjectType { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected PropertiesType properties; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected AllowableActionsType allowableActions; - - /** - * Gets the value of the properties property. - * - * @return - * possible object is - * {@link PropertiesType } - * - */ - public PropertiesType getProperties() { - return properties; - } - - /** - * Sets the value of the properties property. - * - * @param value - * allowed object is - * {@link PropertiesType } - * - */ - public void setProperties(PropertiesType value) { - this.properties = value; - } - - /** - * Gets the value of the allowableActions property. - * - * @return - * possible object is - * {@link AllowableActionsType } - * - */ - public AllowableActionsType getAllowableActions() { - return allowableActions; - } - - /** - * Sets the value of the allowableActions property. - * - * @param value - * allowed object is - * {@link AllowableActionsType } - * - */ - public void setAllowableActions(AllowableActionsType value) { - this.allowableActions = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java deleted file mode 100644 index ea31535a4e..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java +++ /dev/null @@ -1,431 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for objectTypeDefinitionType complex type. - * - *

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

- * <complexType name="objectTypeDefinitionType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="objectTypeID" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         <element name="objectTypeQueryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="objectTypeDisplayName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         <element name="parentTypeID" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *         <element name="rootTypeQueryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <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"/>
- *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="controllable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="versionable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="contentStreamAllowed" type="{http://www.cmis.org/ns/1.0}contentStreamAllowedEnum"/>
- *         <element name="allowedSourceType" type="{http://www.cmis.org/ns/1.0}ID" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="allowedTargetType" type="{http://www.cmis.org/ns/1.0}ID" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="property" type="{http://www.cmis.org/ns/1.0}propertyAttributesType" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "objectTypeDefinitionType", propOrder = { - "objectTypeID", - "objectTypeQueryName", - "objectTypeDisplayName", - "parentTypeID", - "rootTypeQueryName", - "description", - "creatable", - "fileable", - "queryable", - "controllable", - "versionable", - "contentStreamAllowed", - "allowedSourceType", - "allowedTargetType", - "property" -}) -public class ObjectTypeDefinitionType { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String objectTypeID; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String objectTypeQueryName; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String objectTypeDisplayName; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String parentTypeID; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String rootTypeQueryName; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String description; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean creatable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean fileable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean queryable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean controllable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean versionable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ContentStreamAllowedEnum contentStreamAllowed; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List allowedSourceType; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List allowedTargetType; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List property; - - /** - * Gets the value of the objectTypeID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getObjectTypeID() { - return objectTypeID; - } - - /** - * Sets the value of the objectTypeID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setObjectTypeID(String value) { - this.objectTypeID = value; - } - - /** - * Gets the value of the objectTypeQueryName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getObjectTypeQueryName() { - return objectTypeQueryName; - } - - /** - * Sets the value of the objectTypeQueryName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setObjectTypeQueryName(String value) { - this.objectTypeQueryName = value; - } - - /** - * Gets the value of the objectTypeDisplayName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getObjectTypeDisplayName() { - return objectTypeDisplayName; - } - - /** - * Sets the value of the objectTypeDisplayName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setObjectTypeDisplayName(String value) { - this.objectTypeDisplayName = value; - } - - /** - * Gets the value of the parentTypeID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getParentTypeID() { - return parentTypeID; - } - - /** - * Sets the value of the parentTypeID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setParentTypeID(String value) { - this.parentTypeID = value; - } - - /** - * Gets the value of the rootTypeQueryName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRootTypeQueryName() { - return rootTypeQueryName; - } - - /** - * Sets the value of the rootTypeQueryName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRootTypeQueryName(String value) { - this.rootTypeQueryName = value; - } - - /** - * Gets the value of the description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * Gets the value of the creatable property. - * - */ - public boolean isCreatable() { - return creatable; - } - - /** - * Sets the value of the creatable property. - * - */ - public void setCreatable(boolean value) { - this.creatable = value; - } - - /** - * Gets the value of the fileable property. - * - */ - public boolean isFileable() { - return fileable; - } - - /** - * Sets the value of the fileable property. - * - */ - public void setFileable(boolean value) { - this.fileable = value; - } - - /** - * Gets the value of the queryable property. - * - */ - public boolean isQueryable() { - return queryable; - } - - /** - * Sets the value of the queryable property. - * - */ - public void setQueryable(boolean value) { - this.queryable = value; - } - - /** - * Gets the value of the controllable property. - * - */ - public boolean isControllable() { - return controllable; - } - - /** - * Sets the value of the controllable property. - * - */ - public void setControllable(boolean value) { - this.controllable = value; - } - - /** - * Gets the value of the versionable property. - * - */ - public boolean isVersionable() { - return versionable; - } - - /** - * Sets the value of the versionable property. - * - */ - public void setVersionable(boolean value) { - this.versionable = value; - } - - /** - * Gets the value of the contentStreamAllowed property. - * - * @return - * possible object is - * {@link ContentStreamAllowedEnum } - * - */ - public ContentStreamAllowedEnum getContentStreamAllowed() { - return contentStreamAllowed; - } - - /** - * Sets the value of the contentStreamAllowed property. - * - * @param value - * allowed object is - * {@link ContentStreamAllowedEnum } - * - */ - public void setContentStreamAllowed(ContentStreamAllowedEnum value) { - this.contentStreamAllowed = value; - } - - /** - * Gets the value of the allowedSourceType 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 allowedSourceType property. - * - *

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

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

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

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

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list - * {@link PropertyAttributesType } - * - * - */ - public List getProperty() { - if (property == null) { - property = new ArrayList(); - } - return this.property; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java index 7c68657f69..836c48158a 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "offsetException", targetNamespace = "http://www.cmis.org/2008/05") public class OffsetException extends Exception { - public static final long serialVersionUID = 20080729182147L; + public static final long serialVersionUID = 20080905134438L; - private org.alfresco.repo.cmis.ws.BasicFault offsetException; + private org.alfresco.repo.cmis.ws.OffsetExceptionType offsetException; public OffsetException() { super(); @@ -30,17 +29,17 @@ public class OffsetException extends Exception { super(message, cause); } - public OffsetException(String message, org.alfresco.repo.cmis.ws.BasicFault offsetException) { + 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.BasicFault offsetException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..241d98fff7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/OffsetExceptionType.java @@ -0,0 +1,32 @@ + +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 index cb06dd9e0d..98b92b5237 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "operationNotSupportedException", targetNamespace = "http://www.cmis.org/2008/05") public class OperationNotSupportedException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedException; + private org.alfresco.repo.cmis.ws.OperationNotSupportedExceptionType operationNotSupportedException; public OperationNotSupportedException() { super(); @@ -30,17 +29,17 @@ public class OperationNotSupportedException extends Exception { super(message, cause); } - public OperationNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedException) { + 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.BasicFault operationNotSupportedException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..c5420be91e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedExceptionType.java @@ -0,0 +1,32 @@ + +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 index a253cc18b4..7100ee31a4 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "permissionDeniedException", targetNamespace = "http://www.cmis.org/2008/05") public class PermissionDeniedException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134507L; - private org.alfresco.repo.cmis.ws.BasicFault permissionDeniedException; + private org.alfresco.repo.cmis.ws.PermissionDeniedExceptionType permissionDeniedException; public PermissionDeniedException() { super(); @@ -30,17 +29,17 @@ public class PermissionDeniedException extends Exception { super(message, cause); } - public PermissionDeniedException(String message, org.alfresco.repo.cmis.ws.BasicFault permissionDeniedException) { + 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.BasicFault permissionDeniedException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..532bdd054d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedExceptionType.java @@ -0,0 +1,32 @@ + +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 0b209abc14..766ba75e83 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/PolicyService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/PolicyService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.PolicyServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:29 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:59 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "PolicyService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/PolicyService.wsdl") + +@WebServiceClient(name = "PolicyService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/PolicyService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class PolicyService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "PolicyService"); - public final static QName PolicyServicePort = new QName("http://www.cmis.org/ns/1.0", "PolicyServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class PolicyService extends Service { return super.getPort(PolicyServicePort, PolicyServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns PolicyServicePort + */ + @WebEndpoint(name = "PolicyServicePort") + public PolicyServicePort getPolicyServicePort(WebServiceFeature... features) { + return super.getPort(PolicyServicePort, PolicyServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java index d01b608ea3..c5a7127cd7 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/PolicyServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -7,49 +6,50 @@ 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.0.6 - * Tue Jul 29 18:22:29 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:59 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "PolicyServicePort") - + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "PolicyServicePort") +@XmlSeeAlso({ObjectFactory.class}) public interface PolicyServicePort { - @ResponseWrapper(localName = "removePolicyResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.RemovePolicyResponse") - @RequestWrapper(localName = "removePolicy", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.RemovePolicy") + @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/ns/1.0") + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "policyId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "policyId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String policyId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String objectId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getAppliedPoliciesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getAppliedPoliciesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetAppliedPoliciesResponse getAppliedPolicies( - @WebParam(partName = "parameters", name = "getAppliedPolicies", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetAppliedPoliciesResponse getAppliedPolicies( + @WebParam(partName = "parameters", name = "getAppliedPolicies", targetNamespace = "http://www.cmis.org/2008/05") GetAppliedPolicies parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; - @ResponseWrapper(localName = "applyPolicyResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.ApplyPolicyResponse") - @RequestWrapper(localName = "applyPolicy", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.ApplyPolicy") + @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") @WebMethod public void applyPolicy( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String repositoryId, - @WebParam(name = "policyId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "policyId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String policyId, - @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/2008/05") java.lang.String objectId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertiesType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertiesType.java deleted file mode 100755 index 0483579715..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertiesType.java +++ /dev/null @@ -1,333 +0,0 @@ - -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 propertiesType complex type. - * - *

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

- * <complexType name="propertiesType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="propertyBoolean" type="{http://www.cmis.org/ns/1.0}propertyBooleanType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyDateTime" type="{http://www.cmis.org/ns/1.0}propertyDateTimeType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyDecimal" type="{http://www.cmis.org/ns/1.0}propertyDecimalType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyHTML" type="{http://www.cmis.org/ns/1.0}propertyHTMLType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyID" type="{http://www.cmis.org/ns/1.0}propertyIDType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyInteger" type="{http://www.cmis.org/ns/1.0}propertyIntegerType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyString" type="{http://www.cmis.org/ns/1.0}propertyStringType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyURI" type="{http://www.cmis.org/ns/1.0}propertyURIType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="propertyXML" type="{http://www.cmis.org/ns/1.0}propertyXMLType" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertiesType", propOrder = { - "propertyBoolean", - "propertyDateTime", - "propertyDecimal", - "propertyHTML", - "propertyID", - "propertyInteger", - "propertyString", - "propertyURI", - "propertyXML" -}) -public class PropertiesType { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyBoolean; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyDateTime; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyDecimal; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyHTML; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyID; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyInteger; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyString; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyURI; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected List propertyXML; - - /** - * Gets the value of the propertyBoolean 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 propertyBoolean property. - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Java class for propertyAttributesType complex type. - * - *

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

- * <complexType name="propertyAttributesType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="propertyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="propertyId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         <element name="displayName" 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="isInherited" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="propertyType" type="{http://www.cmis.org/ns/1.0}propertyTypeEnum"/>
- *         <element name="cardinality" type="{http://www.cmis.org/ns/1.0}cardinalityEnum"/>
- *         <element name="maximumLength" type="{http://www.w3.org/2001/XMLSchema}integer" 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"/>
- *         <element name="choice" type="{http://www.cmis.org/ns/1.0}choiceType" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="openChoice" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *         <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         <element name="updatability" type="{http://www.cmis.org/ns/1.0}updatabilityEnum"/>
- *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="orderable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyAttributesType", propOrder = { - "propertyName", - "propertyId", - "displayName", - "description", - "isInherited", - "propertyType", - "cardinality", - "maximumLength", - "schemaURI", - "encoding", - "openChoice", - "required", - "defaultValue", - "updatability", - "queryable", - "orderable" -}) -public class PropertyAttributesType { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String propertyName; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String propertyId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String displayName; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String description; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean isInherited; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected PropertyTypeEnum propertyType; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected CardinalityEnum cardinality; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger maximumLength; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String schemaURI; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String encoding; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean openChoice; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean required; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String defaultValue; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected UpdatabilityEnum updatability; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean queryable; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected boolean orderable; - - /** - * Gets the value of the propertyName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPropertyName() { - return propertyName; - } - - /** - * Sets the value of the propertyName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPropertyName(String value) { - this.propertyName = value; - } - - /** - * Gets the value of the propertyId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPropertyId() { - return propertyId; - } - - /** - * Sets the value of the propertyId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPropertyId(String value) { - this.propertyId = value; - } - - /** - * Gets the value of the displayName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the displayName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDisplayName(String value) { - this.displayName = value; - } - - /** - * Gets the value of the description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * Gets the value of the isInherited property. - * - */ - public boolean isIsInherited() { - return isInherited; - } - - /** - * Sets the value of the isInherited property. - * - */ - public void setIsInherited(boolean value) { - this.isInherited = value; - } - - /** - * Gets the value of the propertyType property. - * - * @return - * possible object is - * {@link PropertyTypeEnum } - * - */ - public PropertyTypeEnum getPropertyType() { - return propertyType; - } - - /** - * Sets the value of the propertyType property. - * - * @param value - * allowed object is - * {@link PropertyTypeEnum } - * - */ - public void setPropertyType(PropertyTypeEnum value) { - this.propertyType = value; - } - - /** - * Gets the value of the cardinality property. - * - * @return - * possible object is - * {@link CardinalityEnum } - * - */ - public CardinalityEnum getCardinality() { - return cardinality; - } - - /** - * Sets the value of the cardinality property. - * - * @param value - * allowed object is - * {@link CardinalityEnum } - * - */ - public void setCardinality(CardinalityEnum value) { - this.cardinality = value; - } - - /** - * Gets the value of the maximumLength property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getMaximumLength() { - return maximumLength; - } - - /** - * Sets the value of the maximumLength property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setMaximumLength(BigInteger value) { - this.maximumLength = value; - } - - /** - * Gets the value of the schemaURI property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemaURI() { - return schemaURI; - } - - /** - * Sets the value of the schemaURI property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemaURI(String value) { - 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; - } - - /** - * Gets the value of the openChoice property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isOpenChoice() { - return openChoice; - } - - /** - * Sets the value of the openChoice property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOpenChoice(Boolean value) { - this.openChoice = value; - } - - /** - * Gets the value of the required property. - * - */ - public boolean isRequired() { - return required; - } - - /** - * Sets the value of the required property. - * - */ - public void setRequired(boolean value) { - this.required = value; - } - - /** - * Gets the value of the defaultValue property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDefaultValue() { - return defaultValue; - } - - /** - * Sets the value of the defaultValue property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDefaultValue(String value) { - this.defaultValue = value; - } - - /** - * Gets the value of the updatability property. - * - * @return - * possible object is - * {@link UpdatabilityEnum } - * - */ - public UpdatabilityEnum getUpdatability() { - return updatability; - } - - /** - * Sets the value of the updatability property. - * - * @param value - * allowed object is - * {@link UpdatabilityEnum } - * - */ - public void setUpdatability(UpdatabilityEnum value) { - this.updatability = value; - } - - /** - * Gets the value of the queryable property. - * - */ - public boolean isQueryable() { - return queryable; - } - - /** - * Sets the value of the queryable property. - * - */ - public void setQueryable(boolean value) { - this.queryable = value; - } - - /** - * Gets the value of the orderable property. - * - */ - public boolean isOrderable() { - return orderable; - } - - /** - * Sets the value of the orderable property. - * - */ - public void setOrderable(boolean value) { - this.orderable = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyBooleanType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyBooleanType.java deleted file mode 100755 index 408f5f6f35..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyBooleanType.java +++ /dev/null @@ -1,107 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for propertyBooleanType complex type. - * - *

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

- * <complexType name="propertyBooleanType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>boolean">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyBooleanType", propOrder = { - "value" -}) -public class PropertyBooleanType { - - @XmlValue - protected boolean value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the value property. - * - */ - public boolean isValue() { - return value; - } - - /** - * Sets the value of the value property. - * - */ - public void setValue(boolean value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyDateTimeType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyDateTimeType.java deleted file mode 100755 index 59e141d239..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyDateTimeType.java +++ /dev/null @@ -1,116 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for propertyDateTimeType complex type. - * - *

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

- * <complexType name="propertyDateTimeType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>dateTime">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyDateTimeType", propOrder = { - "value" -}) -public class PropertyDateTimeType { - - @XmlValue - protected XMLGregorianCalendar value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * 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. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setValue(XMLGregorianCalendar value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyDecimalType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyDecimalType.java deleted file mode 100755 index 9d4193fe20..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyDecimalType.java +++ /dev/null @@ -1,116 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigDecimal; -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for propertyDecimalType complex type. - * - *

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

- * <complexType name="propertyDecimalType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>decimal">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyDecimalType", propOrder = { - "value" -}) -public class PropertyDecimalType { - - @XmlValue - protected BigDecimal value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * 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. - * - * @param value - * allowed object is - * {@link BigDecimal } - * - */ - public void setValue(BigDecimal value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyHTMLType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyHTMLType.java deleted file mode 100755 index 1a8f59437b..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyHTMLType.java +++ /dev/null @@ -1,88 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for propertyHTMLType complex type. - * - *

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

- * <complexType name="propertyHTMLType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/ns/1.0}HTML">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyHTMLType") -public class PropertyHTMLType - extends HTML -{ - - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * 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 name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyIDType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyIDType.java deleted file mode 100755 index 34b2197bf8..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyIDType.java +++ /dev/null @@ -1,115 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for propertyIDType complex type. - * - *

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

- * <complexType name="propertyIDType">
- *   <simpleContent>
- *     <extension base="<http://www.cmis.org/ns/1.0>ID">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyIDType", propOrder = { - "value" -}) -public class PropertyIDType { - - @XmlValue - protected String value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyIntegerType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyIntegerType.java deleted file mode 100755 index d2b1bb58ad..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyIntegerType.java +++ /dev/null @@ -1,115 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for propertyIntegerType complex type. - * - *

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

- * <complexType name="propertyIntegerType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>integer">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyIntegerType", propOrder = { - "value" -}) -public class PropertyIntegerType { - - @XmlValue - protected BigInteger value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * 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. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setValue(BigInteger value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyStringType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyStringType.java deleted file mode 100755 index ddf124d76d..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyStringType.java +++ /dev/null @@ -1,115 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for propertyStringType complex type. - * - *

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

- * <complexType name="propertyStringType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyStringType", propOrder = { - "value" -}) -public class PropertyStringType { - - @XmlValue - protected String value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyTypeEnum.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyTypeEnum.java deleted file mode 100755 index 586521c8da..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyTypeEnum.java +++ /dev/null @@ -1,66 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for propertyTypeEnum. - * - *

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

- *

- * <simpleType name="propertyTypeEnum">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="String"/>
- *     <enumeration value="Decimal"/>
- *     <enumeration value="Integer"/>
- *     <enumeration value="Boolean"/>
- *     <enumeration value="DateTime"/>
- *     <enumeration value="URI"/>
- *     <enumeration value="ID"/>
- *     <enumeration value="XML"/>
- *     <enumeration value="HTML"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum PropertyTypeEnum { - - @XmlEnumValue("Boolean") - BOOLEAN("Boolean"), - @XmlEnumValue("DateTime") - DATE_TIME("DateTime"), - @XmlEnumValue("Decimal") - DECIMAL("Decimal"), - HTML("HTML"), - ID("ID"), - @XmlEnumValue("Integer") - INTEGER("Integer"), - @XmlEnumValue("String") - STRING("String"), - URI("URI"), - XML("XML"); - private final String value; - - PropertyTypeEnum(String v) { - value = v; - } - - public String value() { - return value; - } - - public static PropertyTypeEnum fromValue(String v) { - for (PropertyTypeEnum c: PropertyTypeEnum.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyURIType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyURIType.java deleted file mode 100755 index 251e054e14..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyURIType.java +++ /dev/null @@ -1,115 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for propertyURIType complex type. - * - *

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

- * <complexType name="propertyURIType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyURIType", propOrder = { - "value" -}) -public class PropertyURIType { - - @XmlValue - protected String value; - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the index property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setIndex(BigInteger value) { - this.index = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyXMLType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyXMLType.java deleted file mode 100755 index d95c40f6eb..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/PropertyXMLType.java +++ /dev/null @@ -1,88 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for propertyXMLType complex type. - * - *

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

- * <complexType name="propertyXMLType">
- *   <complexContent>
- *     <extension base="{http://www.cmis.org/ns/1.0}XML">
- *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "propertyXMLType") -public class PropertyXMLType - extends XML -{ - - @XmlAttribute - protected BigInteger index; - @XmlAttribute(required = true) - protected String name; - - /** - * 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 name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Query.java b/source/generated/org/alfresco/repo/cmis/ws/Query.java deleted file mode 100644 index 1bbd9e69a4..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/Query.java +++ /dev/null @@ -1,207 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for query element declaration. - * - *

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

- * <element name="query">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <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="includeAllowableActions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "repositoryId", - "statement", - "searchAllVersions", - "includeAllowableActions", - "maxItems", - "skipCount" -}) -@XmlRootElement(name = "query") -public class Query { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String statement; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean searchAllVersions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean includeAllowableActions; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger maxItems; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected BigInteger skipCount; - - /** - * Gets the value of the 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. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStatement() { - return statement; - } - - /** - * Sets the value of the statement property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStatement(String value) { - this.statement = value; - } - - /** - * Gets the value of the searchAllVersions property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isSearchAllVersions() { - return searchAllVersions; - } - - /** - * Sets the value of the searchAllVersions property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSearchAllVersions(Boolean value) { - this.searchAllVersions = value; - } - - /** - * Gets the value of the includeAllowableActions property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isIncludeAllowableActions() { - return includeAllowableActions; - } - - /** - * Sets the value of the includeAllowableActions property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIncludeAllowableActions(Boolean value) { - this.includeAllowableActions = value; - } - - /** - * Gets the value of the maxItems property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getMaxItems() { - return maxItems; - } - - /** - * Sets the value of the maxItems property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setMaxItems(BigInteger value) { - this.maxItems = value; - } - - /** - * Gets the value of the skipCount property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getSkipCount() { - return skipCount; - } - - /** - * Sets the value of the skipCount property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setSkipCount(BigInteger value) { - this.skipCount = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java index e010cef90d..c458503a13 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java @@ -1,70 +1,72 @@ 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 queryResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="queryResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="queryResults" type="{http://www.cmis.org/ns/1.0}objectCollectionType"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <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 name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "queryResults", + "object", "hasMoreItems" }) @XmlRootElement(name = "queryResponse") public class QueryResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ObjectCollectionType queryResults; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected List object; protected boolean hasMoreItems; /** - * Gets the value of the queryResults property. + * Gets the value of the object property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } * - * @return - * possible object is - * {@link ObjectCollectionType } - * - */ - public ObjectCollectionType getQueryResults() { - return queryResults; - } - - /** - * Sets the value of the queryResults property. * - * @param value - * allowed object is - * {@link ObjectCollectionType } - * */ - public void setQueryResults(ObjectCollectionType value) { - this.queryResults = value; + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; } /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java index 31137604d8..2289585c12 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.RelationshipServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:45:03 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "RelationshipService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RelationshipService.wsdl") + +@WebServiceClient(name = "RelationshipService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RelationshipService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class RelationshipService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "RelationshipService"); - public final static QName RelationshipServicePort = new QName("http://www.cmis.org/ns/1.0", "RelationshipServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class RelationshipService extends Service { return super.getPort(RelationshipServicePort, RelationshipServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns RelationshipServicePort + */ + @WebEndpoint(name = "RelationshipServicePort") + public RelationshipServicePort getRelationshipServicePort(WebServiceFeature... features) { + return super.getPort(RelationshipServicePort, RelationshipServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java index 91ce82548e..f7c00f306d 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -7,24 +6,24 @@ 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; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:45:03 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "RelationshipServicePort") + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "RelationshipServicePort") +@XmlSeeAlso({ObjectFactory.class}) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - public interface RelationshipServicePort { - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getRelationshipsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getRelationshipsResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetRelationshipsResponse getRelationships( - @WebParam(partName = "parameters", name = "getRelationships", targetNamespace = "http://www.cmis.org/ns/1.0") + public GetRelationshipsResponse getRelationships( + @WebParam(partName = "parameters", name = "getRelationships", targetNamespace = "http://www.cmis.org/2008/05") GetRelationships parameters - ) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java index aaf8ff6453..c180200cf2 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolder.java @@ -1,32 +1,32 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for removeObjectFromFolder element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="removeObjectFromFolder">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -40,12 +40,12 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "removeObjectFromFolder") public class RemoveObjectFromFolder { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String folderId; + @XmlElementRef(name = "folderId", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement folderId; /** * Gets the value of the repositoryId property. @@ -100,10 +100,10 @@ public class RemoveObjectFromFolder { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getFolderId() { + public JAXBElement getFolderId() { return folderId; } @@ -112,11 +112,11 @@ public class RemoveObjectFromFolder { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setFolderId(String value) { - this.folderId = value; + public void setFolderId(JAXBElement value) { + this.folderId = ((JAXBElement ) value); } } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolderResponse.java index 406b5271d4..ef9f94d497 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolderResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveObjectFromFolderResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for removeObjectFromFolderResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="removeObjectFromFolderResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemovePolicy.java b/source/generated/org/alfresco/repo/cmis/ws/RemovePolicy.java index 18a9a57c81..83d8582dfa 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RemovePolicy.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RemovePolicy.java @@ -9,24 +9,22 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for removePolicy element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="removePolicy">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="policyId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="policyId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -40,11 +38,11 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "removePolicy") public class RemovePolicy { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String policyId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemovePolicyResponse.java b/source/generated/org/alfresco/repo/cmis/ws/RemovePolicyResponse.java index f553ff6c0e..71c4f58707 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/RemovePolicyResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RemovePolicyResponse.java @@ -8,21 +8,19 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for removePolicyResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="removePolicyResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java index 42eb7d968d..6bc3dbe197 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java @@ -1,4 +1,8 @@ +/* + * + */ + package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -7,21 +11,24 @@ import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; -import org.alfresco.repo.cmis.ws.RepositoryServicePort; +import javax.xml.ws.WebServiceFeature; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:55 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:43 EEST 2008 + * Generated source version: 2.1.2 * */ -@WebServiceClient(name = "RepositoryService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RepositoryService.wsdl") + +@WebServiceClient(name = "RepositoryService", + wsdlLocation = "file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/RepositoryService.wsdl", + targetNamespace = "http://www.cmis.org/2008/05") public class RepositoryService extends Service { public final static URL WSDL_LOCATION; - public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); - public final static QName RepositoryServicePort = new QName("http://www.cmis.org/ns/1.0", "RepositoryServicePort"); + 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"); static { URL url = null; try { @@ -55,4 +62,16 @@ public class RepositoryService extends Service { return super.getPort(RepositoryServicePort, RepositoryServicePort.class); } + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns RepositoryServicePort + */ + @WebEndpoint(name = "RepositoryServicePort") + public RepositoryServicePort getRepositoryServicePort(WebServiceFeature... features) { + return super.getPort(RepositoryServicePort, RepositoryServicePort.class, features); + } + } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java index 9a004fafe3..f96db45857 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -7,51 +6,48 @@ 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.0.6 - * Tue Jul 29 18:21:55 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:44:43 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "RepositoryServicePort") - + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "RepositoryServicePort") +@XmlSeeAlso({ObjectFactory.class}) public interface RepositoryServicePort { @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getTypesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebResult(name = "getTypeDefinitionResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") @WebMethod - public org.alfresco.repo.cmis.ws.GetTypesResponse getTypes( - @WebParam(partName = "parameters", name = "getTypes", targetNamespace = "http://www.cmis.org/ns/1.0") + 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; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getRepositoryInfoResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @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; + + @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") + @WebMethod + public java.util.List getRepositories() throws PermissionDeniedException, UpdateConflictException, OperationNotSupportedException, InvalidArgumentException, RuntimeException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getTypesResponse", targetNamespace = "http://www.cmis.org/2008/05", partName = "parameters") + @WebMethod + public GetTypesResponse getTypes( + @WebParam(partName = "parameters", name = "getTypes", targetNamespace = "http://www.cmis.org/2008/05") GetTypes parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "getTypeDefinitionResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetTypeDefinitionResponse") - @RequestWrapper(localName = "getTypeDefinition", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetTypeDefinition") - @WebResult(name = "type", targetNamespace = "http://www.cmis.org/ns/1.0") - @WebMethod - public org.alfresco.repo.cmis.ws.ObjectTypeDefinitionType getTypeDefinition( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String typeId - ) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "getRepositoriesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoriesResponse") - @RequestWrapper(localName = "getRepositories", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositories") - @WebResult(name = "repository", targetNamespace = "http://www.cmis.org/ns/1.0") - @WebMethod - public java.util.List getRepositories() throws RuntimeException, InvalidArgumentException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "getRepositoryInfoResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfoResponse") - @RequestWrapper(localName = "getRepositoryInfo", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfo") - @WebResult(name = "repositoryInfo", targetNamespace = "http://www.cmis.org/ns/1.0") - @WebMethod - public org.alfresco.repo.cmis.ws.RepositoryInfoType getRepositoryInfo( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryType.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryType.java deleted file mode 100755 index 4bca2d67f1..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/RepositoryType.java +++ /dev/null @@ -1,118 +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.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for repositoryType complex type. - * - *

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

- * <complexType name="repositoryType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="repositoryID" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         <element name="repositoryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="repositoryURI" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "repositoryType", propOrder = { - "repositoryID", - "repositoryName", - "repositoryURI" -}) -public class RepositoryType { - - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String repositoryID; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String repositoryName; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected String repositoryURI; - - /** - * Gets the value of the repositoryID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRepositoryID() { - return repositoryID; - } - - /** - * Sets the value of the repositoryID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRepositoryID(String value) { - this.repositoryID = value; - } - - /** - * Gets the value of the repositoryName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRepositoryName() { - return repositoryName; - } - - /** - * Sets the value of the repositoryName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRepositoryName(String value) { - this.repositoryName = value; - } - - /** - * Gets the value of the repositoryURI property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRepositoryURI() { - return repositoryURI; - } - - /** - * Sets the value of the repositoryURI property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRepositoryURI(String value) { - this.repositoryURI = value; - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java index f51cb288ac..c4ef7410e7 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "runtimeException", targetNamespace = "http://www.cmis.org/2008/05") public class RuntimeException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault runtimeException; + private org.alfresco.repo.cmis.ws.RuntimeExceptionType runtimeException; public RuntimeException() { super(); @@ -30,17 +29,17 @@ public class RuntimeException extends Exception { super(message, cause); } - public RuntimeException(String message, org.alfresco.repo.cmis.ws.BasicFault runtimeException) { + 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.BasicFault runtimeException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..4be84c9662 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RuntimeExceptionType.java @@ -0,0 +1,32 @@ + +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 44fdf4be2e..c9924052be 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java @@ -1,33 +1,33 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for setContentStream element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="setContentStream">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="overwriteFlag" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- *           <element ref="{http://www.cmis.org/ns/1.0}contentStream"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,14 +42,14 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "setContentStream") public class SetContentStream { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected Boolean overwriteFlag; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected ContentStreamType contentStream; + @XmlElementRef(name = "overwriteFlag", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement overwriteFlag; + @XmlElement(required = true) + protected CmisContentStreamType contentStream; /** * Gets the value of the repositoryId property. @@ -104,10 +104,10 @@ public class SetContentStream { * * @return * possible object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public Boolean isOverwriteFlag() { + public JAXBElement getOverwriteFlag() { return overwriteFlag; } @@ -116,11 +116,11 @@ public class SetContentStream { * * @param value * allowed object is - * {@link Boolean } + * {@link JAXBElement }{@code <}{@link Boolean }{@code >} * */ - public void setOverwriteFlag(Boolean value) { - this.overwriteFlag = value; + public void setOverwriteFlag(JAXBElement value) { + this.overwriteFlag = ((JAXBElement ) value); } /** @@ -128,10 +128,10 @@ public class SetContentStream { * * @return * possible object is - * {@link ContentStreamType } + * {@link CmisContentStreamType } * */ - public ContentStreamType getContentStream() { + public CmisContentStreamType getContentStream() { return contentStream; } @@ -140,10 +140,10 @@ public class SetContentStream { * * @param value * allowed object is - * {@link ContentStreamType } + * {@link CmisContentStreamType } * */ - public void setContentStream(ContentStreamType value) { + public void setContentStream(CmisContentStreamType value) { this.contentStream = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java index f23051a43e..b081fa7387 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for setContentStreamResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="setContentStreamResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="documentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "setContentStreamResponse") public class SetContentStreamResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String documentId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/StorageException.java b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java index 3601220d2d..a0013a160a 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/StorageException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "storageException", targetNamespace = "http://www.cmis.org/2008/05") public class StorageException extends Exception { - public static final long serialVersionUID = 20080729182147L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault storageException; + private org.alfresco.repo.cmis.ws.StorageExceptionType storageException; public StorageException() { super(); @@ -30,17 +29,17 @@ public class StorageException extends Exception { super(message, cause); } - public StorageException(String message, org.alfresco.repo.cmis.ws.BasicFault storageException) { + 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.BasicFault storageException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..8601b2d39e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/StorageExceptionType.java @@ -0,0 +1,32 @@ + +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 index d4b879937b..cb80bd28dd 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "streamNotSupportedException", targetNamespace = "http://www.cmis.org/2008/05") public class StreamNotSupportedException extends Exception { - public static final long serialVersionUID = 20080729182147L; + public static final long serialVersionUID = 20080905134508L; - private org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedException; + private org.alfresco.repo.cmis.ws.StreamNotSupportedExceptionType streamNotSupportedException; public StreamNotSupportedException() { super(); @@ -30,17 +29,17 @@ public class StreamNotSupportedException extends Exception { super(message, cause); } - public StreamNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedException) { + 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.BasicFault streamNotSupportedException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..f7bd683f15 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedExceptionType.java @@ -0,0 +1,32 @@ + +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 index a640bddd54..5a50f86ac9 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "typeNotFoundException", targetNamespace = "http://www.cmis.org/2008/05") public class TypeNotFoundException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134503L; - private org.alfresco.repo.cmis.ws.BasicFault typeNotFoundException; + private org.alfresco.repo.cmis.ws.TypeNotFoundExceptionType typeNotFoundException; public TypeNotFoundException() { super(); @@ -30,17 +29,17 @@ public class TypeNotFoundException extends Exception { super(message, cause); } - public TypeNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault typeNotFoundException) { + 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.BasicFault typeNotFoundException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..81022fbc41 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundExceptionType.java @@ -0,0 +1,32 @@ + +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/TypesOfFileableObjectsEnum.java b/source/generated/org/alfresco/repo/cmis/ws/TypesOfFileableObjectsEnum.java deleted file mode 100755 index ca469081af..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/TypesOfFileableObjectsEnum.java +++ /dev/null @@ -1,55 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for typesOfFileableObjectsEnum. - * - *

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

- *

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

Java class for updatabilityEnum. - * - *

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

- *

- * <simpleType name="updatabilityEnum">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="readOnly"/>
- *     <enumeration value="readWrite"/>
- *     <enumeration value="readWriteWhenCheckedOut"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum UpdatabilityEnum { - - @XmlEnumValue("readOnly") - READ_ONLY("readOnly"), - @XmlEnumValue("readWrite") - READ_WRITE("readWrite"), - @XmlEnumValue("readWriteWhenCheckedOut") - READ_WRITE_WHEN_CHECKED_OUT("readWriteWhenCheckedOut"); - private final String value; - - UpdatabilityEnum(String v) { - value = v; - } - - public String value() { - return value; - } - - public static UpdatabilityEnum fromValue(String v) { - for (UpdatabilityEnum c: UpdatabilityEnum.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java b/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java index 9afbc3d0af..c98b8e523c 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:22:39 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "updateConflictException", targetNamespace = "http://www.cmis.org/2008/05") public class UpdateConflictException extends Exception { - public static final long serialVersionUID = 20080729182239L; + public static final long serialVersionUID = 20080905134507L; - private org.alfresco.repo.cmis.ws.BasicFault updateConflictException; + private org.alfresco.repo.cmis.ws.UpdateConflictExceptionType updateConflictException; public UpdateConflictException() { super(); @@ -30,17 +29,17 @@ public class UpdateConflictException extends Exception { super(message, cause); } - public UpdateConflictException(String message, org.alfresco.repo.cmis.ws.BasicFault updateConflictException) { + 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.BasicFault updateConflictException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..13f0273040 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdateConflictExceptionType.java @@ -0,0 +1,32 @@ + +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 54367e6790..d4259d8104 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java @@ -1,33 +1,33 @@ 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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** - *

Java class for updateProperties element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="updateProperties">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="repositoryId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *           <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *           <element name="properties" type="{http://www.cmis.org/ns/1.0}propertiesType"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <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="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"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -42,14 +42,14 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "updateProperties") public class UpdateProperties { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String repositoryId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0") - protected String changeToken; - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) - protected PropertiesType properties; + @XmlElementRef(name = "changeToken", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected JAXBElement changeToken; + @XmlElement(required = true) + protected CmisPropertiesType properties; /** * Gets the value of the repositoryId property. @@ -104,10 +104,10 @@ public class UpdateProperties { * * @return * possible object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public String getChangeToken() { + public JAXBElement getChangeToken() { return changeToken; } @@ -116,11 +116,11 @@ public class UpdateProperties { * * @param value * allowed object is - * {@link String } + * {@link JAXBElement }{@code <}{@link String }{@code >} * */ - public void setChangeToken(String value) { - this.changeToken = value; + public void setChangeToken(JAXBElement value) { + this.changeToken = ((JAXBElement ) value); } /** @@ -128,10 +128,10 @@ public class UpdateProperties { * * @return * possible object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public PropertiesType getProperties() { + public CmisPropertiesType getProperties() { return properties; } @@ -140,10 +140,10 @@ public class UpdateProperties { * * @param value * allowed object is - * {@link PropertiesType } + * {@link CmisPropertiesType } * */ - public void setProperties(PropertiesType value) { + public void setProperties(CmisPropertiesType value) { this.properties = value; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java index e309fc6ee6..30a2f32ef2 100644 --- a/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java @@ -9,22 +9,20 @@ import javax.xml.bind.annotation.XmlType; /** - *

Java class for updatePropertiesResponse element declaration. + *

Java class for anonymous complex type. * *

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

- * <element name="updatePropertiesResponse">
- *   <complexType>
- *     <complexContent>
- *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *         <sequence>
- *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}ID"/>
- *         </sequence>
- *       </restriction>
- *     </complexContent>
- *   </complexType>
- * </element>
+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
  * 
* * @@ -36,7 +34,7 @@ import javax.xml.bind.annotation.XmlType; @XmlRootElement(name = "updatePropertiesResponse") public class UpdatePropertiesResponse { - @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + @XmlElement(required = true) protected String objectId; /** diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java index d500a0fc6f..7191fd1001 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningException.java @@ -5,18 +5,17 @@ import javax.xml.ws.WebFault; /** - * This class was generated by Apache CXF 2.0.6 - * Tue Jul 29 18:21:47 EEST 2008 - * Generated source version: 2.0.6 + * 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/ns/1.0") - +@WebFault(name = "versioningException", targetNamespace = "http://www.cmis.org/2008/05") public class VersioningException extends Exception { - public static final long serialVersionUID = 20080729182147L; + public static final long serialVersionUID = 20080905134438L; - private org.alfresco.repo.cmis.ws.BasicFault versioningException; + private org.alfresco.repo.cmis.ws.VersioningExceptionType versioningException; public VersioningException() { super(); @@ -30,17 +29,17 @@ public class VersioningException extends Exception { super(message, cause); } - public VersioningException(String message, org.alfresco.repo.cmis.ws.BasicFault versioningException) { + 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.BasicFault versioningException, Throwable cause) { + 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.BasicFault getFaultInfo() { + 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 new file mode 100755 index 0000000000..93ed99b4ae --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningExceptionType.java @@ -0,0 +1,32 @@ + +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 new file mode 100755 index 0000000000..5913622549 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningService.java @@ -0,0 +1,77 @@ + +/* + * + */ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; + +/** + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:45:08 EEST 2008 + * 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") +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"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/CMIS-WS/CMIS-WS/web/wsdl/cmis/VersioningService.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"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public VersioningService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public VersioningService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public VersioningService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns VersioningServicePort + */ + @WebEndpoint(name = "VersioningServicePort") + public VersioningServicePort getVersioningServicePort() { + return super.getPort(VersioningServicePort, VersioningServicePort.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns VersioningServicePort + */ + @WebEndpoint(name = "VersioningServicePort") + public VersioningServicePort getVersioningServicePort(WebServiceFeature... features) { + return super.getPort(VersioningServicePort, VersioningServicePort.class, features); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java index f090abb898..1560328a3b 100755 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningServicePort.java @@ -1,4 +1,3 @@ - package org.alfresco.repo.cmis.ws; import javax.jws.WebMethod; @@ -8,73 +7,84 @@ 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.0.6 - * Wed Jul 23 17:17:31 EEST 2008 - * Generated source version: 2.0.6 + * This class was generated by Apache CXF 2.1.2 + * Fri Sep 05 13:45:08 EEST 2008 + * Generated source version: 2.1.2 * */ - -@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "VersioningServicePort") - + +@WebService(targetNamespace = "http://www.cmis.org/2008/05", name = "VersioningServicePort") +@XmlSeeAlso({ObjectFactory.class}) public interface VersioningServicePort { - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "checkInResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") - @WebMethod - public org.alfresco.repo.cmis.ws.CheckInResponse checkIn( - @WebParam(partName = "parameters", name = "checkIn", targetNamespace = "http://www.cmis.org/ns/1.0") - CheckIn parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, PermissionDeniedException; - - @ResponseWrapper(localName = "cancelCheckOutResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CancelCheckOutResponse") - @RequestWrapper(localName = "cancelCheckOut", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CancelCheckOut") - @WebMethod - public void cancelCheckOut( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String documentId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getAllVersionsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") - @WebMethod - public org.alfresco.repo.cmis.ws.GetAllVersionsResponse getAllVersions( - @WebParam(partName = "parameters", name = "getAllVersions", targetNamespace = "http://www.cmis.org/ns/1.0") - GetAllVersions parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "deleteAllVersionsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteAllVersionsResponse") - @RequestWrapper(localName = "deleteAllVersions", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteAllVersions") - @WebMethod - public void deleteAllVersions( - @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String repositoryId, - @WebParam(name = "versionSeriesId", targetNamespace = "http://www.cmis.org/ns/1.0") - java.lang.String versionSeriesId - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) - @WebResult(name = "getPropertiesOfLatestVersionResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") - @WebMethod - public org.alfresco.repo.cmis.ws.GetPropertiesOfLatestVersionResponse getPropertiesOfLatestVersion( - @WebParam(partName = "parameters", name = "getPropertiesOfLatestVersion", targetNamespace = "http://www.cmis.org/ns/1.0") - GetPropertiesOfLatestVersion parameters - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; - - @ResponseWrapper(localName = "checkOutResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CheckOutResponse") - @RequestWrapper(localName = "checkOut", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CheckOut") + @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/ns/1.0") + @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/ns/1.0") + @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/ns/1.0") + @WebParam(mode = WebParam.Mode.OUT, name = "contentCopied", targetNamespace = "http://www.cmis.org/2008/05") javax.xml.ws.Holder contentCopied - ) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException; + ) 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") + @WebMethod + public GetAllVersionsResponse getAllVersions( + @WebParam(partName = "parameters", name = "getAllVersions", targetNamespace = "http://www.cmis.org/2008/05") + GetAllVersions parameters + ) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; + + @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") + @WebMethod + public void deleteAllVersions( + @WebParam(name = "repositoryId", targetNamespace = "http://www.cmis.org/2008/05") + java.lang.String repositoryId, + @WebParam(name = "versionSeriesId", targetNamespace = "http://www.cmis.org/2008/05") + java.lang.String versionSeriesId + ) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException; } diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java deleted file mode 100644 index 25a531e600..0000000000 --- a/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java +++ /dev/null @@ -1,52 +0,0 @@ - -package org.alfresco.repo.cmis.ws; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - - -/** - *

Java class for versioningStateEnum. - * - *

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

- *

- * <simpleType name="versioningStateEnum">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="checkedOut"/>
- *     <enumeration value="checkedInMinor"/>
- *     <enumeration value="checkedInMajor"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlEnum -public enum VersioningStateEnum { - - @XmlEnumValue("checkedInMajor") - CHECKED_IN_MAJOR("checkedInMajor"), - @XmlEnumValue("checkedInMinor") - CHECKED_IN_MINOR("checkedInMinor"), - @XmlEnumValue("checkedOut") - CHECKED_OUT("checkedOut"); - private final String value; - - VersioningStateEnum(String v) { - value = v; - } - - public String value() { - return value; - } - - public static VersioningStateEnum fromValue(String v) { - for (VersioningStateEnum c: VersioningStateEnum.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} diff --git a/source/generated/org/alfresco/repo/cmis/ws/package-info.java b/source/generated/org/alfresco/repo/cmis/ws/package-info.java index 8dd809b191..ce5d40abbc 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/ns/1.0") +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.cmis.org/2008/05", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.alfresco.repo.cmis.ws; diff --git a/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java index 12b5ab41ab..dd61819cb6 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java @@ -29,6 +29,7 @@ import java.math.BigInteger; import java.util.Date; import java.util.GregorianCalendar; +import javax.xml.bind.JAXBElement; import javax.xml.datatype.DatatypeConfigurationException; import javax.xml.datatype.DatatypeFactory; import javax.xml.datatype.XMLGregorianCalendar; @@ -39,6 +40,9 @@ import org.alfresco.cmis.dictionary.CMISMapping; import org.alfresco.cmis.property.CMISPropertyService; import org.alfresco.cmis.search.CMISQueryService; import org.alfresco.error.AlfrescoRuntimeException; +import org.alfresco.repo.web.util.paging.Cursor; +import org.alfresco.repo.web.util.paging.Page; +import org.alfresco.repo.web.util.paging.Paging; import org.alfresco.service.cmr.model.FileFolderService; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; @@ -58,7 +62,9 @@ import org.alfresco.service.namespace.QName; public class DMAbstractServicePort { private DatatypeFactory _datatypeFactory; + private Paging paging = new Paging(); + protected ObjectFactory cmisObjectFactory = new ObjectFactory(); protected CMISDictionaryService cmisDictionaryService; protected CMISQueryService cmisQueryService; protected CMISService cmisService; @@ -84,6 +90,21 @@ public class DMAbstractServicePort return _datatypeFactory; } + /** + * 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 + { + CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); + if (folderNodeRef == null || nodeService.exists(folderNodeRef) == false || cmisMapping.isValidCmisFolder(cmisMapping.getCmisType(nodeService.getType(folderNodeRef))) == false) + { + throw new FolderNotValidException("OID for non-existent object or not folder object"); + } + } + protected NodeRef getNodeRefFromOID(String oid) throws InvalidArgumentException { NodeRef nodeRef; @@ -94,93 +115,92 @@ public class DMAbstractServicePort } catch (AlfrescoRuntimeException e) { - // TODO: error code - throw new InvalidArgumentException("Invalid OID value", ExceptionUtils.createBasicFault(null, "Invalid OID value")); + throw new InvalidArgumentException("Invalid OID value", e); } return nodeRef; } - private void addBooleanProperty(PropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) + private void addBooleanProperty(CmisPropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) { Serializable value = cmisPropertyService.getProperty(nodeRef, name); if (filter.allow(name) && value != null) { - PropertyBooleanType propBoolean = new PropertyBooleanType(); - propBoolean.setName(name); + CmisPropertyBoolean propBoolean = new CmisPropertyBoolean (); + propBoolean.setName(PropertyUtil.getCMISPropertyName(name)); propBoolean.setValue((Boolean) value); - properties.getPropertyBoolean().add(propBoolean); + properties.getProperty().add(propBoolean); } } - private void addDateTimeProperty(PropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) + private void addDateTimeProperty(CmisPropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) { Serializable value = cmisPropertyService.getProperty(nodeRef, name); if (filter.allow(name) && value != null) { - PropertyDateTimeType propDateTime = new PropertyDateTimeType(); - propDateTime.setName(name); + CmisPropertyDateTime propDateTime = new CmisPropertyDateTime(); + propDateTime.setName(PropertyUtil.getCMISPropertyName(name)); propDateTime.setValue(convert((Date) value)); - properties.getPropertyDateTime().add(propDateTime); + properties.getProperty().add(propDateTime); } } - private void addIDProperty(PropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) + private void addIDProperty(CmisPropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) { Serializable value = cmisPropertyService.getProperty(nodeRef, name); if (filter.allow(name) && value != null) { - PropertyIDType propID = new PropertyIDType(); - propID.setName(name); + CmisPropertyId propID = new CmisPropertyId(); + propID.setName(PropertyUtil.getCMISPropertyName(name)); propID.setValue(value.toString()); - properties.getPropertyID().add(propID); + properties.getProperty().add(propID); } } - private void addIntegerProperty(PropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) + private void addIntegerProperty(CmisPropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) { Serializable value = cmisPropertyService.getProperty(nodeRef, name); if (filter.allow(name) && value != null) { - PropertyIntegerType propInteger = new PropertyIntegerType(); - propInteger.setName(name); + CmisPropertyInteger propInteger = new CmisPropertyInteger(); + propInteger.setName(PropertyUtil.getCMISPropertyName(name)); propInteger.setValue(BigInteger.valueOf((Long) value)); - properties.getPropertyInteger().add(propInteger); + properties.getProperty().add(propInteger); } } - private void addStringProperty(PropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) + private void addStringProperty(CmisPropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) { Serializable value = cmisPropertyService.getProperty(nodeRef, name); if (filter.allow(name) && value != null) { - PropertyStringType propString = new PropertyStringType(); - propString.setName(name); + CmisPropertyString propString = new CmisPropertyString(); + propString.setName(PropertyUtil.getCMISPropertyName(name)); propString.setValue(value.toString()); - properties.getPropertyString().add(propString); + properties.getProperty().add(propString); } } - private void addStringProperty(PropertiesType properties, PropertyFilter filter, String name, String value) + private void addStringProperty(CmisPropertiesType properties, PropertyFilter filter, String name, String value) { if (filter.allow(name) && value != null) { - PropertyStringType propString = new PropertyStringType(); + CmisPropertyString propString = new CmisPropertyString(); propString.setName(name); propString.setValue(value); - properties.getPropertyString().add(propString); + properties.getProperty().add(propString); } } - private void addURIProperty(PropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) + private void addURIProperty(CmisPropertiesType properties, PropertyFilter filter, String name, NodeRef nodeRef) { Serializable value = cmisPropertyService.getProperty(nodeRef, name); if (filter.allow(name) && value != null) { - PropertyURIType propString = new PropertyURIType(); - propString.setName(name); + CmisPropertyUri propString = new CmisPropertyUri(); + propString.setName(PropertyUtil.getCMISPropertyName(name)); propString.setValue(value.toString()); - properties.getPropertyURI().add(propString); + properties.getProperty().add(propString); } } @@ -191,12 +211,12 @@ public class DMAbstractServicePort * @param filter property filter * @return properties */ - public PropertiesType getPropertiesType(NodeRef nodeRef, PropertyFilter filter) + public CmisPropertiesType getPropertiesType(NodeRef nodeRef, PropertyFilter filter) { CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); QName cmisType = cmisMapping.getCmisType(nodeService.getType(nodeRef)); - PropertiesType properties = new PropertiesType(); + CmisPropertiesType properties = new CmisPropertiesType(); if (cmisMapping.isValidCmisDocument(cmisType)) { @@ -212,8 +232,8 @@ public class DMAbstractServicePort addIDProperty(properties, filter, CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_ID, nodeRef); addIntegerProperty(properties, filter, CMISMapping.PROP_CONTENT_STREAM_LENGTH, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_NAME, nodeRef); - addStringProperty(properties, filter, "baseType", "document"); - addIDProperty(properties, filter, CMISMapping.PROP_OBJECT_TYPE_ID, nodeRef); + addStringProperty(properties, filter, "BaseType", "document"); + addStringProperty(properties, filter, CMISMapping.PROP_OBJECT_TYPE_ID, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_CREATED_BY, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_LAST_MODIFIED_BY, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_CONTENT_STREAM_MIME_TYPE, nodeRef); @@ -230,8 +250,8 @@ public class DMAbstractServicePort addIDProperty(properties, filter, CMISMapping.PROP_OBJECT_ID, nodeRef); addIDProperty(properties, filter, CMISMapping.PROP_PARENT_ID, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_NAME, nodeRef); - addStringProperty(properties, filter, "baseType", "folder"); - addIDProperty(properties, filter, CMISMapping.PROP_OBJECT_TYPE_ID, nodeRef); + addStringProperty(properties, filter, "BaseType", "folder"); + addStringProperty(properties, filter, CMISMapping.PROP_OBJECT_TYPE_ID, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_CREATED_BY, nodeRef); addStringProperty(properties, filter, CMISMapping.PROP_LAST_MODIFIED_BY, nodeRef); } @@ -277,13 +297,24 @@ public class DMAbstractServicePort return latestVersionNodeRef; } + public static PropertyFilter createPropertyFilter(JAXBElement filterElt) throws FilterNotValidException + { + return (filterElt == null) ? (new PropertyFilter()) : (new PropertyFilter(filterElt.getValue())); + } + + public Cursor createCursor(int totalRows, BigInteger skipCount, BigInteger maxItems) + { + Page window = paging.createPageOrWindow(null, null, skipCount != null ? skipCount.intValue() : null, maxItems != null ? maxItems.intValue() : null); + return paging.createCursor(totalRows, window); + } + /** * Converts Date object to XMLGregorianCalendar object * * @param date Date object * @return XMLGregorianCalendar object */ - private XMLGregorianCalendar convert(Date date) + public XMLGregorianCalendar convert(Date date) { GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(date); diff --git a/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java index 1219ff1c7f..7c4cff704a 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java @@ -24,11 +24,10 @@ */ package org.alfresco.repo.cmis.ws; -import java.math.BigInteger; import java.util.List; import org.alfresco.cmis.CMISTypesFilterEnum; -import org.alfresco.cmis.dictionary.CMISMapping; +import org.alfresco.repo.web.util.paging.Cursor; import org.alfresco.service.cmr.repository.NodeRef; /** @@ -47,32 +46,24 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na return null; } - /** - * Asserts "Folder with folderNodeRef exists" - * - * @param folderNodeRef node reference - * @throws FolderNotValidException folderNodeRef doesn't exist or folderNodeRef isn't for folder object - */ - private void assertExistFolder(NodeRef folderNodeRef) throws FolderNotValidException - { - CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); - if (folderNodeRef == null || nodeService.exists(folderNodeRef) == false || cmisMapping.isValidCmisFolder(cmisMapping.getCmisType(nodeService.getType(folderNodeRef))) == false) - { - // TODO: error code - throw new FolderNotValidException("OID for non-existent object or not folder object", ExceptionUtils.createBasicFault(null, "OID for non-existent object or not folder object")); - } - } - public GetChildrenResponse getChildren(GetChildren parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, FilterNotValidException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException { - PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); NodeRef folderNodeRef = getNodeRefFromOID(parameters.getFolderId()); assertExistFolder(folderNodeRef); NodeRef[] listing = null; - switch (parameters.getType()) + + EnumTypesOfFileableObjects types = EnumTypesOfFileableObjects.ANY; + + if (parameters.getType() != null) + { + types = parameters.getType().getValue(); + } + + switch (types) { case DOCUMENTS: listing = cmisService.getChildren(folderNodeRef, CMISTypesFilterEnum.DOCUMENTS); @@ -81,46 +72,29 @@ public class DMNavigationServicePort extends DMAbstractServicePort implements Na listing = cmisService.getChildren(folderNodeRef, CMISTypesFilterEnum.FOLDERS); break; case POLICIES: - throw new OperationNotSupportedException("Policies listing isn't supported", ExceptionUtils.createBasicFault(null, "Policies listing isn't supported")); + throw new OperationNotSupportedException("Policies listing isn't supported"); case ANY: listing = cmisService.getChildren(folderNodeRef, CMISTypesFilterEnum.ANY); break; } - int maxItems = listing.length; - int skipCount = 0; + Cursor cursor = createCursor(listing.length, parameters.getSkipCount() != null ? parameters.getSkipCount().getValue() : null, parameters.getMaxItems() != null ? parameters + .getMaxItems().getValue() : null); GetChildrenResponse response = new GetChildrenResponse(); + List resultListing = response.getObject(); - // TODO: getChildren, support for BigIntegers, support for ResultSet - if (parameters.getSkipCount() != null) + for (int index = cursor.getStartRow(); index <= cursor.getEndRow(); index++) { - BigInteger skipCountParam = parameters.getSkipCount(); - skipCount = skipCountParam.max(BigInteger.valueOf(skipCount)).intValue(); + NodeRef currentNodeRef = listing[index]; + CmisObjectType cmisObject = new CmisObjectType(); + cmisObject.setProperties(getPropertiesType(currentNodeRef, propertyFilter)); + resultListing.add(cmisObject); } - if (parameters.getMaxItems() != null) + if (parameters.getMaxItems() != null && cursor.getRowCount() > 0) { - BigInteger maxItemsParam = parameters.getMaxItems(); - maxItems = maxItemsParam.min(BigInteger.valueOf(maxItems)).intValue(); - - if (maxItems == 0) - { - maxItems = listing.length; - } - - response.setHasMoreItems(maxItems < listing.length); - } - - response.setChildren(new ChildrenType()); - List resultListing = response.getChildren().getChild(); - - for (int index = skipCount; index < listing.length && maxItems > 0; ++index, --maxItems) - { - NodeRef currentFileInfo = listing[index]; - FolderTreeType folderTreeType = new FolderTreeType(); - folderTreeType.setProperties(getPropertiesType(currentFileInfo, propertyFilter)); - resultListing.add(folderTreeType); + response.setHasMoreItems(cursor.getRowCount() < listing.length); } return response; diff --git a/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java index 8be230a8a5..80c80d67e4 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java @@ -24,14 +24,22 @@ */ package org.alfresco.repo.cmis.ws; +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; import java.math.BigInteger; +import java.util.HashMap; +import java.util.Map; import javax.activation.DataHandler; import javax.xml.ws.Holder; import org.alfresco.cmis.dictionary.CMISMapping; +import org.alfresco.cmis.dictionary.CMISTypeId; import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; +import org.alfresco.service.cmr.model.FileExistsException; 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.namespace.QName; @@ -45,150 +53,273 @@ import org.alfresco.service.namespace.QName; public class DMObjectServicePort extends DMAbstractServicePort implements ObjectServicePort { - public CreateDocumentResponse createDocument(CreateDocument parameters) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, StorageException, - ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, FolderNotValidException, PermissionDeniedException + private Map getPropertiesMap(CmisPropertiesType cmisProperties) throws InvalidArgumentException + { + Map properties = new HashMap(); + + for (CmisProperty cmisProperty : cmisProperties.getProperty()) + { + String name = PropertyUtil.getRepositoryPropertyName(cmisProperty.getName()); + + if (name == null) + { + throw new InvalidArgumentException("Unknown property with name " + name); + } + + properties.put(name, PropertyUtil.getValue(cmisProperty)); + } + + return properties; + } + + 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 + { + + if (descriptorService.getServerDescriptor().getId().equals(repositoryId) == false) + { + throw new InvalidArgumentException("Invalid repository id"); + } + + Map propertiesMap = getPropertiesMap(properties); + CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); + CMISTypeId cmisTypeId = cmisMapping.getCmisTypeId(typeId); + + if (cmisMapping.getCmisTypeId(typeId).equals(CMISMapping.DOCUMENT_TYPE_ID) == false) + { + throw new ConstraintViolationException("Invalid document type"); + } + + NodeRef parentNodeRef = getNodeRefFromOID(folderId); + + if (!nodeService.exists(parentNodeRef)) + { + throw new FolderNotValidException("Invalid parent OID"); + } + + String documentName = (String) propertiesMap.get(CMISMapping.PROP_NAME); + if (documentName == null) + { + throw new InvalidArgumentException("Name property not found"); + } + + NodeRef newDocumentNodeRef = fileFolderService.create(parentNodeRef, documentName, cmisTypeId.getQName()).getNodeRef(); + ContentWriter writer = fileFolderService.getWriter(newDocumentNodeRef); + String mimeType = (String) propertiesMap.get(CMISMapping.PROP_CONTENT_STREAM_MIME_TYPE); + if (mimeType != null) + { + writer.setMimetype(mimeType); + } + InputStream inputstream = null; + try + { + inputstream = contentStream.getStream().getInputStream(); + } + catch (IOException e) + { + e.printStackTrace(); + throw new ConstraintViolationException("", e.getCause()); + } + writer.putContent(inputstream); + + if (versioningState == null) + { + versioningState = EnumVersioningState.MAJOR; + } + + cmisPropertyService.setProperties(newDocumentNodeRef, propertiesMap); + + switch (versioningState) + { + case CHECKEDOUT: + //TODO: maybe this must be done by VersioningService + cmisPropertyService.setProperty(newDocumentNodeRef, CMISMapping.PROP_IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE); + break; + case MAJOR: + cmisPropertyService.setProperty(newDocumentNodeRef, CMISMapping.PROP_IS_MAJOR_VERSION, Boolean.FALSE); + break; + case MINOR: + cmisPropertyService.setProperty(newDocumentNodeRef, CMISMapping.PROP_IS_MAJOR_VERSION, Boolean.TRUE); + break; + + } + + return newDocumentNodeRef.toString(); + } + + public String createFolder(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) throws PermissionDeniedException, UpdateConflictException, + FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + { + if (descriptorService.getServerDescriptor().getId().equals(repositoryId) == false) + { + throw new InvalidArgumentException("Invalid repository id"); + } + + NodeRef folderNodeRef = getNodeRefFromOID(folderId); + assertExistFolder(folderNodeRef); + + CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); + + CMISTypeId cmisTypeId = cmisMapping.getCmisTypeId(typeId); + + Map propertiesMap = getPropertiesMap(properties); + + String name = (String) propertiesMap.get(CMISMapping.PROP_NAME); + if (name == null) + { + throw new InvalidArgumentException("Name property not found"); + } + + try + { + NodeRef newFolderNodeRef = fileFolderService.create(folderNodeRef, name, cmisTypeId.getQName()).getNodeRef(); + cmisPropertyService.setProperties(newFolderNodeRef, propertiesMap); + return newFolderNodeRef.toString(); + } + catch (FileExistsException e) + { + throw new UpdateConflictException("Folder already exists"); + } + } + + public String createPolicy(String repositoryId, String typeId, CmisPropertiesType properties, String folderId) throws PermissionDeniedException, UpdateConflictException, + FolderNotValidException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException { return null; } - public String createFolder(String repositoryId, String typeId, PropertiesType properties, String folderId) throws RuntimeException, InvalidArgumentException, - TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public String createRelationship(String repositoryId, String typeId, CmisPropertiesType properties, String sourceObjectId, String targetObjectId) + throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, + RuntimeException, ConstraintViolationException { return null; } - public String createPolicy(String repositoryId, String typeId, PropertiesType properties, String folderId) throws RuntimeException, InvalidArgumentException, - TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException + public void deleteContentStream(String repositoryId, String documentId) throws PermissionDeniedException, UpdateConflictException, StorageException, + StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, VersioningException, InvalidArgumentException, RuntimeException, + ConstraintViolationException + { + } + + public void deleteObject(String repositoryId, String objectId) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, + OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + { + } + + public FailedToDelete deleteTree(String repositoryId, String folderId, EnumUnfileNonfolderObjects unfileNonfolderObjects, Boolean continueOnFailure) + throws PermissionDeniedException, UpdateConflictException, FolderNotValidException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, + ConstraintViolationException { return null; } - public String createRelationship(String repositoryId, String typeId, PropertiesType properties, String sourceObjectId, String targetObjectId) throws RuntimeException, - InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, - PermissionDeniedException + public CmisAllowableActionsType getAllowableActions(String repositoryId, String objectId) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, + OperationNotSupportedException, InvalidArgumentException, RuntimeException { return null; } - public void deleteContentStream(String repositoryId, String documentId) throws RuntimeException, InvalidArgumentException, VersioningException, ObjectNotFoundException, - StorageException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, PermissionDeniedException + public CmisContentStreamType getContentStream(String repositoryId, String documentId) throws PermissionDeniedException, UpdateConflictException, StorageException, + StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, OffsetException { - } - - public void deleteObject(String repositoryId, String objectId) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, - OperationNotSupportedException, UpdateConflictException, PermissionDeniedException - { - } - - public FailedToDelete deleteTree(String repositoryId, String folderId, UnfileNonfolderObjectsEnum unfileNonfolderObjects, Boolean continueOnFailure) throws RuntimeException, - InvalidArgumentException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, PermissionDeniedException - { - return null; - } - - public AllowableActionsType getAllowableActions(String repositoryId, String objectId, String asUser) throws RuntimeException, InvalidArgumentException, - ObjectNotFoundException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException - { - return null; - } - - public GetContentStreamResponse getContentStream(GetContentStream parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, StorageException, - OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, OffsetException, PermissionDeniedException - { - NodeRef nodeRef = getNodeRefFromOID(parameters.getDocumentId()); + NodeRef nodeRef = getNodeRefFromOID(documentId); if (!nodeService.exists(nodeRef)) { - // TODO: error code - throw new ObjectNotFoundException("Invalid document OID", ExceptionUtils.createBasicFault(null, "Invalid document OID")); + throw new ObjectNotFoundException("Invalid document OID"); } CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); if (cmisMapping.isValidCmisDocument(cmisMapping.getCmisType(nodeService.getType(nodeRef))) == false) { - // TODO: error code - throw new StreamNotSupportedException("Stream not supported for this type of node", ExceptionUtils.createBasicFault(null, "Stream not supported for this type of node")); + throw new StreamNotSupportedException("Stream not supported for this type of node"); } ContentReader reader = fileFolderService.getReader(nodeRef); - GetContentStreamResponse response = new GetContentStreamResponse(); - response.setContentStream(new ContentStreamType()); - ContentStreamType contentStream = response.getContentStream(); - contentStream.setLength(BigInteger.valueOf(reader.getSize())); - contentStream.setMimeType(reader.getMimetype()); + CmisContentStreamType response = new CmisContentStreamType(); + response.setLength(BigInteger.valueOf(reader.getSize())); + response.setMimeType(reader.getMimetype()); String filename = (String) cmisPropertyService.getProperty(nodeRef, CMISMapping.PROP_NAME); - contentStream.setFilename(filename); - contentStream.setStream(new DataHandler(new ContentReaderDataSource(reader, filename))); + response.setFilename(filename); + response.setStream(new DataHandler(new ContentReaderDataSource(reader, filename))); return response; } - public GetPropertiesResponse getProperties(GetProperties parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, - OperationNotSupportedException, UpdateConflictException, PermissionDeniedException + public void moveObject(String repositoryId, String objectId, String targetFolderId, String sourceFolderId) throws PermissionDeniedException, UpdateConflictException, + ObjectNotFoundException, FolderNotValidException, OperationNotSupportedException, NotInFolderException, InvalidArgumentException, RuntimeException, + ConstraintViolationException { - PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + } + + public void setContentStream(String repositoryId, Holder documentId, Boolean overwriteFlag, CmisContentStreamType contentStream) throws PermissionDeniedException, + UpdateConflictException, StorageException, StreamNotSupportedException, ObjectNotFoundException, OperationNotSupportedException, ContentAlreadyExistsException, + InvalidArgumentException, RuntimeException, ConstraintViolationException + { + } + + public void updateProperties(String repositoryId, Holder objectId, String changeToken, CmisPropertiesType properties) throws PermissionDeniedException, + UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException + { + } + + public GetPropertiesResponse getProperties(GetProperties parameters) throws PermissionDeniedException, UpdateConflictException, FilterNotValidException, + ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException + { + if (descriptorService.getServerDescriptor().getId().equals(parameters.getRepositoryId()) == false) + { + throw new InvalidArgumentException("Invalid repository id"); + } + + PropertyFilter propertyFilter = createPropertyFilter(parameters.getFilter()); NodeRef nodeRef = getNodeRefFromOID(parameters.getObjectId()); if (nodeService.exists(nodeRef) == false) { - // TODO: error code - throw new ObjectNotFoundException("Object not found", ExceptionUtils.createBasicFault(null, "Object not found")); + throw new ObjectNotFoundException("Object not found"); } QName typeQName = nodeService.getType(nodeRef); - GetPropertiesResponse response = new GetPropertiesResponse(); - response.setObject(new ObjectType()); + CMISMapping cmisMapping = cmisDictionaryService.getCMISMapping(); - if (cmisDictionaryService.getCMISMapping().isValidCmisFolder(typeQName)) + if (cmisMapping.isValidCmisDocument((cmisMapping.getCmisType(typeQName)))) { - ObjectType folderObject = response.getObject(); - folderObject.setProperties(getPropertiesType(nodeRef, propertyFilter)); -// TODO: folderObject.setAllowableActions(getAllowableActionsType(nodeRef)); - } - else - { - VersionEnum neededVersion = parameters.getReturnVersion(); - - if (neededVersion != null) + if (parameters.getReturnVersion() != null) { - if (neededVersion.equals(VersionEnum.LATEST)) + EnumReturnVersion neededVersion = parameters.getReturnVersion().getValue(); + + if (neededVersion.equals(EnumReturnVersion.LATEST)) { nodeRef = getLatestVersionNodeRef(nodeRef, false); } - else if (neededVersion.equals(VersionEnum.LATEST_MAJOR)) + else if (neededVersion.equals(EnumReturnVersion.LATESTMAJOR)) { nodeRef = getLatestVersionNodeRef(nodeRef, true); } } + } - ObjectType documentObject = response.getObject(); - documentObject.setProperties(getPropertiesType(nodeRef, propertyFilter)); -// TODO: documentObject.setAllowableActions(getAllowableActionsType(nodeRef)); + GetPropertiesResponse response = new GetPropertiesResponse(); + response.setObject(new CmisObjectType()); + CmisObjectType object = response.getObject(); + object.setProperties(getPropertiesType(nodeRef, propertyFilter)); + + if (parameters.getIncludeAllowableActions() != null && parameters.getIncludeAllowableActions().getValue()) + { + // TODO: allowable actions + } + + if (parameters.getIncludeRelationships() != null && parameters.getIncludeAllowableActions().getValue()) + { + // TODO: relationships } return response; } - public void moveObject(String repositoryId, String objectId, String targetFolderId, String sourceFolderId) throws RuntimeException, InvalidArgumentException, - ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, FolderNotValidException, - PermissionDeniedException - { - } - - public SetContentStreamResponse setContentStream(SetContentStream parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, StorageException, - ContentAlreadyExistsException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, StreamNotSupportedException, - PermissionDeniedException - { - return null; - } - - public void updateProperties(String repositoryId, Holder objectId, String changeToken, PropertiesType properties) throws RuntimeException, InvalidArgumentException, - ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException - { - } - } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java index 6279488304..4f7cdb89c1 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java @@ -24,22 +24,29 @@ */ package org.alfresco.repo.cmis.ws; +import java.math.BigDecimal; import java.math.BigInteger; import java.util.Collection; import java.util.Collections; +import java.util.Date; import java.util.HashMap; +import java.util.Iterator; import java.util.List; import java.util.Map; +import javax.xml.bind.JAXBElement; + import org.alfresco.cmis.CMISCardinalityEnum; import org.alfresco.cmis.CMISContentStreamAllowedEnum; import org.alfresco.cmis.CMISFullTextSearchEnum; import org.alfresco.cmis.CMISJoinEnum; import org.alfresco.cmis.CMISPropertyTypeEnum; import org.alfresco.cmis.CMISUpdatabilityEnum; +import org.alfresco.cmis.dictionary.CMISChoice; import org.alfresco.cmis.dictionary.CMISPropertyDefinition; import org.alfresco.cmis.dictionary.CMISTypeDefinition; import org.alfresco.cmis.dictionary.CMISTypeId; +import org.alfresco.repo.web.util.paging.Cursor; import org.alfresco.service.descriptor.Descriptor; /** @@ -51,185 +58,372 @@ import org.alfresco.service.descriptor.Descriptor; @javax.jws.WebService(name = "RepositoryServicePort", serviceName = "RepositoryService", portName = "RepositoryServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.RepositoryServicePort") public class DMRepositoryServicePort extends DMAbstractServicePort implements RepositoryServicePort { - private static Map fulltextEnumMapping; - private static Map joinEnumMapping; - private static Map contentStreamAllowedEnumMapping; - private static Map updatabilityEnumMapping; - private static Map cardinalityEnumMapping; - private static Map propertyTypeEnumMapping; + private static Map fulltextEnumMapping; + private static Map joinEnumMapping; + private static Map contentStreamAllowedEnumMapping; + private static Map updatabilityEnumMapping; + private static Map cardinalityEnumMapping; + private static Map propertyTypeEnumMapping; static { - fulltextEnumMapping = new HashMap(); - fulltextEnumMapping.put(CMISFullTextSearchEnum.NO_FULL_TEXT, FulltextEnum.NO_FULLTEXT); - fulltextEnumMapping.put(CMISFullTextSearchEnum.FULL_TEXT_ONLY, FulltextEnum.FULLTEXT_ONLY); - fulltextEnumMapping.put(CMISFullTextSearchEnum.FULL_TEXT_AND_STRUCTURED, FulltextEnum.FULLTEXT_AND_STRUCTURED); + fulltextEnumMapping = new HashMap(); + fulltextEnumMapping.put(CMISFullTextSearchEnum.NO_FULL_TEXT, EnumCapabilityFullText.NONE); + fulltextEnumMapping.put(CMISFullTextSearchEnum.FULL_TEXT_ONLY, EnumCapabilityFullText.FULLTEXTONLY); + fulltextEnumMapping.put(CMISFullTextSearchEnum.FULL_TEXT_AND_STRUCTURED, EnumCapabilityFullText.FULLTEXTANDSTRUCTURED); - joinEnumMapping = new HashMap(); - joinEnumMapping.put(CMISJoinEnum.INNER_AND_OUTER_JOIN_SUPPORT, JoinEnum.INNER_AND_OUTER); - joinEnumMapping.put(CMISJoinEnum.INNER_JOIN_SUPPORT, JoinEnum.INNER_ONLY); - joinEnumMapping.put(CMISJoinEnum.NO_JOIN_SUPPORT, JoinEnum.NO_JOIN); + 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); - contentStreamAllowedEnumMapping = new HashMap(); - contentStreamAllowedEnumMapping.put(CMISContentStreamAllowedEnum.ALLOWED, ContentStreamAllowedEnum.ALLOWED); - contentStreamAllowedEnumMapping.put(CMISContentStreamAllowedEnum.NOT_ALLOWED, ContentStreamAllowedEnum.NOT_ALLOWED); - contentStreamAllowedEnumMapping.put(CMISContentStreamAllowedEnum.REQUIRED, ContentStreamAllowedEnum.REQUIRED); + 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, UpdatabilityEnum.READ_WRITE); - updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_AND_WRITE_WHEN_CHECKED_OUT, UpdatabilityEnum.READ_WRITE_WHEN_CHECKED_OUT); - updatabilityEnumMapping.put(CMISUpdatabilityEnum.READ_ONLY, UpdatabilityEnum.READ_ONLY); + 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); - cardinalityEnumMapping = new HashMap(); - cardinalityEnumMapping.put(CMISCardinalityEnum.MULTI_VALUED, CardinalityEnum.MULTI_VALUED); - cardinalityEnumMapping.put(CMISCardinalityEnum.SINGLE_VALUED, CardinalityEnum.SINGLE_VALUED); + cardinalityEnumMapping = new HashMap(); + cardinalityEnumMapping.put(CMISCardinalityEnum.MULTI_VALUED, EnumCardinality.MULTI); + cardinalityEnumMapping.put(CMISCardinalityEnum.SINGLE_VALUED, EnumCardinality.SINGLE); - propertyTypeEnumMapping = new HashMap(); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.BOOLEAN, PropertyTypeEnum.BOOLEAN); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.DATETIME, PropertyTypeEnum.DATE_TIME); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.DECIMAL, PropertyTypeEnum.DECIMAL); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.HTML, PropertyTypeEnum.HTML); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.ID, PropertyTypeEnum.ID); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.INTEGER, PropertyTypeEnum.INTEGER); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.STRING, PropertyTypeEnum.STRING); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.URI, PropertyTypeEnum.URI); - propertyTypeEnumMapping.put(CMISPropertyTypeEnum.XML, PropertyTypeEnum.XML); + propertyTypeEnumMapping = new HashMap(); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.BOOLEAN, EnumPropertyType.BOOLEAN); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.DATETIME, EnumPropertyType.DATETIME); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.DECIMAL, EnumPropertyType.DECIMAL); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.HTML, EnumPropertyType.HTML); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.ID, EnumPropertyType.ID); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.INTEGER, EnumPropertyType.INTEGER); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.STRING, EnumPropertyType.STRING); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.URI, EnumPropertyType.URI); + propertyTypeEnumMapping.put(CMISPropertyTypeEnum.XML, EnumPropertyType.XML); } - public List getRepositories() throws RuntimeException, InvalidArgumentException, OperationNotSupportedException, UpdateConflictException, + public List getRepositories() throws RuntimeException, InvalidArgumentException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException { - RepositoryType repositoryType = new RepositoryType(); - Descriptor serverDescriptor = descriptorService.getCurrentRepositoryDescriptor(); - repositoryType.setRepositoryID(serverDescriptor.getId()); - repositoryType.setRepositoryName(serverDescriptor.getName()); - return Collections.singletonList(repositoryType); + CmisRepositoryEntryType repositoryEntryType = new CmisRepositoryEntryType(); + Descriptor serverDescriptor = descriptorService.getServerDescriptor(); + repositoryEntryType.setRepositoryID(serverDescriptor.getId()); + repositoryEntryType.setRepositoryName(serverDescriptor.getName()); + return Collections.singletonList(repositoryEntryType); } - public RepositoryInfoType getRepositoryInfo(String repositoryId) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, - OperationNotSupportedException, UpdateConflictException, PermissionDeniedException + public CmisRepositoryInfoType getRepositoryInfo(GetRepositoryInfo parameters) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, + OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException { - Descriptor serverDescriptor = descriptorService.getCurrentRepositoryDescriptor(); + Descriptor serverDescriptor = descriptorService.getServerDescriptor(); - if (serverDescriptor.getId().equals(repositoryId) == false) + if (serverDescriptor.getId().equals(parameters.getRepositoryId()) == false) { - // TODO: error code - throw new InvalidArgumentException("Invalid repository id", ExceptionUtils.createBasicFault(null, "Invalid repository id")); + throw new InvalidArgumentException("Invalid repository id"); } - RepositoryInfoType repositoryInfoType = new RepositoryInfoType(); + CmisRepositoryInfoType repositoryInfoType = new CmisRepositoryInfoType(); repositoryInfoType.setRepositoryId(serverDescriptor.getId()); repositoryInfoType.setRepositoryName(serverDescriptor.getName()); + repositoryInfoType.setRepositoryRelationship("self"); repositoryInfoType.setRepositoryDescription(""); repositoryInfoType.setRootFolderId(cmisService.getDefaultRootNodeRef().toString()); repositoryInfoType.setVendorName("Alfresco"); repositoryInfoType.setProductName("Alfresco Repository (" + serverDescriptor.getEdition() + ")"); repositoryInfoType.setProductVersion(serverDescriptor.getVersion()); - CapabilitiesType capabilities = new CapabilitiesType(); + + CmisRepositoryCapabilitiesType capabilities = new CmisRepositoryCapabilitiesType(); capabilities.setCapabilityMultifiling(true); capabilities.setCapabilityUnfiling(false); capabilities.setCapabilityVersionSpecificFiling(false); - capabilities.setCapabilityPWCUpdatable(true); + capabilities.setCapabilityPWCUpdateable(true); capabilities.setCapabilityAllVersionsSearchable(cmisQueryService.getAllVersionsSearchable()); capabilities.setCapabilityJoin(joinEnumMapping.get(cmisQueryService.getJoinSupport())); - capabilities.setCapabilityFulltext(fulltextEnumMapping.get(cmisQueryService.getFullTextSearchSupport())); + capabilities.setCapabilityFullText(fulltextEnumMapping.get(cmisQueryService.getFullTextSearchSupport())); repositoryInfoType.setCapabilities(capabilities); + repositoryInfoType.setCmisVersionsSupported(cmisService.getCMISVersion()); return repositoryInfoType; } /** - * @param allowedTypes collection of CMISTypeId - * @param allowedTypesResult output list of strings + * Create web service choice object from repository choice object + * + * @param choice repository choice + * @param propertyType type of property + * @return web service choice */ - private void setAllowedTypes(Collection allowedTypes, List allowedTypesResult) + private JAXBElement getCmisChoiceType(CMISChoice choice, CMISPropertyTypeEnum propertyType) { - for(CMISTypeId typeId : allowedTypes) + JAXBElement result = null; + + switch (propertyType) { - allowedTypesResult.add(typeId.getTypeId()); + 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; + } + + return result; + } + + /** + * Add choices childrens to list of JAXBElements + * + * @param propertyType type of property + * @param choices repository choice object + * @param cmisChoices web service choice object + */ + private void addChoiceChildrens(CMISPropertyTypeEnum propertyType, Collection choices, List> cmisChoices) + { + for (CMISChoice choice : choices) + { + JAXBElement cmisChoiceType = getCmisChoiceType(choice, propertyType); + cmisChoices.add(cmisChoiceType); + + if (choice.getChildren().isEmpty() == false) + { + addChoiceChildrens(propertyType, choice.getChildren(), cmisChoiceType.getValue().getChoice()); + } } } /** - * @param propertyDefinition - * @param propertyDefs + * Add root choices to list of choices + * + * @param propertyType type of property + * @param choices repository choice object + * @param cmisChoices web service choice object */ - private void addPropertyDef(CMISPropertyDefinition propertyDefinition, List propertyDefs) + private void addChoices(CMISPropertyTypeEnum propertyType, Collection choices, List cmisChoices) { - PropertyAttributesType propertyAttributes = new PropertyAttributesType(); + for (CMISChoice choice : choices) + { + JAXBElement cmisChoiceType = getCmisChoiceType(choice, propertyType); + cmisChoices.add(cmisChoiceType.getValue()); - propertyAttributes.setPropertyName(propertyDefinition.getPropertyName()); - propertyAttributes.setPropertyId(propertyDefinition.getPropertyId()); - propertyAttributes.setDisplayName(propertyDefinition.getDisplayName()); - propertyAttributes.setDescription(propertyDefinition.getDescription()); - propertyAttributes.setIsInherited(propertyDefinition.isInherited()); - propertyAttributes.setPropertyType(propertyTypeEnumMapping.get(propertyDefinition.getPropertyType())); - propertyAttributes.setCardinality(cardinalityEnumMapping.get(propertyDefinition.getCardinality())); - propertyAttributes.setMaximumLength(BigInteger.valueOf(propertyDefinition.getMaximumLength())); - propertyAttributes.setSchemaURI(propertyDefinition.getSchemaURI()); - propertyAttributes.setEncoding(propertyDefinition.getEncoding()); - // TODO: add choices -// List choices = propertyAttributes.getChoice(); -// for(CMISChoice cmisChoice : propertyDefinition.getChoices()) -// { -// ChoiceType choice = new ChoiceType(); -// choice.setIndex(BigInteger.valueOf(cmisChoice.getIndex())); -// choice.setKey(cmisChoice.getName()); -// choices.add(choice); -// } - propertyAttributes.setOpenChoice(propertyDefinition.isOpenChoice()); - propertyAttributes.setRequired(propertyDefinition.isRequired()); - propertyAttributes.setDefaultValue(propertyDefinition.getDefaultValue()); - propertyAttributes.setUpdatability(updatabilityEnumMapping.get(propertyDefinition.getUpdatability())); - propertyAttributes.setQueryable(propertyDefinition.isQueryable()); - propertyAttributes.setOrderable(propertyDefinition.isOrderable()); - - propertyDefs.add(propertyAttributes); + if (choice.getChildren().isEmpty() == false) + { + addChoiceChildrens(propertyType, choice.getChildren(), cmisChoiceType.getValue().getChoice()); + } + } } - public ObjectTypeDefinitionType getTypeDefinition(String repositoryId, String typeId) throws RuntimeException, InvalidArgumentException, TypeNotFoundException, - ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException + /** + * Add property definitions to list of definitions + * + * @param propertyDefinition repository property definition + * @param wsPropertyDefs web service property definition + */ + private void addPropertyDefs(CMISPropertyDefinition propertyDefinition, List wsPropertyDefs) + { + CmisPropertyDefinitionType wsPropertyDef = new CmisPropertyDefinitionType(); + wsPropertyDef.setName(propertyDefinition.getPropertyName()); + wsPropertyDef.setId(propertyDefinition.getPropertyId()); + wsPropertyDef.setDisplayName(propertyDefinition.getDisplayName()); + wsPropertyDef.setDescription(propertyDefinition.getDescription()); + wsPropertyDef.setPropertyType(propertyTypeEnumMapping.get(propertyDefinition.getPropertyType())); + wsPropertyDef.setCardinality(cardinalityEnumMapping.get(propertyDefinition.getCardinality())); + wsPropertyDef.setUpdateability(updatabilityEnumMapping.get(propertyDefinition.getUpdatability())); + wsPropertyDef.setInherited(propertyDefinition.isInherited()); + wsPropertyDef.setRequired(propertyDefinition.isRequired()); + wsPropertyDef.setQueryable(propertyDefinition.isQueryable()); + wsPropertyDef.setOrderable(propertyDefinition.isOrderable()); + addChoices(propertyDefinition.getPropertyType(), propertyDefinition.getChoices(), wsPropertyDef.getChoice()); + wsPropertyDef.setOpenChoice(propertyDefinition.isOpenChoice()); + + wsPropertyDefs.add(wsPropertyDef); + } + + /** + * 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) + { + cmisTypeDefinition.setTypeId(typeDefinition.getObjectTypeId().getTypeId()); + cmisTypeDefinition.setQueryName(typeDefinition.getObjectTypeQueryName()); + cmisTypeDefinition.setDisplayName(typeDefinition.getObjectTypeDisplayName()); + cmisTypeDefinition.setBaseType(EnumObjectType.fromValue(typeDefinition.getRootTypeId().getTypeId())); + cmisTypeDefinition.setParentId(typeDefinition.getParentTypeId().getTypeId()); + cmisTypeDefinition.setBaseTypeQueryName(typeDefinition.getRootTypeQueryName()); + cmisTypeDefinition.setDescription(typeDefinition.getDescription()); + cmisTypeDefinition.setCreatable(typeDefinition.isCreatable()); + cmisTypeDefinition.setFileable(typeDefinition.isFileable()); + cmisTypeDefinition.setQueryable(typeDefinition.isQueryable()); + cmisTypeDefinition.setControllable(typeDefinition.isControllable()); + cmisTypeDefinition.setIncludedInSupertypeQuery(typeDefinition.isIncludedInSupertypeQuery()); + + if (includeProperties) + { + List propertyDefs = cmisTypeDefinition.getPropertyDefinition(); + for (CMISPropertyDefinition cmisPropDef : cmisDictionaryService.getPropertyDefinitions(typeDefinition.getObjectTypeId()).values()) + { + addPropertyDefs(cmisPropDef, propertyDefs); + } + } + } + + /** + * 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 + */ + private JAXBElement getCmisTypeDefinition(String typeId, boolean includeProperties) throws ObjectNotFoundException { CMISTypeId cmisTypeId = cmisDictionaryService.getCMISMapping().getCmisTypeId(typeId); CMISTypeDefinition typeDefinition = cmisDictionaryService.getType(cmisTypeId); + if (typeDefinition.getParentTypeId() == null) + { + return null; + } + if (typeDefinition == null) { - // TODO: error code - throw new ObjectNotFoundException("Type not found", ExceptionUtils.createBasicFault(null, "Type not found")); + throw new ObjectNotFoundException("Type not found"); } - ObjectTypeDefinitionType objectTypeDefinitionType = new ObjectTypeDefinitionType(); - objectTypeDefinitionType.setObjectTypeID(typeDefinition.getObjectTypeId().getTypeId()); - objectTypeDefinitionType.setObjectTypeQueryName(typeDefinition.getObjectTypeQueryName()); - objectTypeDefinitionType.setObjectTypeDisplayName(typeDefinition.getObjectTypeDisplayName()); - objectTypeDefinitionType.setParentTypeID(typeDefinition.getParentTypeId() == null ? null : typeDefinition.getParentTypeId().getTypeId()); - objectTypeDefinitionType.setRootTypeQueryName(typeDefinition.getRootTypeQueryName()); - objectTypeDefinitionType.setDescription(typeDefinition.getDescription()); - objectTypeDefinitionType.setCreatable(typeDefinition.isCreatable()); - objectTypeDefinitionType.setFileable(typeDefinition.isFileable()); - objectTypeDefinitionType.setQueryable(typeDefinition.isQueryable()); - objectTypeDefinitionType.setControllable(typeDefinition.isControllable()); - objectTypeDefinitionType.setVersionable(typeDefinition.isVersionable()); - objectTypeDefinitionType.setContentStreamAllowed(contentStreamAllowedEnumMapping.get(typeDefinition.getContentStreamAllowed())); - setAllowedTypes(typeDefinition.getAllowedSourceTypes(), objectTypeDefinitionType.getAllowedSourceType()); - setAllowedTypes(typeDefinition.getAllowedTargetTypes(), objectTypeDefinitionType.getAllowedTargetType()); + JAXBElement result = null; - List propertyDefs = objectTypeDefinitionType.getProperty(); - - for (CMISPropertyDefinition propDef : cmisDictionaryService.getPropertyDefinitions(typeDefinition.getObjectTypeId()).values()) + switch (cmisTypeId.getScope()) { - addPropertyDef(propDef, propertyDefs); + case DOCUMENT: + CmisTypeDocumentDefinitionType documentDefinitionType = new CmisTypeDocumentDefinitionType(); + setCmisTypeDefinitionProperties(documentDefinitionType, typeDefinition, includeProperties); + documentDefinitionType.setVersionable(typeDefinition.isVersionable()); + documentDefinitionType.setContentStreamAllowed(contentStreamAllowedEnumMapping.get(typeDefinition.getContentStreamAllowed())); + result = cmisObjectFactory.createDocumentType(documentDefinitionType); + break; + case FOLDER: + CmisTypeFolderDefinitionType folderDefinitionType = new CmisTypeFolderDefinitionType(); + setCmisTypeDefinitionProperties(folderDefinitionType, typeDefinition, includeProperties); + result = cmisObjectFactory.createFolderType(folderDefinitionType); + break; + case POLICY: + CmisTypePolicyDefinitionType policyDefinitionType = new CmisTypePolicyDefinitionType(); + setCmisTypeDefinitionProperties(policyDefinitionType, typeDefinition, includeProperties); + result = cmisObjectFactory.createPolicyType(policyDefinitionType); + break; + case RELATIONSHIP: + CmisTypeRelationshipDefinitionType relationshipDefinitionType = new CmisTypeRelationshipDefinitionType(); + setCmisTypeDefinitionProperties(relationshipDefinitionType, typeDefinition, includeProperties); + result = cmisObjectFactory.createRelationshipType(relationshipDefinitionType); + break; + case UNKNOWN: + throw new ObjectNotFoundException("Bab type"); } - return objectTypeDefinitionType; + return result; } public GetTypesResponse getTypes(GetTypes parameters) throws RuntimeException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException { - return null; + if (descriptorService.getServerDescriptor().getId().equals(parameters.getRepositoryId()) == false) + { + throw new InvalidArgumentException("Invalid repository id"); + } + + GetTypesResponse response = new GetTypesResponse(); + + Collection typeIds = parameters.getTypeId() == null ? cmisDictionaryService.getAllObjectTypeIds() : cmisDictionaryService.getChildTypeIds(cmisDictionaryService + .getCMISMapping().getCmisTypeId(parameters.getTypeId().getValue()), true); + + if (parameters.getMaxItems() != null) + { + response.setHasMoreItems(parameters.getMaxItems().getValue().intValue() < typeIds.size()); + } + + Cursor cursor = createCursor(typeIds.size(), parameters.getSkipCount() != null ? parameters.getSkipCount().getValue() : null, parameters.getMaxItems() != null ? parameters + .getMaxItems().getValue() : null); + + // skip + Iterator iterTypeIds = typeIds.iterator(); + for (int i = 0; i < cursor.getStartRow(); i++) + { + iterTypeIds.next(); + } + + boolean returnPropertyDefinitions = parameters.getReturnPropertyDefinitions() == null ? false : parameters.getReturnPropertyDefinitions().getValue(); + + List> types = response.getType(); + for (int i = cursor.getStartRow(); i <= cursor.getEndRow(); i++) + { + JAXBElement element = getCmisTypeDefinition(iterTypeIds.next().getTypeId(), returnPropertyDefinitions); + if (element != null) + { + types.add(element); + } + } + + return response; + } + + public GetTypeDefinitionResponse getTypeDefinition(GetTypeDefinition parameters) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, + OperationNotSupportedException, TypeNotFoundException, InvalidArgumentException, RuntimeException, ConstraintViolationException + { + if (descriptorService.getServerDescriptor().getId().equals(parameters.getRepositoryId()) == false) + { + throw new InvalidArgumentException("Invalid repository id"); + } + + GetTypeDefinitionResponse response = new GetTypeDefinitionResponse(); + response.setType(getCmisTypeDefinition(parameters.getTypeId(), true)); + return response; } } diff --git a/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java index 696a041534..d999ff8e54 100644 --- a/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java +++ b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java @@ -24,9 +24,6 @@ */ package org.alfresco.repo.cmis.ws; -import org.alfresco.repo.cmis.ws.BasicFault; -import org.alfresco.repo.cmis.ws.PermissionDeniedException; -import org.alfresco.repo.cmis.ws.RuntimeException; import org.alfresco.repo.security.permissions.AccessDeniedException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -47,9 +44,7 @@ public class DMServicePortThrowsAdvice implements ThrowsAdvice log.info(e); } - // TODO: error code - BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Access denied"); - throw new PermissionDeniedException("Access denied", basicFault, e); + throw new PermissionDeniedException("Access denied", e); } public void afterThrowing(java.lang.RuntimeException e) throws RuntimeException @@ -59,9 +54,7 @@ public class DMServicePortThrowsAdvice implements ThrowsAdvice log.error(e); } - // TODO: error code - BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Runtime error"); - throw new RuntimeException("Runtime error", basicFault, e); + throw new RuntimeException("Runtime error", e); } } diff --git a/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java b/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java deleted file mode 100644 index 947b3fd356..0000000000 --- a/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2005-2008 Alfresco Software Limited. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - * As a special exception to the terms and conditions of version 2.0 of - * the GPL, you may redistribute this Program in connection with Free/Libre - * and Open Source Software ("FLOSS") applications as described in Alfresco's - * FLOSS exception. You should have recieved a copy of the text describing - * the FLOSS exception, and it is also available here: - * http://www.alfresco.com/legal/licensing" - */ -package org.alfresco.repo.cmis.ws; - -import java.math.BigInteger; - -import org.alfresco.repo.cmis.ws.BasicFault; - -/** - * Utils for working with cmis exceptions - * - * @author Dmitry Lazurkin - * - */ -public class ExceptionUtils -{ - - /** - * Creates basic fault instance - * - * @param errorCode error code - * @param errorMessage error message - * @return basic fault instance - */ - public static BasicFault createBasicFault(BigInteger errorCode, String errorMessage) - { - BasicFault basicFault = new BasicFault(); - - basicFault.setErrorCode(errorCode); - basicFault.setErrorMessage(errorMessage); - - return basicFault; - } - -} diff --git a/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java b/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java index 929ffa9a86..1249a931e0 100644 --- a/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java +++ b/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java @@ -41,6 +41,13 @@ public class PropertyFilter private Set properties; + /** + * Constructor + */ + public PropertyFilter() + { + } + /** * Constructor * @@ -49,11 +56,16 @@ public class PropertyFilter */ public PropertyFilter(String filter) throws FilterNotValidException { - if (filter != null && filter.equals("") == false) + if (filter == null) + { + throw new FilterNotValidException(filter + " isn't valid"); + } + + if (filter.equals("") == false) { if (PROPERTY_FILTER_REGEX.matcher(filter).matches() == false) { - throw new FilterNotValidException(filter, ExceptionUtils.createBasicFault(null, "Filter isn't valid")); + throw new FilterNotValidException(filter + " isn't valid"); } if (filter.equals("*") == false) diff --git a/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java b/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java new file mode 100755 index 0000000000..7f246683a6 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/PropertyUtil.java @@ -0,0 +1,153 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; + +import org.alfresco.cmis.dictionary.CMISMapping; + +/** + * Class for accessing CMIS properties + * + * @author Dmitry Lazurkin + * + */ +public class PropertyUtil +{ + private static Map cmisToRepoPropertiesNamesMapping = new HashMap(); + private static Map repoToCmisPropertiesNamesMapping = new HashMap(); + + static + { + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_IS_IMMUTABLE, "IsImmutable"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_IS_LATEST_VERSION, "IsLatestVersion"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_IS_MAJOR_VERSION, "IsMajorVersion"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_IS_LATEST_MAJOR_VERSION, "IsLatestMajorVersion"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_IS_VERSION_SERIES_CHECKED_OUT, "IsVersionSeriesCheckedOut"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CREATION_DATE, "CreationDate"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_LAST_MODIFICATION_DATE, "LastModificationDate"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_OBJECT_ID, "ObjectId"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_VERSION_SERIES_ID, "VersionSeriesId"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_ID, "VersionSeriesCheckedOutId"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CONTENT_STREAM_LENGTH, "ContentStreamLength"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_NAME, "Name"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_OBJECT_TYPE_ID, "ObjectTypeId"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CREATED_BY, "CreatedBy"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_LAST_MODIFIED_BY, "LastModifiedBy"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CONTENT_STREAM_MIME_TYPE, "ContentStreamMimeType"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CONTENT_STREAM_FILENAME, "ContentStreamFilename"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_VERSION_LABEL, "VersionLabel"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CHECKIN_COMMENT, "checkinComment"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_CONTENT_STREAM_URI, "contentStreamURI"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_BY, "VersionSeriesCheckedOutBy"); + cmisToRepoPropertiesNamesMapping.put(CMISMapping.PROP_PARENT_ID, "ParentId"); + + for (Map.Entry entry : cmisToRepoPropertiesNamesMapping.entrySet()) + { + repoToCmisPropertiesNamesMapping.put(entry.getValue(), entry.getKey()); + } + } + + /** + * Get property name in response + * + * @param internalName internal property name + * @return property name in response + */ + public static String getCMISPropertyName(String internalName) + { + return cmisToRepoPropertiesNamesMapping.get(internalName); + } + + /** + * Get property name in repository + * + * @param cmisName internal property name + * @return property name in repository + */ + public static String getRepositoryPropertyName(String cmisName) + { + return repoToCmisPropertiesNamesMapping.get(cmisName); + } + + public static Serializable getProperty(CmisPropertiesType cmisProperties, String property) + { + String cmisPropertyName = getCMISPropertyName(property); + + for (CmisProperty cmisProperty : cmisProperties.getProperty()) + { + if (cmisProperty.getName().equals(cmisPropertyName)) + { + return getValue(cmisProperty); + } + } + + return null; + } + + public static Serializable getValue(CmisProperty cmisProperty) + { + Serializable value = null; + + if (cmisProperty instanceof CmisPropertyBoolean) + { + value = ((CmisPropertyBoolean) cmisProperty).isValue(); + } + else if (cmisProperty instanceof CmisPropertyDateTime) + { +// value = ((CmisPropertyDateTime) cmisProperty).getValue().; + } + else if (cmisProperty instanceof CmisPropertyDecimal) + { + value = ((CmisPropertyDecimal) cmisProperty).getValue().doubleValue(); + } + else if (cmisProperty instanceof CmisPropertyHtml) + { + } + else if (cmisProperty instanceof CmisPropertyId) + { + value = ((CmisPropertyId) cmisProperty).getValue(); + } + else if (cmisProperty instanceof CmisPropertyInteger) + { + value = ((CmisPropertyInteger) cmisProperty).getValue(); + } + else if (cmisProperty instanceof CmisPropertyString) + { + value = ((CmisPropertyString) cmisProperty).getValue(); + } + else if (cmisProperty instanceof CmisPropertyUri) + { + } + else if (cmisProperty instanceof CmisPropertyXml) + { + } + + return value; + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java index 920e3846d9..e7bbe3905c 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java @@ -57,7 +57,7 @@ public class BaseServicePortContentTest extends BaseServicePortTest { protected CheckOutCheckInService checkOutCheckInService; - private static final String IMPORT = "alfresco/import-for-test.acp"; + private static final String IMPORT = "alfresco/import-for-cmis-ws-test.acp"; protected static final String L0_FILE_0 = "L0-File-0"; protected static final String L0_FILE_1 = "L0-File-1"; diff --git a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java index 32fa700522..c9b4eab49c 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java @@ -36,6 +36,7 @@ import org.alfresco.service.cmr.dictionary.DictionaryService; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.security.AuthenticationService; +import org.alfresco.service.descriptor.DescriptorService; import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.QName; import org.alfresco.service.transaction.TransactionService; @@ -54,7 +55,7 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex protected NodeService nodeService; protected ServiceRegistry serviceRegistry; protected DictionaryService dictionaryService; - + protected DescriptorService descriptorService; protected CMISMapping cmisMapping; protected CMISService cmisService; @@ -64,6 +65,10 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex protected NodeRef rootNodeRef; + protected ObjectFactory cmisObjectFactory = new ObjectFactory(); + + protected String repositoryId; + @Override protected void onSetUp() throws Exception { @@ -75,6 +80,9 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex transactionService = serviceRegistry.getTransactionService(); nodeService = serviceRegistry.getNodeService(); dictionaryService = serviceRegistry.getDictionaryService(); + descriptorService = serviceRegistry.getDescriptorService(); + + repositoryId = descriptorService.getServerDescriptor().getId(); authenticationComponent = (AuthenticationComponent) applicationContext.getBean("authenticationComponent"); @@ -115,55 +123,7 @@ public class BaseServicePortTest extends AbstractDependencyInjectionSpringContex @Override protected String[] getConfigLocations() { - return new String[] { "classpath:alfresco/application-context.xml", "classpath:test-cmis-context.xml" }; - } - - protected String getPropertyIDValue(PropertiesType properties, String propertyName) - { - String result = null; - - for (PropertyIDType property : properties.getPropertyID()) - { - if (propertyName.equals(property.getName())) - { - result = property.getValue(); - break; - } - } - - return result; - } - - protected String getPropertyStringValue(PropertiesType properties, String propertyName) - { - String result = null; - - for (PropertyStringType property : properties.getPropertyString()) - { - if (propertyName.equals(property.getName())) - { - result = property.getValue(); - break; - } - } - - return result; - } - - protected boolean getPropertyBooleanValue(PropertiesType properties, String propertyName) - { - boolean result = false; - - for (PropertyBooleanType property : properties.getPropertyBoolean()) - { - if (propertyName.equals(property.getName())) - { - result = property.isValue(); - break; - } - } - - return result; + return new String[] { "classpath:alfresco/application-context.xml", "classpath:alfresco/test-cmis-context.xml" }; } } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java index 9d59f612d6..0a6593cf67 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java @@ -54,11 +54,13 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); + request.setRepositoryId(repositoryId); + request.setMaxItems(cmisObjectFactory.createGetChildrenMaxItems(BigInteger.valueOf(3))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.FOLDERS); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.FOLDERS)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF }; checkListExact(listing, 0, 3, expectedNodeRefs); } @@ -68,11 +70,12 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); + request.setRepositoryId(repositoryId); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.DOCUMENTS); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.DOCUMENTS)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkListExact(listing, 3, 0, expectedNodeRefs); } @@ -82,12 +85,13 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); - request.setSkipCount(BigInteger.valueOf(1)); + request.setRepositoryId(repositoryId); + request.setSkipCount(cmisObjectFactory.createGetChildrenSkipCount(BigInteger.valueOf(1))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkList(listing, 5, 3, 3, expectedNodeRefs); } @@ -97,12 +101,13 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); - request.setMaxItems(BigInteger.valueOf(3)); + request.setRepositoryId(repositoryId); + request.setMaxItems(cmisObjectFactory.createGetChildrenMaxItems(BigInteger.valueOf(3))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkList(listing, 3, 3, 3, expectedNodeRefs); } @@ -112,12 +117,13 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); - request.setMaxItems(BigInteger.valueOf(10)); + request.setRepositoryId(repositoryId); + request.setMaxItems(cmisObjectFactory.createGetChildrenMaxItems(BigInteger.valueOf(10))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkList(listing, 6, 3, 3, expectedNodeRefs); } @@ -127,12 +133,13 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); - request.setSkipCount(BigInteger.valueOf(10)); + request.setRepositoryId(repositoryId); + request.setSkipCount(cmisObjectFactory.createGetChildrenSkipCount(BigInteger.valueOf(10))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkList(listing, 0, 3, 3, expectedNodeRefs); } @@ -142,13 +149,14 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); - request.setSkipCount(BigInteger.valueOf(5)); - request.setMaxItems(BigInteger.valueOf(4)); + request.setRepositoryId(repositoryId); + request.setSkipCount(cmisObjectFactory.createGetChildrenSkipCount(BigInteger.valueOf(5))); + request.setMaxItems(cmisObjectFactory.createGetChildrenMaxItems(BigInteger.valueOf(4))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkList(listing, 1, 3, 3, expectedNodeRefs); } @@ -158,12 +166,13 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); - request.setMaxItems(BigInteger.valueOf(0)); + request.setRepositoryId(repositoryId); + request.setMaxItems(cmisObjectFactory.createGetChildrenMaxItems(BigInteger.valueOf(0))); request.setFolderId(rootNodeRef.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); GetChildrenResponse response = navigationServicePort.getChildren(request); - List listing = response.getChildren().getChild(); + List listing = response.getObject(); NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; checkListExact(listing, 3, 3, expectedNodeRefs); } @@ -173,8 +182,9 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetChildren request = new GetChildren(); + request.setRepositoryId(repositoryId); request.setFolderId(L0_FILE_0_NODEREF.toString()); - request.setType(TypesOfFileableObjectsEnum.ANY); + request.setType(cmisObjectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); try { @@ -188,7 +198,7 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest fail("Expects exception"); } - private void checkListExact(List objects, int expectedFileCount, int expectedFolderCount, NodeRef[] expectedNodeRefs) + private void checkListExact(List objects, int expectedFileCount, int expectedFolderCount, NodeRef[] expectedNodeRefs) { int fileCount = 0; int folderCount = 0; @@ -199,9 +209,9 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest check.add(nodeRef); } - for (FolderTreeType object : objects) + for (CmisObjectType object : objects) { - NodeRef nodeRef = new NodeRef(getPropertyIDValue(object.getProperties(), CMISMapping.PROP_OBJECT_ID)); + NodeRef nodeRef = new NodeRef((String) PropertyUtil.getProperty(object.getProperties(), CMISMapping.PROP_OBJECT_ID)); if (cmisMapping.isValidCmisFolder(cmisMapping.getCmisType(nodeService.getType(nodeRef)))) { @@ -220,7 +230,7 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest assertEquals("Incorrect number of folders", expectedFolderCount, folderCount); } - private void checkList(List objects, int expectedCount, int expectedMaxFileCount, int expectedMaxFolderCount, NodeRef[] expectedNodeRefs) + private void checkList(List objects, int expectedCount, int expectedMaxFileCount, int expectedMaxFolderCount, NodeRef[] expectedNodeRefs) { int fileCount = 0; int folderCount = 0; @@ -231,9 +241,9 @@ public class DMNavigationServicePortTest extends BaseServicePortContentTest check.add(nodeRef); } - for (FolderTreeType object : objects) + for (CmisObjectType object : objects) { - NodeRef nodeRef = new NodeRef(getPropertyIDValue(object.getProperties(), CMISMapping.PROP_OBJECT_ID)); + NodeRef nodeRef = new NodeRef((String) PropertyUtil.getProperty(object.getProperties(), CMISMapping.PROP_OBJECT_ID)); if (cmisMapping.isValidCmisFolder(cmisMapping.getCmisType(nodeService.getType(nodeRef)))) { diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java index 6d89df6385..b17612007e 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java @@ -24,6 +24,8 @@ */ package org.alfresco.repo.cmis.ws; +import java.util.List; + import org.alfresco.cmis.dictionary.CMISMapping; import org.alfresco.service.cmr.repository.NodeRef; @@ -35,12 +37,14 @@ import org.alfresco.service.cmr.repository.NodeRef; public class DMObjectServicePortTest extends BaseServicePortContentTest { private ObjectServicePort objectServicePort; + private RepositoryServicePort repositoryServicePort; @Override protected void onSetUp() throws Exception { super.onSetUp(); + repositoryServicePort = (RepositoryServicePort) applicationContext.getBean("dmRepositoryService"); objectServicePort = (ObjectServicePort) applicationContext.getBean("dmObjectService"); } @@ -49,12 +53,13 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetProperties request = new GetProperties(); + request.setRepositoryId(repositoryId); request.setObjectId(L0_FOLDER_0_NODEREF.toString()); GetPropertiesResponse response = objectServicePort.getProperties(request); assertNotNull(response); - assertEquals(rootNodeRef.toString(), getPropertyIDValue(response.getObject().getProperties(), CMISMapping.PROP_PARENT_ID)); - assertEquals(L0_FOLDER_0, getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_NAME)); + assertEquals(rootNodeRef.toString(), PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_PARENT_ID)); + assertEquals(L0_FOLDER_0, PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_NAME)); } public void testGetExistentDocumentPropertiesThis() throws Exception @@ -62,12 +67,13 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetProperties request = new GetProperties(); + request.setRepositoryId(repositoryId); request.setObjectId(L1_FILE_VERSION_1_0_NODEREF.toString()); GetPropertiesResponse response = objectServicePort.getProperties(request); assertNotNull(response); - assertEquals(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT), "1.0"); - assertTrue(getPropertyBooleanValue(response.getObject().getProperties(), CMISMapping.PROP_IS_MAJOR_VERSION)); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT), "1.0"); + assertTrue((Boolean) PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_IS_MAJOR_VERSION)); } public void testGetExistentDocumentPropertiesLatestMajor() throws Exception @@ -75,13 +81,14 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetProperties request = new GetProperties(); - request.setReturnVersion(VersionEnum.LATEST_MAJOR); + request.setRepositoryId(repositoryId); + request.setReturnVersion(cmisObjectFactory.createGetPropertiesReturnVersion(EnumReturnVersion.LATESTMAJOR)); request.setObjectId(L1_FILE_VERSION_1_0_NODEREF.toString()); GetPropertiesResponse response = objectServicePort.getProperties(request); assertNotNull(response); - assertEquals(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT), "2.0"); - assertTrue(getPropertyBooleanValue(response.getObject().getProperties(), CMISMapping.PROP_IS_MAJOR_VERSION)); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT), "2.0"); + assertTrue((Boolean) PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_IS_MAJOR_VERSION)); } public void testGetExistentDocumentPropertiesLatest() throws Exception @@ -89,13 +96,14 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetProperties request = new GetProperties(); - request.setReturnVersion(VersionEnum.LATEST); + request.setRepositoryId(repositoryId); + request.setReturnVersion(cmisObjectFactory.createGetPropertiesReturnVersion(EnumReturnVersion.LATEST)); request.setObjectId(L1_FILE_VERSION_2_0_NODEREF.toString()); GetPropertiesResponse response = objectServicePort.getProperties(request); assertNotNull(response); - assertEquals(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT), "2.1"); - assertFalse(getPropertyBooleanValue(response.getObject().getProperties(), CMISMapping.PROP_IS_MAJOR_VERSION)); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT), "2.1"); + assertFalse((Boolean) PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_IS_MAJOR_VERSION)); } public void testGetNonExistentObjectProperties() throws Exception @@ -103,6 +111,7 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetProperties request = new GetProperties(); + request.setRepositoryId(repositoryId); request.setObjectId(L0_NONEXISTENT_NODEREF.toString()); try { @@ -121,6 +130,7 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); GetProperties request = new GetProperties(); + request.setRepositoryId(repositoryId); request.setObjectId("invalid OID"); try @@ -141,45 +151,45 @@ public class DMObjectServicePortTest extends BaseServicePortContentTest NodeRef workingCopyNodeRef = checkOutCheckInService.checkout(L0_FILE_0_NODEREF); GetProperties request = new GetProperties(); + request.setRepositoryId(repositoryId); request.setObjectId(L0_FILE_0_NODEREF.toString()); GetPropertiesResponse response = objectServicePort.getProperties(request); assertNotNull(response); - assertNull(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT)); - assertTrue(getPropertyBooleanValue(response.getObject().getProperties(), CMISMapping.PROP_IS_VERSION_SERIES_CHECKED_OUT)); - assertEquals(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_BY), authenticationComponent.getSystemUserName()); - assertEquals(getPropertyIDValue(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_ID), workingCopyNodeRef.toString()); + assertNull(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT)); + assertTrue((Boolean) PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_IS_VERSION_SERIES_CHECKED_OUT)); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_BY), authenticationComponent.getSystemUserName()); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_ID), workingCopyNodeRef.toString()); request = new GetProperties(); + request.setRepositoryId(repositoryId); request.setObjectId(workingCopyNodeRef.toString()); response = objectServicePort.getProperties(request); assertNotNull(response); - assertNull(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT)); - assertTrue(getPropertyBooleanValue(response.getObject().getProperties(), CMISMapping.PROP_IS_VERSION_SERIES_CHECKED_OUT)); - assertEquals(getPropertyStringValue(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_BY), authenticationComponent.getSystemUserName()); - assertEquals(getPropertyIDValue(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_ID), workingCopyNodeRef.toString()); + assertNull(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_CHECKIN_COMMENT)); + assertTrue((Boolean) PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_IS_VERSION_SERIES_CHECKED_OUT)); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_BY), authenticationComponent.getSystemUserName()); + assertEquals(PropertyUtil.getProperty(response.getObject().getProperties(), CMISMapping.PROP_VERSION_SERIES_CHECKED_OUT_ID), workingCopyNodeRef.toString()); } public void testGetContentStream() throws Exception { authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + List repositories = repositoryServicePort.getRepositories(); String documentId = L0_FILE_0_NODEREF.toString(); - GetContentStream contStream = new GetContentStream(); - contStream.setDocumentId(documentId); - GetContentStreamResponse result = objectServicePort.getContentStream(contStream); + CmisContentStreamType result = objectServicePort.getContentStream(repositories.get(0).getRepositoryID(), documentId); assertNotNull(result); - if (result.getContentStream().length.intValue() != 9) + if (result.getLength().intValue() != 9) { fail(); } try { - contStream.setDocumentId(documentId + "s"); - result = objectServicePort.getContentStream(contStream); + result = objectServicePort.getContentStream(repositories.get(0).getRepositoryID(), documentId + "s"); } catch (ObjectNotFoundException e) { 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 291f9a35c8..a3e50298ef 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java @@ -1,3 +1,27 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ package org.alfresco.repo.cmis.ws; import java.net.MalformedURLException; @@ -11,7 +35,18 @@ public class DMObjectServiceTest extends AbstractServiceTest public final static String SERVICE_WSDL_LOCATION = "http://localhost:8080/alfresco/cmis/ObjectService?wsdl"; public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); + + + private RepositoryServicePort repositoryServicePort; + @Override + protected void setUp() throws Exception + { + super.setUp(); + + repositoryServicePort = (RepositoryServicePort) fContext.getBean("dmRepositoryService"); + } + protected Object getServicePort() { URL serviceWsdlURL; @@ -24,14 +59,17 @@ public class DMObjectServiceTest extends AbstractServiceTest throw new java.lang.RuntimeException("Cannot get service Wsdl URL", e); } Service service = Service.create(serviceWsdlURL, SERVICE_NAME); + return service.getPort(ObjectServicePort.class); } + public void testGetDocumentProperties() throws Exception { GetProperties request = new GetProperties(); request.setObjectId(ALFRESCO_TUTORIAL_NODE_REF.toString()); - + request.setRepositoryId(repositoryServicePort.getRepositories().get(0).getRepositoryID()); + GetPropertiesResponse response = ((ObjectServicePort) servicePort).getProperties(request); assertNotNull(response); } @@ -41,7 +79,7 @@ public class DMObjectServiceTest extends AbstractServiceTest GetProperties request = new GetProperties(); request.setObjectId("invalid OID"); - + request.setRepositoryId("invalid OID"); try { ((ObjectServicePort) servicePort).getProperties(request); @@ -59,11 +97,14 @@ public class DMObjectServiceTest extends AbstractServiceTest public void testGetContentStream() throws Exception { String documentId = ALFRESCO_TUTORIAL_NODE_REF.toString(); + String repoId = repositoryServicePort.getRepositories().get(0).getRepositoryID(); GetContentStream contStream = new GetContentStream(); contStream.setDocumentId(documentId); - GetContentStreamResponse result = ((ObjectServicePort) servicePort).getContentStream(contStream); - if (result.getContentStream().length.intValue() == 0) + contStream.setRepositoryId(repoId); + + CmisContentStreamType result = ((ObjectServicePort) servicePort).getContentStream(repoId, documentId); + if (result.length.intValue() == 0) { fail(); } @@ -71,7 +112,9 @@ public class DMObjectServiceTest extends AbstractServiceTest try { contStream.setDocumentId(documentId + "s"); - {result = ((ObjectServicePort) servicePort).getContentStream(contStream);} + { + result = ((ObjectServicePort) servicePort).getContentStream(repoId, documentId); + } } catch (ObjectNotFoundException e) { diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java index 89f7decac4..13e9dbad8c 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java @@ -50,7 +50,7 @@ public class DMRepositoryServicePortTest extends BaseServicePortTest { authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); - List repositories = repositoryServicePort.getRepositories(); + List repositories = repositoryServicePort.getRepositories(); assertTrue(repositories.size() == 1); assertFalse(repositories.get(0).getRepositoryID() == null); assertFalse(repositories.get(0).getRepositoryName() == null); @@ -58,21 +58,16 @@ public class DMRepositoryServicePortTest extends BaseServicePortTest public void testGetRepositoryInfo() throws Exception { - List repositories = repositoryServicePort.getRepositories(); - RepositoryInfoType repositoryInfo = repositoryServicePort.getRepositoryInfo(repositories.get(0).getRepositoryID()); + List repositories = repositoryServicePort.getRepositories(); + GetRepositoryInfo response = new GetRepositoryInfo(); + response.setRepositoryId(repositories.get(0).getRepositoryID()); + CmisRepositoryInfoType repositoryInfo = repositoryServicePort.getRepositoryInfo(response); assertTrue(repositoryInfo.getRepositoryId().equals(repositories.get(0).getRepositoryID())); assertTrue(repositoryInfo.getRepositoryName().equals(repositories.get(0).getRepositoryName())); assertTrue("Alfresco".equals(repositoryInfo.getVendorName())); - CapabilitiesType capabilities = repositoryInfo.getCapabilities(); - assertTrue(capabilities.isCapabilityMultifiling() && capabilities.isCapabilityPWCUpdatable()); + CmisRepositoryCapabilitiesType capabilities = repositoryInfo.getCapabilities(); + assertTrue(capabilities.isCapabilityMultifiling() && capabilities.isCapabilityPWCUpdateable()); assertFalse(capabilities.isCapabilityUnfiling() && capabilities.isCapabilityVersionSpecificFiling()); } - - public void testGetTypeDefinition() throws Exception - { - List repositories = repositoryServicePort.getRepositories(); - repositoryServicePort.getTypeDefinition(repositories.get(0).getRepositoryID(), "DOCUMENT_OBJECT_TYPE"); - } - } 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 05b3461ec6..032f2c0b34 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java @@ -61,7 +61,7 @@ public class DMRepositoryServiceTest extends AbstractServiceTest { try { - List repositories = ((RepositoryServicePort) servicePort).getRepositories(); + List repositories = ((RepositoryServicePort) servicePort).getRepositories(); assertTrue(repositories.size() == 1); assertFalse(repositories.get(0).getRepositoryID() == null); assertFalse(repositories.get(0).getRepositoryName() == null); @@ -78,15 +78,17 @@ public class DMRepositoryServiceTest extends AbstractServiceTest { try { - List repositories = ((RepositoryServicePort) servicePort).getRepositories(); - RepositoryInfoType repositoryInfo = ((RepositoryServicePort) servicePort).getRepositoryInfo(repositories.get(0).getRepositoryID()); + List repositories = ((RepositoryServicePort) servicePort).getRepositories(); + GetRepositoryInfo parameters = new GetRepositoryInfo(); + parameters.setRepositoryId(repositories.get(0).getRepositoryID()); + CmisRepositoryInfoType cmisRepositoryInfoType = ((RepositoryServicePort) servicePort).getRepositoryInfo(parameters); - assertTrue(repositoryInfo.getRepositoryId().equals(repositories.get(0).getRepositoryID())); - assertTrue(repositoryInfo.getRepositoryName().equals(repositories.get(0).getRepositoryName())); - assertTrue("Alfresco".equals(repositoryInfo.getVendorName())); - assertTrue(repositoryInfo.getVendorName().indexOf("Alfresco Repository (") > -1 ); - CapabilitiesType capabilities = repositoryInfo.getCapabilities(); - assertTrue(capabilities.isCapabilityMultifiling() && capabilities.isCapabilityPWCUpdatable()); + assertTrue(cmisRepositoryInfoType.getRepositoryId().equals(repositories.get(0).getRepositoryID())); + assertTrue(cmisRepositoryInfoType.getRepositoryName().equals(repositories.get(0).getRepositoryName())); + assertTrue("Alfresco".equals(cmisRepositoryInfoType.getVendorName())); + assertTrue(cmisRepositoryInfoType.getVendorName().indexOf("Alfresco Repository (") > -1 ); + CmisRepositoryCapabilitiesType capabilities = cmisRepositoryInfoType.getCapabilities(); + assertTrue(capabilities.isCapabilityMultifiling() && capabilities.isCapabilityPWCUpdateable()); assertFalse(capabilities.isCapabilityUnfiling() && capabilities.isCapabilityVersionSpecificFiling()); } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/example/ExecutableServicesHelper.java b/source/test/java/org/alfresco/repo/cmis/ws/example/ExecutableServicesHelper.java index 1be2e623a7..bacf513851 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/example/ExecutableServicesHelper.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/example/ExecutableServicesHelper.java @@ -22,9 +22,10 @@ * the FLOSS exception, and it is also available here: * http://www.alfresco.com/legal/licensing" */ -package org.alfresco.repo.cmis.ws.example; +package org.alfresco.cmis.ws.example; import java.io.IOException; +import java.math.BigInteger; import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; @@ -37,14 +38,21 @@ import javax.security.auth.callback.UnsupportedCallbackException; import javax.xml.namespace.QName; import javax.xml.ws.Service; -import org.alfresco.repo.cmis.ws.FolderTreeType; +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.RepositoryInfoType; +import org.alfresco.repo.cmis.ws.ObjectFactory; import org.alfresco.repo.cmis.ws.RepositoryServicePort; -import org.alfresco.repo.cmis.ws.RepositoryType; -import org.alfresco.repo.cmis.ws.TypesOfFileableObjectsEnum; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor; import org.apache.cxf.endpoint.Client; import org.apache.cxf.frontend.ClientProxy; @@ -66,6 +74,8 @@ public class ExecutableServicesHelper private static final String NAVIGATION_SERVER_URL_POSTFIX = "/alfresco/cmis/NavigationService?wsdl"; private static final String REPOSITORY_SERVER_URL_POSTFIX = "/alfresco/cmis/RepositoryService?wsdl"; + private static final Log LOGGER = LogFactory.getLog(ExecutableServicesHelper.class); + private String username; private String password; private Service navigationServicesFactory; @@ -126,29 +136,22 @@ public class ExecutableServicesHelper * entity types. * * @param servicesPort - NavigationServicePort configured with WSS4J Client instance - * @return List - list of all children elements of Company Home folder + * @return List< DocumentOrFolderObjectType> - list of all children elements of Company Home folder * @throws Exception This exception throws when any CMIS Services operations was failed */ - public List receiveSpaceContent(NavigationServicePort servicesPort) throws Exception + public List receiveSpaceContent(NavigationServicePort servicesPort) throws Exception { GetChildrenResponse response; - try - { - response = servicesPort.getChildren(configureGetChildrenServiceQuery()); + response = servicesPort.getChildren(configureGetChildrenServiceQuery()); - if ((response != null) && (response.getChildren().getChild() != null)) - { - return response.getChildren().getChild(); - } - else - { - return null; - } - } - catch (Exception e) + if ((response != null) && (response.getObject() != null)) { - throw new Exception("Can't receive content of Company Home caused: " + e.getMessage()); + return response.getObject(); + } + else + { + return null; } } @@ -161,23 +164,10 @@ public class ExecutableServicesHelper */ public String receiveCompanyHomeObjectId(RepositoryServicePort servicesPort) throws Exception { - try - { - List repositories = servicesPort.getRepositories(); - if (repositories.isEmpty()) - { - throw new RuntimeException("List of repositories is empty"); - } - else - { - RepositoryInfoType repositoryInfo = servicesPort.getRepositoryInfo(repositories.get(0).getRepositoryID()); - return repositoryInfo.getRootFolderId(); - } - } - catch (Exception e) - { - throw new Exception("Can't receive Repository info caused: " + e.getMessage()); - } + GetRepositoryInfo parameteers = new GetRepositoryInfo(); + parameteers.setRepositoryId(servicesPort.getRepositories().get(0).getRepositoryID()); + + return servicesPort.getRepositoryInfo(parameteers).getRootFolderId(); } /** @@ -196,10 +186,16 @@ public class ExecutableServicesHelper private GetChildren configureGetChildrenServiceQuery() throws Exception { - GetChildren requestParameters = new GetChildren(); - requestParameters.setFilter("*"); - requestParameters.setFolderId(receiveCompanyHomeObjectId(receiveAuthorizedRepositoryServicePort())); - requestParameters.setType(TypesOfFileableObjectsEnum.ANY); + ObjectFactory objectFactory = new ObjectFactory(); + + RepositoryServicePort authorizedRepositoryServicePort = receiveAuthorizedRepositoryServicePort(); + + GetChildren requestParameters = objectFactory.createGetChildren(); + requestParameters.setRepositoryId(authorizedRepositoryServicePort.getRepositories().get(0).getRepositoryID()); + requestParameters.setFilter(objectFactory.createGetChildrenFilter("*")); + requestParameters.setMaxItems(objectFactory.createGetChildrenMaxItems(BigInteger.valueOf(Long.MAX_VALUE))); + requestParameters.setFolderId(receiveCompanyHomeObjectId(authorizedRepositoryServicePort)); + requestParameters.setType(objectFactory.createGetChildrenType(EnumTypesOfFileableObjects.ANY)); return requestParameters; } diff --git a/source/test/java/org/alfresco/repo/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java b/source/test/java/org/alfresco/repo/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java index ca5db3c330..bacc9a9f32 100644 --- a/source/test/java/org/alfresco/repo/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java +++ b/source/test/java/org/alfresco/repo/cmis/ws/example/SimpleExecutableCmisServicesUtilizer.java @@ -22,13 +22,14 @@ * the FLOSS exception, and it is also available here: * http://www.alfresco.com/legal/licensing" */ -package org.alfresco.repo.cmis.ws.example; +package org.alfresco.cmis.ws.example; import java.util.List; -import org.alfresco.repo.cmis.ws.FolderTreeType; -import org.alfresco.repo.cmis.ws.PropertiesType; -import org.alfresco.repo.cmis.ws.PropertyStringType; +import org.alfresco.repo.cmis.ws.CmisObjectType; +import org.alfresco.repo.cmis.ws.CmisPropertiesType; +import org.alfresco.repo.cmis.ws.CmisProperty; +import org.alfresco.repo.cmis.ws.CmisPropertyString; /** * This class executes simple processing for prompting server address and user name and password for authentication this user on specified server. After successful connection this @@ -47,8 +48,6 @@ import org.alfresco.repo.cmis.ws.PropertyStringType; */ public class SimpleExecutableCmisServicesUtilizer { - private static final String FOLDER_IDENTIFICATOR_SAMPLE_STRING = "folder"; - /** * Executable entry point - represents main life cycle * @@ -64,7 +63,7 @@ public class SimpleExecutableCmisServicesUtilizer if (args.length != 3) { System.out.println("Usage: cmis-test.bat server_url username password"); - System.out.println("Example : cmis-test.bat http://localhost:8080/ admin admin"); + System.out.println("Example : cmis-test.bat http://localhost:8080 admin admin"); return; } else @@ -86,7 +85,7 @@ public class SimpleExecutableCmisServicesUtilizer return; } - List response; + List response; try { @@ -95,37 +94,30 @@ public class SimpleExecutableCmisServicesUtilizer catch (Exception e) { System.out.println("Can't receive content of Company Home caused: " + e.getMessage()); + e.printStackTrace(); return; } System.out.println("Outing Company Home contents:"); - for (FolderTreeType item : response) + for (CmisObjectType item : response) { - if (getPropertyStringValue(item.getProperties(), "baseType").contains(FOLDER_IDENTIFICATOR_SAMPLE_STRING)) - { - System.out.println("[" + getPropertyStringValue(item.getProperties(), "name") + "]"); - } - else - { - System.out.println(getPropertyStringValue(item.getProperties(), "name")); - } + boolean thisIsFolder = ((CmisPropertyString) getCmisProperty(item.getProperties(), "BaseType")).getValue().contains("folder"); + String itemName = ((CmisPropertyString) getCmisProperty(item.getProperties(), "Name")).getValue(); + + System.out.println(((thisIsFolder) ? ("[") : ("")) + itemName + ((thisIsFolder) ? ("]") : (""))); } } - private static String getPropertyStringValue(PropertiesType properties, String propertyName) + private static CmisProperty getCmisProperty(CmisPropertiesType properties, String cmisPropertyName) { - String result = null; - - for (PropertyStringType property : properties.getPropertyString()) + for (CmisProperty cmisProperty : properties.getProperty()) { - if (propertyName.equals(property.getName())) + if (cmisProperty.getName().equalsIgnoreCase(cmisPropertyName)) { - result = property.getValue(); - break; + return cmisProperty; } } - return result; + return null; } - } diff --git a/source/wsdl/CMIS.xsd b/source/wsdl/CMIS.xsd new file mode 100755 index 0000000000..824ba10b55 --- /dev/null +++ b/source/wsdl/CMIS.xsd @@ -0,0 +1,1077 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/wsdl/DiscoveryService.wsdl b/source/wsdl/DiscoveryService.wsdl index d1fc2cf1bd..142b465fd3 100755 --- a/source/wsdl/DiscoveryService.wsdl +++ b/source/wsdl/DiscoveryService.wsdl @@ -1,48 +1,54 @@ - - + + - + - - + + - + - + - + - + - + - + - + - - - - - - - - + + + + + + + + - + @@ -73,7 +79,7 @@ - + diff --git a/source/wsdl/MultiFilingService.wsdl b/source/wsdl/MultiFilingService.wsdl index 13f5d1136c..daab440c11 100755 --- a/source/wsdl/MultiFilingService.wsdl +++ b/source/wsdl/MultiFilingService.wsdl @@ -1,5 +1,10 @@ - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + @@ -150,7 +155,7 @@ - + diff --git a/source/wsdl/NavigationService.wsdl b/source/wsdl/NavigationService.wsdl index 3ee3fabc69..55ef8535ff 100644 --- a/source/wsdl/NavigationService.wsdl +++ b/source/wsdl/NavigationService.wsdl @@ -1,5 +1,12 @@ - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + @@ -319,7 +326,7 @@ - + diff --git a/source/wsdl/ObjectService.wsdl b/source/wsdl/ObjectService.wsdl index 3c19b47086..09a20da3f0 100644 --- a/source/wsdl/ObjectService.wsdl +++ b/source/wsdl/ObjectService.wsdl @@ -1,5 +1,10 @@ - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - + @@ -736,7 +741,7 @@ - + diff --git a/source/wsdl/PolicyService.wsdl b/source/wsdl/PolicyService.wsdl index 76d3b02326..68e23f5e3b 100755 --- a/source/wsdl/PolicyService.wsdl +++ b/source/wsdl/PolicyService.wsdl @@ -1,5 +1,11 @@ - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - + @@ -186,7 +192,7 @@ - + diff --git a/source/wsdl/RelationshipService.wsdl b/source/wsdl/RelationshipService.wsdl index ca9d6300e4..6f7fb8385f 100755 --- a/source/wsdl/RelationshipService.wsdl +++ b/source/wsdl/RelationshipService.wsdl @@ -1,5 +1,11 @@ - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - + + + + + + + + + + + - + @@ -99,7 +105,7 @@ - + diff --git a/source/wsdl/RepositoryService.wsdl b/source/wsdl/RepositoryService.wsdl index 270fb2c657..aded669bb8 100644 --- a/source/wsdl/RepositoryService.wsdl +++ b/source/wsdl/RepositoryService.wsdl @@ -1,5 +1,11 @@ - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - - - - - - - + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - + @@ -228,7 +234,7 @@ - + diff --git a/source/wsdl/VersioningService.wsdl b/source/wsdl/VersioningService.wsdl index 15e22fff7c..50771c6a7d 100755 --- a/source/wsdl/VersioningService.wsdl +++ b/source/wsdl/VersioningService.wsdl @@ -1,5 +1,11 @@ - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + @@ -337,7 +343,7 @@ - + diff --git a/source/wsdl/cmisMessageTypes.xsd b/source/wsdl/cmisMessageTypes.xsd index 74af093959..872870bdd0 100644 --- a/source/wsdl/cmisMessageTypes.xsd +++ b/source/wsdl/cmisMessageTypes.xsd @@ -1,809 +1,1049 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/wsdl/cmisObjectTypes.xsd b/source/wsdl/cmisObjectTypes.xsd deleted file mode 100644 index 28b9d0504c..0000000000 --- a/source/wsdl/cmisObjectTypes.xsd +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/source/wsdl/xml.xsd b/source/wsdl/xml.xsd new file mode 100755 index 0000000000..6ec0d476f4 --- /dev/null +++ b/source/wsdl/xml.xsd @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + See http://www.w3.org/TR/xmlbase/ for + information about this attribute. + + + + + + See http://www.w3.org/TR/xml-id/ for + information about this attribute. + + + + + + + + + + + \ No newline at end of file