fix(ui): add joinedOn field to UserDto
Closes:
MODIFY
manager/api/beans/src/main/java/io/apiman/manager/api/beans/idm/UserBean.java
manager/api/beans/src/main/java/io/apiman/manager/api/beans/idm/UserBean.java
@@ -32,7 +32,6 @@ import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
-import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

MODIFY
manager/api/beans/src/main/java/io/apiman/manager/api/beans/idm/UserDto.java
manager/api/beans/src/main/java/io/apiman/manager/api/beans/idm/UserDto.java
package io.apiman.manager.api.beans.idm;
+import java.util.Date;
import java.util.Locale;
import java.util.Objects;
import java.util.StringJoiner;
@@ -20,6 +21,8 @@ public class UserDto {
private String fullName;
@NotBlank
private String email;
+ @NotBlank
+ private Date joinedOn;
@NotNull
private Locale locale = Locale.getDefault();
@Nullable
@@ -73,6 +76,15 @@ public class UserDto {
return this;
}
+ public Date getJoinedOn() {
+ return joinedOn;
+ }
+
+ public UserDto setJoinedOn(Date joinedOn) {
+ this.joinedOn = joinedOn;
+ return this;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -96,6 +108,7 @@ public class UserDto {
.add("username='" + username + "'")
.add("fullName='" + fullName + "'")
.add("email='" + email + "'")
+ .add("joinedOn='" + joinedOn + "'")
.add("locale=" + locale)
.add("admin=" + admin)
.toString();

fix(ui): add joinedOn field to UserDto

Closes: #1929