mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
- In CMIS methods that allow setting of node properties, the <cmis:properties> element may carry an <alf:setAspects> extension that lists - aspectsToRemove - aspectsToAdd - properties (properties to set belonging to aspects rather than the node type) - In CMIS methods that allow retrieval of node properties, the <cmis:properties> carries an <alf:getAspects> extension that lists - appliedAspects - properties (properties belonging to aspects rather than the node type) - Added extension types to Alfresco-Core.xsd and referenced in extended WSDL - Plumbed in to Web Service and REST APIs git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19037 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
133 lines
3.8 KiB
Java
133 lines
3.8 KiB
Java
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>Java class for anonymous complex type.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
*
|
|
* <pre>
|
|
* <complexType>
|
|
* <complexContent>
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
|
* <sequence>
|
|
* <element name="aspectsToAdd" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
|
* <element name="aspectsToRemove" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
|
* <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertiesType" minOccurs="0"/>
|
|
* </sequence>
|
|
* </restriction>
|
|
* </complexContent>
|
|
* </complexType>
|
|
* </pre>
|
|
*
|
|
*
|
|
*/
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
@XmlType(name = "", propOrder = {
|
|
"aspectsToAdd",
|
|
"aspectsToRemove",
|
|
"properties"
|
|
})
|
|
@XmlRootElement(name = "setAspects", namespace = "http://www.alfresco.org")
|
|
public class SetAspects {
|
|
|
|
@XmlElement(namespace = "http://www.alfresco.org")
|
|
protected List<String> aspectsToAdd;
|
|
@XmlElement(namespace = "http://www.alfresco.org")
|
|
protected List<String> aspectsToRemove;
|
|
@XmlElement(namespace = "http://www.alfresco.org")
|
|
protected CmisPropertiesType properties;
|
|
|
|
/**
|
|
* Gets the value of the aspectsToAdd 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 aspectsToAdd property.
|
|
*
|
|
* <p>
|
|
* For example, to add a new item, do as follows:
|
|
* <pre>
|
|
* getAspectsToAdd().add(newItem);
|
|
* </pre>
|
|
*
|
|
*
|
|
* <p>
|
|
* Objects of the following type(s) are allowed in the list
|
|
* {@link String }
|
|
*
|
|
*
|
|
*/
|
|
public List<String> getAspectsToAdd() {
|
|
if (aspectsToAdd == null) {
|
|
aspectsToAdd = new ArrayList<String>();
|
|
}
|
|
return this.aspectsToAdd;
|
|
}
|
|
|
|
/**
|
|
* Gets the value of the aspectsToRemove 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 aspectsToRemove property.
|
|
*
|
|
* <p>
|
|
* For example, to add a new item, do as follows:
|
|
* <pre>
|
|
* getAspectsToRemove().add(newItem);
|
|
* </pre>
|
|
*
|
|
*
|
|
* <p>
|
|
* Objects of the following type(s) are allowed in the list
|
|
* {@link String }
|
|
*
|
|
*
|
|
*/
|
|
public List<String> getAspectsToRemove() {
|
|
if (aspectsToRemove == null) {
|
|
aspectsToRemove = new ArrayList<String>();
|
|
}
|
|
return this.aspectsToRemove;
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
}
|