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.JsonIgnoreProperties;
26  import com.fasterxml.jackson.annotation.JsonProperty;
27  
28  @JsonIgnoreProperties(ignoreUnknown = true)
29  public class BrightspaceUser {
30  
31    private String orgId;
32    private String userId;
33    private String firstName;
34    private String middleName;
35    private String lastName;
36    private String userName;
37    private String externalEmail;
38    private String orgDefinedId;
39    private String uniqueIdentifier;
40    private Activation activation;
41    private String displayName;
42    private String lastAccessedDate;
43    private String pronouns;
44    private String firstLoginDate;
45  
46    @JsonCreator
47    public BrightspaceUser(
48        @JsonProperty("OrgId") String orgId,
49        @JsonProperty("UserId") String userId,
50        @JsonProperty("FirstName") String firstName,
51        @JsonProperty("MiddleName") String middleName,
52        @JsonProperty("LastName") String lastName,
53        @JsonProperty("UserName") String userName,
54        @JsonProperty("ExternalEmail") String externalEmail,
55        @JsonProperty("OrgDefinedId") String orgDefinedId,
56        @JsonProperty("UniqueIdentifier") String uniqueIdentifier,
57        @JsonProperty("Activation") Activation activation,
58        @JsonProperty("DisplayName") String displayName,
59        @JsonProperty("LastAccessedDate") String lastAccessedDate,
60        @JsonProperty("Pronouns") String pronouns,
61        @JsonProperty("FirstLoginDate") String firstLoginDate
62    ) {
63      this.orgId = orgId;
64      this.userId = userId;
65      this.firstName = firstName;
66      this.middleName = middleName;
67      this.lastName = lastName;
68      this.userName = userName;
69      this.externalEmail = externalEmail;
70      this.orgDefinedId = orgDefinedId;
71      this.uniqueIdentifier = uniqueIdentifier;
72      this.activation = activation;
73      this.displayName = displayName;
74      this.lastAccessedDate = lastAccessedDate;
75      this.pronouns = pronouns;
76      this.firstLoginDate = firstLoginDate;
77  
78    }
79  
80    public String getOrgId() {
81      return this.orgId;
82    }
83  
84    public String getUserId() {
85      return this.userId;
86    }
87  
88    public String getFirstName() {
89      return this.firstName;
90    }
91  
92    public String getMiddleName() {
93      return this.middleName;
94    }
95  
96    public String getLastName() {
97      return this.lastName;
98    }
99  
100   public String getUserName() {
101     return this.userName;
102   }
103 
104   public String getExternalEmail() {
105     return this.externalEmail;
106   }
107 
108   public String getOrgDefinedId() {
109     return this.orgDefinedId;
110   }
111 
112   public String getUniqueIdentifier() {
113     return this.uniqueIdentifier;
114   }
115 
116   public Activation getActivation() {
117     return this.activation;
118   }
119 
120   public String getDisplayName() {
121     return this.displayName;
122   }
123 
124   public String getLastAccessedDate() {
125     return this.lastAccessedDate;
126   }
127 
128   public String getPronouns() {
129     return this.pronouns;
130   }
131 
132   public String getFirstLoginDate() {
133     return this.firstLoginDate;
134   }
135 
136   public String getFullName() {
137     return this.firstName + " " + this.lastName;
138   }
139 }