1
2 package org.apache.chemistry.opencmis.commons.impl.jaxb;
3
4 import java.util.ArrayList;
5 import java.util.List;
6 import javax.xml.bind.JAXBElement;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlElementRef;
11 import javax.xml.bind.annotation.XmlRootElement;
12 import javax.xml.bind.annotation.XmlType;
13
14
15 /**
16 * <p>Java class for anonymous complex type.
17 *
18 * <p>The following schema fragment specifies the expected content contained within this class.
19 *
20 * <pre>
21 * <complexType>
22 * <complexContent>
23 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24 * <sequence>
25 * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
26 * <element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertiesType"/>
27 * <element name="policies" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
28 * <element name="addACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlListType" minOccurs="0"/>
29 * <element name="removeACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlListType" minOccurs="0"/>
30 * <element name="extension" type="{http://docs.oasis-open.org/ns/cmis/messaging/200908/}cmisExtensionType" minOccurs="0"/>
31 * </sequence>
32 * </restriction>
33 * </complexContent>
34 * </complexType>
35 * </pre>
36 *
37 *
38 */
39 @XmlAccessorType(XmlAccessType.FIELD)
40 @XmlType(name = "", propOrder = {
41 "repositoryId",
42 "properties",
43 "policies",
44 "addACEs",
45 "removeACEs",
46 "extension"
47 })
48 @XmlRootElement(name = "createRelationship")
49 public class CreateRelationship {
50
51 @XmlElement(required = true)
52 protected String repositoryId;
53 @XmlElement(required = true)
54 protected CmisPropertiesType properties;
55 @XmlElement(nillable = true)
56 protected List<String> policies;
57 @XmlElementRef(name = "addACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
58 protected JAXBElement<CmisAccessControlListType> addACEs;
59 @XmlElementRef(name = "removeACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
60 protected JAXBElement<CmisAccessControlListType> removeACEs;
61 @XmlElementRef(name = "extension", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
62 protected JAXBElement<CmisExtensionType> extension;
63
64 /**
65 * Gets the value of the repositoryId property.
66 *
67 * @return
68 * possible object is
69 * {@link String }
70 *
71 */
72 public String getRepositoryId() {
73 return repositoryId;
74 }
75
76 /**
77 * Sets the value of the repositoryId property.
78 *
79 * @param value
80 * allowed object is
81 * {@link String }
82 *
83 */
84 public void setRepositoryId(String value) {
85 this.repositoryId = value;
86 }
87
88 /**
89 * Gets the value of the properties property.
90 *
91 * @return
92 * possible object is
93 * {@link CmisPropertiesType }
94 *
95 */
96 public CmisPropertiesType getProperties() {
97 return properties;
98 }
99
100 /**
101 * Sets the value of the properties property.
102 *
103 * @param value
104 * allowed object is
105 * {@link CmisPropertiesType }
106 *
107 */
108 public void setProperties(CmisPropertiesType value) {
109 this.properties = value;
110 }
111
112 /**
113 * Gets the value of the policies property.
114 *
115 * <p>
116 * This accessor method returns a reference to the live list,
117 * not a snapshot. Therefore any modification you make to the
118 * returned list will be present inside the JAXB object.
119 * This is why there is not a <CODE>set</CODE> method for the policies property.
120 *
121 * <p>
122 * For example, to add a new item, do as follows:
123 * <pre>
124 * getPolicies().add(newItem);
125 * </pre>
126 *
127 *
128 * <p>
129 * Objects of the following type(s) are allowed in the list
130 * {@link String }
131 *
132 *
133 */
134 public List<String> getPolicies() {
135 if (policies == null) {
136 policies = new ArrayList<String>();
137 }
138 return this.policies;
139 }
140
141 /**
142 * Gets the value of the addACEs property.
143 *
144 * @return
145 * possible object is
146 * {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
147 *
148 */
149 public JAXBElement<CmisAccessControlListType> getAddACEs() {
150 return addACEs;
151 }
152
153 /**
154 * Sets the value of the addACEs property.
155 *
156 * @param value
157 * allowed object is
158 * {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
159 *
160 */
161 public void setAddACEs(JAXBElement<CmisAccessControlListType> value) {
162 this.addACEs = ((JAXBElement<CmisAccessControlListType> ) value);
163 }
164
165 /**
166 * Gets the value of the removeACEs property.
167 *
168 * @return
169 * possible object is
170 * {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
171 *
172 */
173 public JAXBElement<CmisAccessControlListType> getRemoveACEs() {
174 return removeACEs;
175 }
176
177 /**
178 * Sets the value of the removeACEs property.
179 *
180 * @param value
181 * allowed object is
182 * {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
183 *
184 */
185 public void setRemoveACEs(JAXBElement<CmisAccessControlListType> value) {
186 this.removeACEs = ((JAXBElement<CmisAccessControlListType> ) value);
187 }
188
189 /**
190 * Gets the value of the extension property.
191 *
192 * @return
193 * possible object is
194 * {@link JAXBElement }{@code <}{@link CmisExtensionType }{@code >}
195 *
196 */
197 public JAXBElement<CmisExtensionType> getExtension() {
198 return extension;
199 }
200
201 /**
202 * Sets the value of the extension property.
203 *
204 * @param value
205 * allowed object is
206 * {@link JAXBElement }{@code <}{@link CmisExtensionType }{@code >}
207 *
208 */
209 public void setExtension(JAXBElement<CmisExtensionType> value) {
210 this.extension = ((JAXBElement<CmisExtensionType> ) value);
211 }
212
213 }