All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anoprise.dataspace.persistence.DataspacePersistenceService Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.0
Show newest version
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