summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/user
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-12-13 09:34:32 -0500
committerEndi S. Dewata <edewata@redhat.com>2013-12-16 19:15:47 -0500
commitc6dc612b3696cdd10f7676bf4cedde83242b22e8 (patch)
tree42d5d9f8a343a1bc466646d0c5fc5faacdd00829 /base/common/src/com/netscape/certsrv/user
parent6ec35d4864fc45423f3e00b067ec5c92fbeab80a (diff)
downloadpki-c6dc612b3696cdd10f7676bf4cedde83242b22e8.tar.gz
pki-c6dc612b3696cdd10f7676bf4cedde83242b22e8.tar.xz
pki-c6dc612b3696cdd10f7676bf4cedde83242b22e8.zip
Added dialog for adding TPS users.
A new dialog box has been added for adding TPS users. Backbone requires that a separate attribute is used to specify the user ID (instead of id) when creating new users, so a new userID field has been added to the backend service as well. Ticket #654
Diffstat (limited to 'base/common/src/com/netscape/certsrv/user')
-rw-r--r--base/common/src/com/netscape/certsrv/user/UserData.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/user/UserData.java b/base/common/src/com/netscape/certsrv/user/UserData.java
index da771f2e7..8fc0eab97 100644
--- a/base/common/src/com/netscape/certsrv/user/UserData.java
+++ b/base/common/src/com/netscape/certsrv/user/UserData.java
@@ -60,6 +60,7 @@ public class UserData {
}
String id;
+ String userID;
String fullName;
String email;
String password;
@@ -90,6 +91,15 @@ public class UserData {
this.id = id;
}
+ @XmlElement(name="UserID")
+ public String getUserID() {
+ return userID;
+ }
+
+ public void setUserID(String userID) {
+ this.userID = userID;
+ }
+
@FormParam(Constants.PR_USER_FULLNAME)
@XmlElement(name="FullName")
public String getFullName() {
@@ -167,10 +177,12 @@ public class UserData {
result = prime * result + ((email == null) ? 0 : email.hashCode());
result = prime * result + ((fullName == null) ? 0 : fullName.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
+ result = prime * result + ((link == null) ? 0 : link.hashCode());
result = prime * result + ((password == null) ? 0 : password.hashCode());
result = prime * result + ((phone == null) ? 0 : phone.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result + ((type == null) ? 0 : type.hashCode());
+ result = prime * result + ((userID == null) ? 0 : userID.hashCode());
return result;
}
@@ -203,6 +215,11 @@ public class UserData {
return false;
} else if (!id.equals(other.id))
return false;
+ if (link == null) {
+ if (other.link != null)
+ return false;
+ } else if (!link.equals(other.link))
+ return false;
if (password == null) {
if (other.password != null)
return false;
@@ -223,6 +240,11 @@ public class UserData {
return false;
} else if (!type.equals(other.type))
return false;
+ if (userID == null) {
+ if (other.userID != null)
+ return false;
+ } else if (!userID.equals(other.userID))
+ return false;
return true;
}