Skip to content
Snippets Groups Projects
Commit a532fddb authored by gpawel's avatar gpawel
Browse files

BIS-178 Metaprojects: persistence layer and public API

SVN: 26933
parent 98bf7f92
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,6 @@ import ch.systemsx.cisd.openbis.generic.server.dataaccess.IGridCustomFilterDAO; ...@@ -49,7 +49,6 @@ import ch.systemsx.cisd.openbis.generic.server.dataaccess.IGridCustomFilterDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IHibernateSearchDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IHibernateSearchDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.ILocatorTypeDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.ILocatorTypeDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMaterialDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMaterialDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMetaprojectAssignmentDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMetaprojectDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMetaprojectDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPersonDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPersonDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPostRegistrationDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPostRegistrationDAO;
...@@ -448,10 +447,4 @@ abstract class AbstractBusinessObject implements IDAOFactory ...@@ -448,10 +447,4 @@ abstract class AbstractBusinessObject implements IDAOFactory
{ {
return daoFactory.getMetaprojectDAO(); return daoFactory.getMetaprojectDAO();
} }
@Override
public IMetaprojectAssignmentDAO getMetaprojectAssignmentDAO()
{
return daoFactory.getMetaprojectAssignmentDAO();
}
} }
...@@ -115,10 +115,4 @@ public interface IDAOFactory extends IAuthorizationDAOFactory ...@@ -115,10 +115,4 @@ public interface IDAOFactory extends IAuthorizationDAOFactory
/** Returns an implementation of {@link IExternalDataManagementSystemDAO}. */ /** Returns an implementation of {@link IExternalDataManagementSystemDAO}. */
public IExternalDataManagementSystemDAO getExternalDataManagementSystemDAO(); public IExternalDataManagementSystemDAO getExternalDataManagementSystemDAO();
/** Returns an implementation of {@link IMetaprojectDAO}. */
public IMetaprojectDAO getMetaprojectDAO();
/** Returns an implementation of {@link IMetaprojectAssignmentDAO}. */
public IMetaprojectAssignmentDAO getMetaprojectAssignmentDAO();
} }
...@@ -40,7 +40,6 @@ import ch.systemsx.cisd.openbis.generic.server.dataaccess.IFileFormatTypeDAO; ...@@ -40,7 +40,6 @@ import ch.systemsx.cisd.openbis.generic.server.dataaccess.IFileFormatTypeDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IHibernateSearchDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IHibernateSearchDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.ILocatorTypeDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.ILocatorTypeDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMaterialDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMaterialDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMetaprojectAssignmentDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMetaprojectDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IMetaprojectDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPostRegistrationDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPostRegistrationDAO;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPropertyTypeDAO; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IPropertyTypeDAO;
...@@ -120,8 +119,6 @@ public final class DAOFactory extends AuthorizationDAOFactory implements IDAOFac ...@@ -120,8 +119,6 @@ public final class DAOFactory extends AuthorizationDAOFactory implements IDAOFac
private final IMetaprojectDAO metaprojectDAO; private final IMetaprojectDAO metaprojectDAO;
private final IMetaprojectAssignmentDAO metaprojectAssignmentDAO;
public DAOFactory(final DatabaseConfigurationContext context, public DAOFactory(final DatabaseConfigurationContext context,
final SessionFactory sessionFactory, HibernateSearchContext hibernateSearchContext, final SessionFactory sessionFactory, HibernateSearchContext hibernateSearchContext,
final IFullTextIndexUpdateScheduler fullTextIndexUpdateScheduler, final IFullTextIndexUpdateScheduler fullTextIndexUpdateScheduler,
...@@ -165,7 +162,6 @@ public final class DAOFactory extends AuthorizationDAOFactory implements IDAOFac ...@@ -165,7 +162,6 @@ public final class DAOFactory extends AuthorizationDAOFactory implements IDAOFac
externalDataManagementSystemDAO = externalDataManagementSystemDAO =
new ExternalDataManagementSystemDAO(sessionFactory, databaseInstance); new ExternalDataManagementSystemDAO(sessionFactory, databaseInstance);
metaprojectDAO = new MetaprojectDAO(sessionFactory, databaseInstance); metaprojectDAO = new MetaprojectDAO(sessionFactory, databaseInstance);
metaprojectAssignmentDAO = new MetaprojectAssignmentDAO(sessionFactory, databaseInstance);
} }
// //
...@@ -325,10 +321,4 @@ public final class DAOFactory extends AuthorizationDAOFactory implements IDAOFac ...@@ -325,10 +321,4 @@ public final class DAOFactory extends AuthorizationDAOFactory implements IDAOFac
{ {
return metaprojectDAO; return metaprojectDAO;
} }
@Override
public IMetaprojectAssignmentDAO getMetaprojectAssignmentDAO()
{
return metaprojectAssignmentDAO;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment