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

com.netgrif.application.engine.auth.domain.Author Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.4.0
Show newest version
package com.netgrif.application.engine.auth.domain;

import lombok.Data;
import org.bson.types.ObjectId;

@Data
public class Author {

    private String id;
    private String email;
    private String fullName;

    public Author() {
    }

    public Author(String id, String email, String fullName) {
        this.id = id;
        this.email = email;
        this.fullName = fullName;
    }

    public static Author createAnonymizedAuthor() {
        Author author = new Author();
        author.setId("");
        author.setEmail("***");
        author.setFullName("***");
        return author;
    }

    @Override
    public String toString() {
        return "Author{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", fullName='" + fullName + '\'' +
                '}';
    }

    @Override
    public Author clone() {
        return new Author(this.id, this.email, this.fullName);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy