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

io.camunda.operate.webapp.security.sso.model.ClusterInfo Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha2-rc1
Show newest version
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Camunda License 1.0. You may not use this file
 * except in compliance with the Camunda License 1.0.
 */
package io.camunda.operate.webapp.security.sso.model;

import java.io.Serializable;

public class ClusterInfo implements Serializable {
  private String name;

  private SalesPlan salesPlan;
  private OrgPermissions permissions;

  public ClusterInfo() {}

  public ClusterInfo(String name, OrgPermissions permissions, SalesPlan salesPlan) {
    this.name = name;
    this.permissions = permissions;
    this.salesPlan = salesPlan;
  }

  public String getName() {
    return name;
  }

  public OrgPermissions getPermissions() {
    return permissions;
  }

  public SalesPlan getSalesPlan() {
    return salesPlan;
  }

  public static class SalesPlan {
    private String type;

    public SalesPlan() {}

    public SalesPlan(final String type) {
      this.type = type;
    }

    public String getType() {
      return type;
    }
  }

  public static class OrgPermissions {
    private OrgPermissions cluster;
    private Permission operate;

    public OrgPermissions() {}

    public OrgPermissions(OrgPermissions permissions, Permission operate) {
      this.cluster = permissions;
      this.operate = operate;
    }

    public Permission getOperate() {
      return operate;
    }

    public OrgPermissions getCluster() {
      return cluster;
    }
  }

  public static class Permission {
    private Boolean read;
    private Boolean create;
    private Boolean update;
    private Boolean delete;

    public Permission() {}

    public Permission(Boolean read, Boolean create, Boolean update, Boolean delete) {
      this.read = read;
      this.create = create;
      this.update = update;
      this.delete = delete;
    }

    public Boolean getRead() {
      return read;
    }

    public Boolean getCreate() {
      return create;
    }

    public Boolean getUpdate() {
      return update;
    }

    public Boolean getDelete() {
      return delete;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy