com.geotab.model.entity.group.CompanyGroup Maven / Gradle / Ivy
package com.geotab.model.entity.group;
import com.geotab.model.enumeration.SpeedLimitCategory;
import java.util.ArrayList;
import java.util.List;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* This is a system {@link Group} with an Id of GroupCompanyId and is the root group of the
* organization structure. The entire sub tree of this group is user defined.
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class CompanyGroup extends SystemGroupBase {
public static final String COMPANY_GROUP_ID = "GroupCompanyId";
public static final String COMPANY_GROUP_NAME = "**Org**";
public CompanyGroup() {
super(COMPANY_GROUP_ID, COMPANY_GROUP_NAME, null, new ArrayList<>(), "", "", null);
}
@Builder(builderMethodName = "companyGroupBuilder")
public CompanyGroup(Group parent, List children, String comments, String reference,
SpeedLimitCategory speedLimitCategory) {
super(COMPANY_GROUP_ID, COMPANY_GROUP_NAME, parent, children, comments, reference,
speedLimitCategory);
}
}