net.nemerosa.ontrack.model.structure.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.structure;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
@Data
public class User {
public static final String ANONYMOUS = "anonymous";
private final String name;
public static User anonymous() {
return of(ANONYMOUS);
}
public static User of(String name) {
return new User(name);
}
@JsonIgnore
public boolean isAnonymous() {
return ANONYMOUS.equals(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy