2018-03-05 17:18:45 +01:00
|
|
|
package eu.eudat.services.operations;
|
2018-01-04 10:32:39 +01:00
|
|
|
|
|
|
|
import eu.eudat.dao.entities.*;
|
2018-01-09 12:31:01 +01:00
|
|
|
import eu.eudat.dao.entities.security.CredentialDao;
|
|
|
|
import eu.eudat.dao.entities.security.UserTokenDao;
|
2018-01-04 10:32:39 +01:00
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
2018-01-31 16:39:16 +01:00
|
|
|
import javax.persistence.EntityManager;
|
|
|
|
|
2018-02-01 10:08:06 +01:00
|
|
|
|
2018-01-04 10:32:39 +01:00
|
|
|
@Service("databaseRepository")
|
2018-02-08 16:54:31 +01:00
|
|
|
public class DatabaseRepositoryImpl implements DatabaseRepository {
|
2018-01-04 10:32:39 +01:00
|
|
|
|
|
|
|
private DataRepositoryDao dataRepositoryDao;
|
|
|
|
private DatasetDao datasetDao;
|
|
|
|
private DatasetProfileDao datasetProfileDao;
|
|
|
|
private DMPDao dmpDao;
|
|
|
|
private OrganisationDao organisationDao;
|
|
|
|
private ProjectDao projectDao;
|
|
|
|
private RegistryDao registryDao;
|
|
|
|
private ResearcherDao researcherDao;
|
|
|
|
private ServiceDao serviceDao;
|
|
|
|
private UserInfoDao userInfoDao;
|
2018-01-05 08:47:52 +01:00
|
|
|
private InvitationDao invitationDao;
|
2018-01-09 12:31:01 +01:00
|
|
|
private CredentialDao credentialDao;
|
|
|
|
private UserTokenDao userTokenDao;
|
2018-01-17 13:03:51 +01:00
|
|
|
private ExternalDatasetDao externalDatasetDao;
|
2018-01-31 16:39:16 +01:00
|
|
|
private UserRoleDao userRoleDao;
|
2018-02-08 16:54:31 +01:00
|
|
|
private UserDmpDao userDmpDao;
|
2018-03-19 13:40:04 +01:00
|
|
|
private ContentDao contentDao;
|
2018-01-31 16:39:16 +01:00
|
|
|
|
|
|
|
private EntityManager entityManager;
|
2018-01-17 13:03:51 +01:00
|
|
|
|
2018-01-04 10:32:39 +01:00
|
|
|
@Autowired
|
|
|
|
private void setDataRepositoryDao(DataRepositoryDao dataRepositoryDao) {
|
|
|
|
this.dataRepositoryDao = dataRepositoryDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setDatasetDao(DatasetDao datasetDao) {
|
|
|
|
this.datasetDao = datasetDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setDatasetProfileDao(DatasetProfileDao datasetProfileDao) {
|
|
|
|
this.datasetProfileDao = datasetProfileDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setDmpDao(DMPDao dmpDao) {
|
|
|
|
this.dmpDao = dmpDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setOrganisationDao(OrganisationDao organisationDao) {
|
|
|
|
this.organisationDao = organisationDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setProjectDao(ProjectDao projectDao) {
|
|
|
|
this.projectDao = projectDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setRegistryDao(RegistryDao registryDao) {
|
|
|
|
this.registryDao = registryDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setResearcherDao(ResearcherDao researcherDao) {
|
|
|
|
this.researcherDao = researcherDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setServiceDao(ServiceDao serviceDao) {
|
|
|
|
this.serviceDao = serviceDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private void setUserInfoDao(UserInfoDao userInfoDao) {
|
|
|
|
this.userInfoDao = userInfoDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DataRepositoryDao getDataRepositoryDao() {
|
|
|
|
return dataRepositoryDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DatasetDao getDatasetDao() {
|
|
|
|
return datasetDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DatasetProfileDao getDatasetProfileDao() {
|
|
|
|
return datasetProfileDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DMPDao getDmpDao() {
|
|
|
|
return dmpDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public OrganisationDao getOrganisationDao() {
|
|
|
|
return organisationDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ProjectDao getProjectDao() {
|
|
|
|
return projectDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public RegistryDao getRegistryDao() {
|
|
|
|
return registryDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ResearcherDao getResearcherDao() {
|
|
|
|
return researcherDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ServiceDao getServiceDao() {
|
|
|
|
return serviceDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public UserInfoDao getUserInfoDao() {
|
|
|
|
return userInfoDao;
|
|
|
|
}
|
2018-01-05 08:47:52 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public InvitationDao getInvitationDao() {
|
|
|
|
return invitationDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setInvitationDao(InvitationDao invitationDao) {
|
|
|
|
this.invitationDao = invitationDao;
|
|
|
|
}
|
2018-01-09 12:31:01 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public CredentialDao getCredentialDao() {
|
|
|
|
return credentialDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setCredentialDao(CredentialDao credentialDao) {
|
|
|
|
this.credentialDao = credentialDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public UserTokenDao getUserTokenDao() {
|
|
|
|
return userTokenDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setUserTokenDao(UserTokenDao userTokenDao) {
|
|
|
|
this.userTokenDao = userTokenDao;
|
|
|
|
}
|
2018-01-17 13:03:51 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public ExternalDatasetDao getExternalDatasetDao() {
|
|
|
|
return externalDatasetDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setExternalDatasetDao(ExternalDatasetDao externalDatasetDao) {
|
|
|
|
this.externalDatasetDao = externalDatasetDao;
|
|
|
|
}
|
2018-01-31 16:39:16 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public UserRoleDao getUserRoleDao() {
|
|
|
|
return userRoleDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setUserRoleDao(UserRoleDao userRoleDao) {
|
|
|
|
this.userRoleDao = userRoleDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setEntityManager(EntityManager entityManager) {
|
|
|
|
this.entityManager = entityManager;
|
|
|
|
}
|
2018-02-08 16:54:31 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public UserDmpDao getUserDmpDao() {
|
|
|
|
return userDmpDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setUserDmpDao(UserDmpDao userDmpDao) {
|
|
|
|
this.userDmpDao = userDmpDao;
|
|
|
|
}
|
2018-03-19 13:40:04 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public ContentDao getContentDao() {
|
|
|
|
return this.contentDao;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public void setContentDao(ContentDao contentDao) {
|
|
|
|
this.contentDao = contentDao;
|
|
|
|
}
|
2018-01-04 10:32:39 +01:00
|
|
|
}
|