org.mycore.datamodel.ifs
Interface MCRContentStoreSelector

All Known Implementing Classes:
MCRSimpleContentStoreSelector

public interface MCRContentStoreSelector

Decides which MCRContentStore implementation should be used to store the content of a given file. The system configuration sets the MCRContentStoreSelector implementation that is used to make this decision by the property "MCR.IFS.ContentStoreSelector.Class". MyCoRe provides a simple implementation of this interface in the class MCRSimpleContentStoreSelector that decides based on the file content type.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Frank Lützenkirchen, Thomas Scheffler (yagee)

Method Summary
 String[] getAvailableStoreIDs()
          Returns the IDs of all ContentStores available to MyCoRe
 String selectStore(MCRFile file)
          Returns the ID of the file content store to be used to store the content of the given file.
 

Method Detail

selectStore

String selectStore(MCRFile file)
                   throws MCRException
Returns the ID of the file content store to be used to store the content of the given file. The store selector can make the decision based on the properties of the given file or based on system configuration.

Throws:
MCRException

getAvailableStoreIDs

String[] getAvailableStoreIDs()
Returns the IDs of all ContentStores available to MyCoRe

Returns:
Array of StoreIDs