com.netgrif.application.engine.petrinet.domain.dataset.UserFieldValue.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.petrinet.domain.dataset
import com.netgrif.application.engine.auth.domain.IUser
class UserFieldValue implements Serializable {
private static final long serialVersionUID = 5228212326436828485L
protected String id
protected String name
protected String surname
protected String email
UserFieldValue() {}
UserFieldValue(String id, String name, String surname, String email) {
this.id = id
this.name = name
this.surname = surname
this.email = email
}
UserFieldValue(IUser user) {
this(user.getStringId(), user.getName(), user.getSurname(), user.getEmail())
}
String getId() {
return id
}
String getName() {
return name
}
String getSurname() {
return surname
}
String getEmail() {
return email
}
String getFullName() {
return name + " " + surname
}
@Override
String toString() {
return "UserFieldValue{" +
", name='" + name + '\'' +
", surname='" + surname + '\'' +
", email='" + email + '\'' +
'}'
}
int hashCode() {
return this.id.hashCode()
}
@Override
boolean equals(Object obj) {
if (!(obj instanceof UserFieldValue)) {
return false
}
return this.id != null && ((UserFieldValue) obj).id != null && this.id == ((UserFieldValue) obj).id
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy