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

edu.cornell.mannlib.vitro.webapp.controller.accounts.manageproxies.ProxyRelationship Maven / Gradle / Ivy

/* $This file is distributed under the terms of the license in LICENSE$ */

package edu.cornell.mannlib.vitro.webapp.controller.accounts.manageproxies;

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

/**
 * An immutable relationship between Proxies and Profiles.
 *
 * In most cases, this will either be between one Proxy and many Profiles (view
 * by Proxy), or between on Profile and many Proxies (view by Profile). However,
 * we can imagine it being a many-to-many relationship.
 */
public class ProxyRelationship {
	private final List proxyInfos;
	private final List profileInfos;

	public ProxyRelationship(List proxyInfos,
			List profileInfos) {
		this.proxyInfos = Collections
				.unmodifiableList(new ArrayList(proxyInfos));
		this.profileInfos = Collections
				.unmodifiableList(new ArrayList(profileInfos));
	}

	public List getProxyInfos() {
		return proxyInfos;
	}

	public List getProfileInfos() {
		return profileInfos;
	}

	@Override
	public String toString() {
		return "ProxyRelationship[proxyInfos=" + proxyInfos + ", profileInfos="
				+ profileInfos + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy