package de.votian.services.dto;

import java.util.ArrayList;
import java.util.List;

public class UserSessionDto {

    private Long userId;
    private Long headquartersId;
    private Long employeeId;
    private Long customerId;
    private Long costCenterId;
    private Long courierId;
    private Integer userType;
    private String name;
    private String firstname;
    private String legacyRights;
    private List<Long> accessibleCostCenterIds = new ArrayList<>();
    private List<Long> rightIds = new ArrayList<>();
    private List<String> rightNames = new ArrayList<>();

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getHeadquartersId() {
        return headquartersId;
    }

    public void setHeadquartersId(Long headquartersId) {
        this.headquartersId = headquartersId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getCostCenterId() {
        return costCenterId;
    }

    public void setCostCenterId(Long costCenterId) {
        this.costCenterId = costCenterId;
    }

    public Long getCourierId() {
        return courierId;
    }

    public void setCourierId(Long courierId) {
        this.courierId = courierId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLegacyRights() {
        return legacyRights;
    }

    public void setLegacyRights(String legacyRights) {
        this.legacyRights = legacyRights;
    }

    public List<Long> getAccessibleCostCenterIds() {
        return accessibleCostCenterIds;
    }

    public void setAccessibleCostCenterIds(List<Long> accessibleCostCenterIds) {
        this.accessibleCostCenterIds = accessibleCostCenterIds != null
                ? new ArrayList<>(accessibleCostCenterIds)
                : new ArrayList<>();
    }

    public List<Long> getRightIds() {
        return rightIds;
    }

    public void setRightIds(List<Long> rightIds) {
        this.rightIds = rightIds != null ? new ArrayList<>(rightIds) : new ArrayList<>();
    }

    public List<String> getRightNames() {
        return rightNames;
    }

    public void setRightNames(List<String> rightNames) {
        this.rightNames = rightNames != null ? new ArrayList<>(rightNames) : new ArrayList<>();
    }
}
