View Javadoc
1   /*
2    * Licensed to The Apereo Foundation under one or more contributor license
3    * agreements. See the NOTICE file distributed with this work for additional
4    * information regarding copyright ownership.
5    *
6    *
7    * The Apereo Foundation licenses this file to you under the Educational
8    * Community License, Version 2.0 (the "License"); you may not use this file
9    * except in compliance with the License. You may obtain a copy of the License
10   * at:
11   *
12   *   http://opensource.org/licenses/ecl2.txt
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
17   * License for the specific language governing permissions and limitations under
18   * the License.
19   *
20   */
21  
22  package org.opencastproject.userdirectory.brightspace.client.api;
23  
24  import com.fasterxml.jackson.annotation.JsonCreator;
25  import com.fasterxml.jackson.annotation.JsonProperty;
26  
27  public class BrightspaceUser {
28  
29    private String orgId;
30    private String userId;
31    private String firstName;
32    private String middleName;
33    private String lastName;
34    private String userName;
35    private String externalEmail;
36    private String orgDefinedId;
37    private String uniqueIdentifier;
38    private Activation activation;
39    private String displayName;
40    private String lastAccessedDate;
41    private String pronouns;
42  
43    @JsonCreator
44    public BrightspaceUser(
45        @JsonProperty("OrgId") String orgId,
46        @JsonProperty("UserId") String userId,
47        @JsonProperty("FirstName") String firstName,
48        @JsonProperty("MiddleName") String middleName,
49        @JsonProperty("LastName") String lastName,
50        @JsonProperty("UserName") String userName,
51        @JsonProperty("ExternalEmail") String externalEmail,
52        @JsonProperty("OrgDefinedId") String orgDefinedId,
53        @JsonProperty("UniqueIdentifier") String uniqueIdentifier,
54        @JsonProperty("Activation") Activation activation,
55        @JsonProperty("DisplayName") String displayName,
56        @JsonProperty("LastAccessedDate") String lastAccessedDate,
57        @JsonProperty("Pronouns") String pronouns
58    ) {
59      this.orgId = orgId;
60      this.userId = userId;
61      this.firstName = firstName;
62      this.middleName = middleName;
63      this.lastName = lastName;
64      this.userName = userName;
65      this.externalEmail = externalEmail;
66      this.orgDefinedId = orgDefinedId;
67      this.uniqueIdentifier = uniqueIdentifier;
68      this.activation = activation;
69      this.displayName = displayName;
70      this.lastAccessedDate = lastAccessedDate;
71      this.pronouns = pronouns;
72  
73    }
74  
75    public String getOrgId() {
76      return this.orgId;
77    }
78  
79    public String getUserId() {
80      return this.userId;
81    }
82  
83    public String getFirstName() {
84      return this.firstName;
85    }
86  
87    public String getMiddleName() {
88      return this.middleName;
89    }
90  
91    public String getLastName() {
92      return this.lastName;
93    }
94  
95    public String getUserName() {
96      return this.userName;
97    }
98  
99    public String getExternalEmail() {
100     return this.externalEmail;
101   }
102 
103   public String getOrgDefinedId() {
104     return this.orgDefinedId;
105   }
106 
107   public String getUniqueIdentifier() {
108     return this.uniqueIdentifier;
109   }
110 
111   public Activation getActivation() {
112     return this.activation;
113   }
114 
115   public String getDisplayName() {
116     return this.displayName;
117   }
118 
119   public String getLastAccessedDate() {
120     return this.lastAccessedDate;
121   }
122 
123   public String getPronouns() {
124     return this.pronouns;
125   }
126 
127   public String getFullName() {
128     return this.firstName + " " + this.lastName;
129   }
130 }