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

com.geotab.model.entity.group.PrivateUserGroup Maven / Gradle / Ivy

package com.geotab.model.entity.group;

import java.util.ArrayList;
import java.util.List;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * This is a {@link Group} with an Id of GroupPrivateUserId. It contains private groups for all
 * users. Each user ideally would one group under this group. This way, it will be easy to schedule
 * a report or a dashboard for a user.
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PrivateUserGroup extends SystemGroupBase {

  public static final String PRIVATE_USER_GROUP_ID = "GroupPrivateUserId";
  public static final String PRIVATE_USER_GROUP_NAME = "**PrivateUser**";

  @Builder(builderMethodName = "privateUserGroupBuilder")
  public PrivateUserGroup(Group parent, List children, String comments, String reference) {
    super(PRIVATE_USER_GROUP_ID, PRIVATE_USER_GROUP_NAME, parent, children, comments, reference);
  }

  public PrivateUserGroup() {
    super(PRIVATE_USER_GROUP_ID, PRIVATE_USER_GROUP_NAME, null, new ArrayList<>(), "", "");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy