/*
* #%L
* Course Signup Implementation
* %%
* Copyright (C) 2010 - 2013 University of Oxford
* %%
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/ecl2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package uk.ac.ox.oucs.vle;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class PersonImpl implements Person {
private String id;
private String firstName;
private String lastName;
private String displayName;
private String email;
private List<String> units;
private String webauthId;
private String ossId;
private String yearOfStudy;
private String degreeProgram;
private String type;
private String departmentName;
public PersonImpl(String id, String firstName, String lastName, String displayName,
String email, List<String> units,
String webauthId, String ossId, String yearOfStudy,
String degreeProgram, String departmentName, String type) {
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.displayName = displayName;
this.email = email;
this.units = new ArrayList<String>(units);
this.webauthId = webauthId;
this.ossId = ossId;
this.yearOfStudy = yearOfStudy;
this.degreeProgram = degreeProgram;
this.departmentName = departmentName;
this.type = type;
}
public String getId() {
return id;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public String getName() {
return displayName;
}
public String getEmail() {
return email;
}
public List<String> getUnits() {
return Collections.unmodifiableList(units);
}
public String getWebauthId() {
return webauthId;
}
public String getOssId() {
return ossId;
}
public String getYearOfStudy() {
return yearOfStudy;
}
public String getDegreeProgram() {
return degreeProgram;
}
public String getDepartmentName() {
return departmentName;
}
public String getType() {
return type;
}
}