io.rocketbase.commons.model.SimpleAppUserToken Maven / Gradle / Ivy
package io.rocketbase.commons.model;
import com.google.common.collect.ImmutableMap;
import lombok.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SimpleAppUserToken implements AppUserToken {
private String id;
private String username;
private String firstName;
private String lastName;
private String email;
private String avatar;
private List roles;
@Getter(AccessLevel.PROTECTED)
@Setter(AccessLevel.PROTECTED)
private Map keyValueMap = new HashMap<>();
@Override
public Map getKeyValues() {
return getKeyValueMap() != null ? ImmutableMap.copyOf(getKeyValueMap()) : null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy