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

io.rocketbase.commons.model.SimpleAppUserToken Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
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