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

net.anotheria.anoprise.fs.FSService 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.fs;

/**
 * Interface of the file system service.
 * 
 * @author abolbat
 * @version 1.0, 2010/02/11
 * @param 
 *            - {@link FSSaveable} object type
 */
public interface FSService {

	/**
	 * Returns a saved instance of T.
	 * 
	 * @param ownerId
	 *            - owner id
	 * @return instance of T
	 * @throws FSServiceException
	 * @throws FSItemNotFoundException
	 */
	T read(String ownerId) throws FSServiceException;

	/**
	 * Saves an instance of T.
	 * 
	 * @param t
	 *            - instance of T
	 * @throws FSServiceException
	 */
	void save(T t) throws FSServiceException;

	/**
	 * Delete an instance of T.
	 * 
	 * @param ownerId
	 *            - owner id
	 * @throws FSServiceException
	 */
	void delete(String ownerId) throws FSServiceException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy