All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.petrinet.domain.dataset.UserFieldValue.groovy Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.petrinet.domain.dataset

import com.netgrif.application.engine.auth.domain.IUser

class UserFieldValue {

    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