use of org.jbei.ice.lib.net.RemoteContact in project ice by JBEI.
the class RemoteUsers method get.
public RemoteUser get(long partnerId, String email) {
RemotePartnerDAO remotePartnerDAO = DAOFactory.getRemotePartnerDAO();
RemotePartner remotePartner = remotePartnerDAO.get(partnerId);
if (remotePartner == null)
return null;
RemoteContact remoteContact = new RemoteContact();
AccountTransfer accountTransfer = remoteContact.getUser(remotePartner.getUrl(), email, remotePartner.getApiKey());
if (accountTransfer == null)
return null;
RemoteUser remoteUser = new RemoteUser();
remoteUser.setPartner(remotePartner.toDataTransferObject());
remoteUser.setUser(accountTransfer);
return remoteUser;
}
Aggregations