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

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

package com.geotab.model.entity.group;

import com.geotab.model.SecurityFilter;
import com.geotab.model.drawing.Color;
import java.util.ArrayList;
import java.util.List;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * This is a {@link SystemSecurityClearance} with an Id of GroupNothingSecurityId. A user that has
 * this group in its security groups means that there is no access to anything in the system. This
 * is useful if you want to revoke access to the system or build upon this role and give access to a
 * small set of items.
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class NothingSecurityGroup extends SystemSecurityClearance {

  public static final String NOTHING_SECURITY_GROUP_ID = "GroupNothingSecurityId";
  public static final String NOTHING_SECURITY_GROUP_NAME = "**NothingSecurity**";

  @Builder(builderMethodName = "nothingSecurityGroupBuilder")
  public NothingSecurityGroup(Color color, Group parent, List children, String comments,
      String reference, List securityFilters) {
    super(NOTHING_SECURITY_GROUP_ID, NOTHING_SECURITY_GROUP_NAME, color, parent, children,
        comments, reference, securityFilters);
  }

  public NothingSecurityGroup() {
    super(NOTHING_SECURITY_GROUP_ID, NOTHING_SECURITY_GROUP_NAME, Color.EMPTY, null,
        new ArrayList<>(), "", "", new ArrayList<>());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy