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

io.gravitee.repository.management.model.Organization Maven / Gradle / Ivy

There is a newer version: 4.5.5
Show newest version
/*
 * Copyright © 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.gravitee.repository.management.model;

import java.util.List;
import java.util.Objects;

/**
 * @author Florent CHAMFROY (florent.chamfroy at graviteesource.com)
 * @author GraviteeSource Team
 */
public class Organization {

    private String id;
    private String cockpitId;
    private List hrids;
    private String name;
    private String description;
    private List domainRestrictions;
    private String flowMode;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List getDomainRestrictions() {
        return domainRestrictions;
    }

    public void setDomainRestrictions(List domainRestrictions) {
        this.domainRestrictions = domainRestrictions;
    }

    public List getHrids() {
        return hrids;
    }

    public void setHrids(List hrids) {
        this.hrids = hrids;
    }

    public String getFlowMode() {
        return flowMode;
    }

    public void setFlowMode(String flowMode) {
        this.flowMode = flowMode;
    }

    public String getCockpitId() {
        return cockpitId;
    }

    public void setCockpitId(String cockpitId) {
        this.cockpitId = cockpitId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Organization that = (Organization) o;
        return (
            Objects.equals(id, that.id) &&
            Objects.equals(cockpitId, that.cockpitId) &&
            Objects.equals(hrids, that.hrids) &&
            Objects.equals(name, that.name) &&
            Objects.equals(description, that.description) &&
            Objects.equals(domainRestrictions, that.domainRestrictions) &&
            Objects.equals(flowMode, that.flowMode)
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, cockpitId, hrids, name, description, domainRestrictions, flowMode);
    }

    @Override
    public String toString() {
        return (
            "Organization{" +
            "id='" +
            id +
            '\'' +
            ", cockpitId='" +
            cockpitId +
            '\'' +
            ", hrids=" +
            hrids +
            ", name='" +
            name +
            '\'' +
            ", description='" +
            description +
            '\'' +
            ", domainRestrictions=" +
            domainRestrictions +
            ", flowMode='" +
            flowMode +
            '\'' +
            '}'
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy