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

net.anotheria.anoprise.dataspace.DataspaceService 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;

import net.anotheria.anoprise.metafactory.Service;

/**
 * DataspaceService interface.
 * 
 * @author lrosenberg
 */
public interface DataspaceService extends Service {

	/**
	 * Loads a dataspace from service. If there is no dataspace instance it will be created.
	 * 
	 * @param userId
	 *            - user id
	 * @param dataspaceType
	 *            - dataspace id
	 * @return dataspace
	 * @throws DataspaceServiceException
	 */
	Dataspace getDataspace(String userId, DataspaceType dataspaceType) throws DataspaceServiceException;

	/**
	 * Save a given dataspace.
	 * 
	 * @param dataspace
	 *            - dataspace
	 * @throws DataspaceServiceException
	 */
	void saveDataspace(Dataspace dataspace) throws DataspaceServiceException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy