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

com.datahub.authorization.DisjunctivePrivilegeGroup Maven / Gradle / Ivy

Go to download

DataHub Auth API for developers to write custom Authentication & Authorization plugins for DataHub

There is a newer version: 0.14.1-12rc1
Show newest version
package com.datahub.authorization;

import java.util.Collection;

/**
 * Represents a group of privilege groups, any of which must be authorized to authorize a request.
 *
 * 

That is, an OR of privilege groups. */ public class DisjunctivePrivilegeGroup { private final Collection _authorizedPrivilegeGroups; public DisjunctivePrivilegeGroup( Collection authorizedPrivilegeGroups) { _authorizedPrivilegeGroups = authorizedPrivilegeGroups; } public Collection getAuthorizedPrivilegeGroups() { return _authorizedPrivilegeGroups; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DisjunctivePrivilegeGroup that = (DisjunctivePrivilegeGroup) o; return _authorizedPrivilegeGroups.equals(that._authorizedPrivilegeGroups); } @Override public int hashCode() { return _authorizedPrivilegeGroups.hashCode(); } @Override public String toString() { return "DisjunctivePrivilegeGroup{" + "_authorizedPrivilegeGroups=" + _authorizedPrivilegeGroups + '}'; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy