/**
* Copyright (c) 2009--2012 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
* along with this software; if not, see
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
*
* Red Hat trademarks are not licensed under GPLv2. No permission is
* granted to use or replicate Red Hat trademarks that are incorporated
* in this software or its documentation.
*/
package com.redhat.rhn.domain.server;
import com.redhat.rhn.domain.rhnpackage.PackageEvr;
import com.redhat.rhn.domain.rhnpackage.PackageEvrFactory;
/**
* @author paji
* @version $Rev$
*/
public class ProxyInfo {
private Server server;
private PackageEvr version;
private Long id;
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param sid the server_id to set
*/
public void setId(Long sid) {
this.id = sid;
}
/**
* @return Returns the version.
*/
public PackageEvr getVersion() {
return version;
}
/**
* @param aVersion The version to set.
*/
public void setVersion(PackageEvr aVersion) {
version = aVersion;
}
/**
* Sets the satellite version in epoch, version, release format.
* @param e Epoch can be null.
* @param v Version
* @param r Release
*/
public void setVersion(String e, String v, String r) {
setVersion(PackageEvrFactory.lookupOrCreatePackageEvr(e, v, r));
}
/**
* @return the server
*/
public Server getServer() {
return server;
}
/**
* @param s the server to set
*/
public void setServer(Server s) {
this.server = s;
}
}