io.rocketbase.commons.model.AppInviteEntity Maven / Gradle / Ivy
package io.rocketbase.commons.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.Instant;
import java.util.List;
public interface AppInviteEntity extends EntityWithKeyValue, HasFirstAndLastName {
String getId();
void setId(String id);
String getInvitor();
void setInvitor(String invitor);
String getMessage();
void setMessage(String message);
String getFirstName();
void setFirstName(String firstName);
String getLastName();
void setLastName(String lastName);
String getEmail();
void setEmail(String email);
List getRoles();
void setRoles(List roles);
Instant getCreated();
Instant getExpiration();
void setExpiration(Instant expiration);
/**
* fullname fallback if null use email
*/
@JsonIgnore
default String getDisplayName() {
String fullName = getFullName();
if (fullName == null) {
return getEmail();
}
return fullName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy