mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged CMIS063 to HEAD
16930: MOB-1330: Upgrade Web Services Repository to 0.7 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,13 +23,14 @@ import javax.xml.bind.annotation.XmlType;
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisPropertiesType"/>
|
||||
* <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertiesType"/>
|
||||
* <element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/messaging/200901}cmisContentStreamType" minOccurs="0"/>
|
||||
* <element name="versioningState" type="{http://docs.oasis-open.org/ns/cmis/core/200901}enumVersioningState" minOccurs="0"/>
|
||||
* <element name="applyPolicies" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* <element name="addACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAccessControlListType" minOccurs="0"/>
|
||||
* <element name="removeACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisAccessControlListType" minOccurs="0"/>
|
||||
* <element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/messaging/200908/}cmisContentStreamType" minOccurs="0"/>
|
||||
* <element name="versioningState" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}enumVersioningState" minOccurs="0"/>
|
||||
* <element name="policies" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* <element name="addACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlListType" minOccurs="0"/>
|
||||
* <element name="removeACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlListType" minOccurs="0"/>
|
||||
* <element name="extension" type="{http://docs.oasis-open.org/ns/cmis/messaging/200908/}cmisExtensionType" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
@@ -45,9 +46,10 @@ import javax.xml.bind.annotation.XmlType;
|
||||
"folderId",
|
||||
"contentStream",
|
||||
"versioningState",
|
||||
"applyPolicies",
|
||||
"policies",
|
||||
"addACEs",
|
||||
"removeACEs"
|
||||
"removeACEs",
|
||||
"extension"
|
||||
})
|
||||
@XmlRootElement(name = "createDocument")
|
||||
public class CreateDocument {
|
||||
@@ -56,17 +58,20 @@ public class CreateDocument {
|
||||
protected String repositoryId;
|
||||
@XmlElement(required = true)
|
||||
protected CmisPropertiesType properties;
|
||||
protected String folderId;
|
||||
@XmlElementRef(name = "contentStream", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class)
|
||||
@XmlElementRef(name = "folderId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
|
||||
protected JAXBElement<String> folderId;
|
||||
@XmlElementRef(name = "contentStream", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
|
||||
protected JAXBElement<CmisContentStreamType> contentStream;
|
||||
@XmlElementRef(name = "versioningState", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class)
|
||||
@XmlElementRef(name = "versioningState", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
|
||||
protected JAXBElement<EnumVersioningState> versioningState;
|
||||
@XmlElement(nillable = true)
|
||||
protected List<String> applyPolicies;
|
||||
@XmlElementRef(name = "addACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class)
|
||||
protected List<String> policies;
|
||||
@XmlElementRef(name = "addACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
|
||||
protected JAXBElement<CmisAccessControlListType> addACEs;
|
||||
@XmlElementRef(name = "removeACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200901", type = JAXBElement.class)
|
||||
@XmlElementRef(name = "removeACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
|
||||
protected JAXBElement<CmisAccessControlListType> removeACEs;
|
||||
@XmlElementRef(name = "extension", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
|
||||
protected JAXBElement<CmisExtensionType> extension;
|
||||
|
||||
/**
|
||||
* Gets the value of the repositoryId property.
|
||||
@@ -121,10 +126,10 @@ public class CreateDocument {
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
* {@link JAXBElement }{@code <}{@link String }{@code >}
|
||||
*
|
||||
*/
|
||||
public String getFolderId() {
|
||||
public JAXBElement<String> getFolderId() {
|
||||
return folderId;
|
||||
}
|
||||
|
||||
@@ -133,11 +138,11 @@ public class CreateDocument {
|
||||
*
|
||||
* @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<String> value) {
|
||||
this.folderId = ((JAXBElement<String> ) value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -189,18 +194,18 @@ public class CreateDocument {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the applyPolicies property.
|
||||
* Gets the value of the policies property.
|
||||
*
|
||||
* <p>
|
||||
* 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 <CODE>set</CODE> method for the applyPolicies property.
|
||||
* This is why there is not a <CODE>set</CODE> method for the policies property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getApplyPolicies().add(newItem);
|
||||
* getPolicies().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
@@ -210,11 +215,11 @@ public class CreateDocument {
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<String> getApplyPolicies() {
|
||||
if (applyPolicies == null) {
|
||||
applyPolicies = new ArrayList<String>();
|
||||
public List<String> getPolicies() {
|
||||
if (policies == null) {
|
||||
policies = new ArrayList<String>();
|
||||
}
|
||||
return this.applyPolicies;
|
||||
return this.policies;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -265,4 +270,28 @@ public class CreateDocument {
|
||||
this.removeACEs = ((JAXBElement<CmisAccessControlListType> ) value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the extension property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link JAXBElement }{@code <}{@link CmisExtensionType }{@code >}
|
||||
*
|
||||
*/
|
||||
public JAXBElement<CmisExtensionType> getExtension() {
|
||||
return extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the extension property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link JAXBElement }{@code <}{@link CmisExtensionType }{@code >}
|
||||
*
|
||||
*/
|
||||
public void setExtension(JAXBElement<CmisExtensionType> value) {
|
||||
this.extension = ((JAXBElement<CmisExtensionType> ) value);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user