Revision 49878
Added by Antonis Lempesis over 6 years ago
PiWiApiImpl.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.repo.manager.service.controllers; |
2 | 2 |
|
3 |
import eu.dnetlib.repo.manager.shared.PiwikInfo;
|
|
3 |
import eu.dnetlib.domain.data.PiwikInfo;
|
|
4 | 4 |
import eu.dnetlib.utils.md5.MD5; |
5 | 5 |
import org.springframework.beans.factory.annotation.Autowired; |
6 | 6 |
import org.springframework.beans.factory.annotation.Qualifier; |
... | ... | |
58 | 58 |
public PiwikInfo savePiwikInfo(PiwikInfo piwikInfo) { |
59 | 59 |
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); |
60 | 60 |
jdbcTemplate.update(INSERT_PIWIK_INFO, new Object[]{piwikInfo.getRepositoryId(), piwikInfo.getSiteId(), piwikInfo.getRequestorName(), |
61 |
piwikInfo.getRequestorEmail(), piwikInfo.isApproved(), piwikInfo.getRepositoryName(), piwikInfo.getCountry(), piwikInfo.getAuthenticationToken()},
|
|
61 |
piwikInfo.getRequestorEmail(), piwikInfo.isValidated(), piwikInfo.getRepositoryName(), piwikInfo.getCountry(), piwikInfo.getAuthenticationToken()},
|
|
62 | 62 |
new int[]{Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.BOOLEAN, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR}); |
63 | 63 |
return piwikInfo; |
64 | 64 |
} |
Also available in: Unified diff
Deleted PiwikInfo class and using the one from uoa-domain