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.annotation.XmlAccessType; 7 import javax.xml.bind.annotation.XmlAccessorType; 8 import javax.xml.bind.annotation.XmlAnyElement; 9 import javax.xml.bind.annotation.XmlElement; 10 import javax.xml.bind.annotation.XmlType; 11 import org.w3c.dom.Element; 12 13 14 /** 15 * <p>Java class for cmisAccessControlEntryType complex type. 16 * 17 * <p>The following schema fragment specifies the expected content contained within this class. 18 * 19 * <pre> 20 * <complexType name="cmisAccessControlEntryType"> 21 * <complexContent> 22 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 23 * <sequence> 24 * <element name="principal" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlPrincipalType"/> 25 * <element name="permission" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> 26 * <element name="direct" type="{http://www.w3.org/2001/XMLSchema}boolean"/> 27 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 28 * </sequence> 29 * </restriction> 30 * </complexContent> 31 * </complexType> 32 * </pre> 33 * 34 * 35 */ 36 @XmlAccessorType(XmlAccessType.FIELD) 37 @XmlType(name = "cmisAccessControlEntryType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { 38 "principal", 39 "permission", 40 "direct", 41 "any" 42 }) 43 public class CmisAccessControlEntryType { 44 45 @XmlElement(required = true) 46 protected CmisAccessControlPrincipalType principal; 47 @XmlElement(required = true) 48 protected List<String> permission; 49 protected boolean direct; 50 @XmlAnyElement(lax = true) 51 protected List<Object> any; 52 53 /** 54 * Gets the value of the principal property. 55 * 56 * @return 57 * possible object is 58 * {@link CmisAccessControlPrincipalType } 59 * 60 */ 61 public CmisAccessControlPrincipalType getPrincipal() { 62 return principal; 63 } 64 65 /** 66 * Sets the value of the principal property. 67 * 68 * @param value 69 * allowed object is 70 * {@link CmisAccessControlPrincipalType } 71 * 72 */ 73 public void setPrincipal(CmisAccessControlPrincipalType value) { 74 this.principal = value; 75 } 76 77 /** 78 * Gets the value of the permission property. 79 * 80 * <p> 81 * This accessor method returns a reference to the live list, 82 * not a snapshot. Therefore any modification you make to the 83 * returned list will be present inside the JAXB object. 84 * This is why there is not a <CODE>set</CODE> method for the permission property. 85 * 86 * <p> 87 * For example, to add a new item, do as follows: 88 * <pre> 89 * getPermission().add(newItem); 90 * </pre> 91 * 92 * 93 * <p> 94 * Objects of the following type(s) are allowed in the list 95 * {@link String } 96 * 97 * 98 */ 99 public List<String> getPermission() { 100 if (permission == null) { 101 permission = new ArrayList<String>(); 102 } 103 return this.permission; 104 } 105 106 /** 107 * Gets the value of the direct property. 108 * 109 */ 110 public boolean isDirect() { 111 return direct; 112 } 113 114 /** 115 * Sets the value of the direct property. 116 * 117 */ 118 public void setDirect(boolean value) { 119 this.direct = value; 120 } 121 122 /** 123 * Gets the value of the any property. 124 * 125 * <p> 126 * This accessor method returns a reference to the live list, 127 * not a snapshot. Therefore any modification you make to the 128 * returned list will be present inside the JAXB object. 129 * This is why there is not a <CODE>set</CODE> method for the any property. 130 * 131 * <p> 132 * For example, to add a new item, do as follows: 133 * <pre> 134 * getAny().add(newItem); 135 * </pre> 136 * 137 * 138 * <p> 139 * Objects of the following type(s) are allowed in the list 140 * {@link Element } 141 * {@link Object } 142 * 143 * 144 */ 145 public List<Object> getAny() { 146 if (any == null) { 147 any = new ArrayList<Object>(); 148 } 149 return this.any; 150 } 151 152 }