1
2 package org.miloss.fgsms.services.interfaces.policyconfiguration;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
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.XmlType;
11
12
13 /**
14 *
15 * user information
16 *
17 *
18 * <p>Java class for UserInfo complex type.
19 *
20 * <p>The following schema fragment specifies the expected content contained within this class.
21 *
22 * <pre>
23 * <complexType name="UserInfo">
24 * <complexContent>
25 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26 * <sequence>
27 * <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string"/>
28 * <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="4"/>
29 * <element name="role" type="{http://www.w3.org/2001/XMLSchema}string"/>
30 * <element name="username" type="{http://www.w3.org/2001/XMLSchema}string"/>
31 * </sequence>
32 * </restriction>
33 * </complexContent>
34 * </complexType>
35 * </pre>
36 *
37 *
38 */
39 @XmlAccessorType(XmlAccessType.FIELD)
40 @XmlType(name = "UserInfo", propOrder = {
41 "displayName",
42 "email",
43 "role",
44 "username"
45 })
46 public class UserInfo
47 implements Serializable
48 {
49
50 private final static long serialVersionUID = 1L;
51 @XmlElement(required = false, nillable = true)
52 protected String displayName;
53 @XmlElement(required = false, nillable = true)
54 protected List<String> email;
55 @XmlElement(required = true, nillable = true)
56 protected String role;
57 @XmlElement(required = true, nillable = true)
58 protected String username;
59
60 /**
61 * Gets the value of the displayName property.
62 *
63 * @return
64 * possible object is
65 * {@link String }
66 *
67 */
68 public String getDisplayName() {
69 return displayName;
70 }
71
72 /**
73 * Sets the value of the displayName property.
74 *
75 * @param value
76 * allowed object is
77 * {@link String }
78 *
79 */
80 public void setDisplayName(String value) {
81 this.displayName = value;
82 }
83
84 public boolean isSetDisplayName() {
85 return (this.displayName!= null);
86 }
87
88 /**
89 * Gets the value of the email property.
90 *
91 * <p>
92 * This accessor method returns a reference to the live list,
93 * not a snapshot. Therefore any modification you make to the
94 * returned list will be present inside the JAXB object.
95 * This is why there is not a <CODE>set</CODE> method for the email property.
96 *
97 * <p>
98 * For example, to add a new item, do as follows:
99 * <pre>
100 * getEmail().add(newItem);
101 * </pre>
102 *
103 *
104 * <p>
105 * Objects of the following type(s) are allowed in the list
106 * {@link String }
107 *
108 *
109 */
110 public List<String> getEmail() {
111 if (email == null) {
112 email = new ArrayList<String>();
113 }
114 return this.email;
115 }
116
117 public boolean isSetEmail() {
118 return ((this.email!= null)&&(!this.email.isEmpty()));
119 }
120
121 public void unsetEmail() {
122 this.email = null;
123 }
124
125 /**
126 * Gets the value of the role property.
127 *
128 * @return
129 * possible object is
130 * {@link String }
131 *
132 */
133 public String getRole() {
134 return role;
135 }
136
137 /**
138 * Sets the value of the role property.
139 *
140 * @param value
141 * allowed object is
142 * {@link String }
143 *
144 */
145 public void setRole(String value) {
146 this.role = value;
147 }
148
149 public boolean isSetRole() {
150 return (this.role!= null);
151 }
152
153 /**
154 * Gets the value of the username property.
155 *
156 * @return
157 * possible object is
158 * {@link String }
159 *
160 */
161 public String getUsername() {
162 return username;
163 }
164
165 /**
166 * Sets the value of the username property.
167 *
168 * @param value
169 * allowed object is
170 * {@link String }
171 *
172 */
173 public void setUsername(String value) {
174 this.username = value;
175 }
176
177 public boolean isSetUsername() {
178 return (this.username!= null);
179 }
180
181 }