Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.geotab.model.entity.user.NoDriver Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.user;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.geotab.model.entity.group.CompanyGroup;
import com.geotab.model.enumeration.UserAuthenticationType;
import com.geotab.model.serialization.SystemEntitySerializationAware;
import com.google.common.collect.Lists;
import java.time.LocalDateTime;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* A driver object that represents no driver.
*/
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class NoDriver extends Driver implements SystemEntitySerializationAware {
private static class InstanceHolder {
private static final NoDriver INSTANCE = new NoDriver();
}
public static final String NO_DRIVER_ID = "NoDriverId";
private NoDriver() {
super(NO_DRIVER_ID, "**NoDriver", 0L, 0, 0, 0, null,
LocalDateTime.of(1986, 1, 1, 0, 0, 0, 0),
LocalDateTime.of(2050, 1, 1, 0, 0, 0, 0),
null, null, false,
null, Lists.newArrayList(), null, null, null, null,
null, null, null, null,
null, null, null, "", null, null,
null, false, false, false,
null, null, null, false, true,
false, false, true, null, null, "",
null, "", Lists.newArrayList(), Lists.newArrayList(), Lists.newArrayList(), false,
null, UserAuthenticationType.NONE, null, null, null,
null, null, null, true, Lists.newArrayList(new CompanyGroup()), null,
false, "", "");
}
@JsonIgnore
@Override
public boolean isSystemEntity() {
return true;
}
public static NoDriver getInstance() {
return InstanceHolder.INSTANCE;
}
}