diff src/main/java/de/mpiwg/gazetteer/dataverse/bo/VDCUser.java @ 0:3e62083dbcbf

First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 23 Apr 2015 15:46:01 +0200
parents
children ce2e3f2814c0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/mpiwg/gazetteer/dataverse/bo/VDCUser.java	Thu Apr 23 15:46:01 2015 +0200
@@ -0,0 +1,117 @@
+package de.mpiwg.gazetteer.dataverse.bo;
+
+import org.json.JSONObject;
+
+import de.mpiwg.gazetteer.utils.JSONUtils;
+
+/**
+ * See: edu.harvard.iq.dvn.core.admin.VDCUser
+ * @author jurzua
+ *
+ */
+public class VDCUser {
+
+	private String userName;
+    private String email;
+    private String firstName;
+    private String lastName;
+    private String institution;
+    private Long id;
+    private Long version;
+    private Long position;
+    
+    private String password;
+    public VDCUser(Long id, String userName, String password){
+    	this.id = id;
+    	this.userName = userName;
+    	this.password = password;
+    }
+    
+    public VDCUser(JSONObject json){
+    	
+    	this.email = JSONUtils.getString(json, "email");
+    	this.firstName = JSONUtils.getString(json, "firstName");
+    	this.userName = JSONUtils.getString(json, "userName");
+    	this.lastName = JSONUtils.getString(json, "lastName");
+    	this.institution = JSONUtils.getString(json, "institution");
+    	
+    	this.id = JSONUtils.getLong(json, "id");
+    	this.position = JSONUtils.getLong(json, "position");
+    	this.version = JSONUtils.getLong(json, "version");
+    }
+
+	public String getUserName() {
+		return userName;
+	}
+
+	public void setUserName(String userName) {
+		this.userName = userName;
+	}
+
+	public String getEmail() {
+		return email;
+	}
+
+	public void setEmail(String email) {
+		this.email = email;
+	}
+
+	public String getFirstName() {
+		return firstName;
+	}
+
+	public void setFirstName(String firstName) {
+		this.firstName = firstName;
+	}
+
+	public String getLastName() {
+		return lastName;
+	}
+
+	public void setLastName(String lastName) {
+		this.lastName = lastName;
+	}
+
+	public String getInstitution() {
+		return institution;
+	}
+
+	public void setInstitution(String institution) {
+		this.institution = institution;
+	}
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Long getVersion() {
+		return version;
+	}
+
+	public void setVersion(Long version) {
+		this.version = version;
+	}
+
+	public Long getPosition() {
+		return position;
+	}
+
+	public void setPosition(Long position) {
+		this.position = position;
+	}
+
+	public String getPassword() {
+		return password;
+	}
+
+	public void setPassword(String password) {
+		this.password = password;
+	}    
+
+	
+}
+