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

org.visallo.web.clientapi.model.ClientApiElementAcl Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.visallo.web.clientapi.model;

import java.util.ArrayList;
import java.util.List;

public class ClientApiElementAcl extends ClientApiAcl {
    private List propertyAcls = new ArrayList();

    public List getPropertyAcls() {
        return propertyAcls;
    }

    public void setPropertyAcls(List propertyAcls) {
        this.propertyAcls = propertyAcls;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }

        ClientApiElementAcl that = (ClientApiElementAcl) o;

        if (this.propertyAcls.size() != that.propertyAcls.size()) {
            return false;
        }

        for (int i = 0; i < this.propertyAcls.size(); i++) {
            ClientApiPropertyAcl thisPropertyAcl = this.propertyAcls.get(i);
            ClientApiPropertyAcl thatPropertyAcl = that.propertyAcls.get(i);
            if (!thisPropertyAcl.equals(thatPropertyAcl)) {
                return false;
            }
        }


        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy