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

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

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;

@JsonTypeName(DirectoryEntity.TYPE_GROUP)
public class DirectoryGroup extends DirectoryEntity {
    @JsonCreator
    public DirectoryGroup(
            @JsonProperty("id") String id,
            @JsonProperty("displayName") String displayName
    ) {
        super(id, displayName);
    }

    @Override
    public String getType() {
        return TYPE_GROUP;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof DirectoryGroup) {
            return super.equals(o);
        }
        return false;
    }

    @Override
    public int hashCode() {
        return super.hashCode() + 13;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy