net.anotheria.anoprise.dataspace.persistence.DataspacePersistenceService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ano-prise Show documentation
Show all versions of ano-prise Show documentation
Collection of utils for different enterprise class projects. Among other stuff contains
Caches, Mocking, DualCrud, MetaFactory and SessionDistributorService. Visit https://opensource.anotheria.net for details.
package net.anotheria.anoprise.dataspace.persistence;
import net.anotheria.anoprise.dataspace.Dataspace;
import net.anotheria.anoprise.dataspace.DataspaceType;
/**
* DataspacePersistenceService interface.
*
* @author lrosenberg
*/
public interface DataspacePersistenceService {
/**
* Load dataspace from persistence by given userId and dataspaceId.
*
* @param userId
* - user id
* @param dataspaceType
* - dataspace type
* @return loaded dataspace
* @throws DataspacePersistenceServiceException
*/
Dataspace loadDataspace(String userId, DataspaceType dataspaceType) throws DataspacePersistenceServiceException;
/**
* Save given dataspace in persistence.
*
* @param dataspace
* - dataspace
* @throws DataspacePersistenceServiceException
*/
void saveDataspace(Dataspace dataspace) throws DataspacePersistenceServiceException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy