|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs.MCRSimpleContentStoreSelector
public class MCRSimpleContentStoreSelector
Decides which MCRContentStore implementation should be used to store the content of a given file, based on the content type of the file.
| Field Summary | |
|---|---|
protected String |
defaultID
the default content store to use if no other rule matches |
protected String[] |
storeIDs
list of all storeIDs * |
protected Hashtable |
table
store lookup table where keys are file content type IDs, values are content store IDs |
| Constructor Summary | |
|---|---|
MCRSimpleContentStoreSelector()
|
|
| 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. |
String |
selectStore(MCRFileContentType type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String defaultID
protected Hashtable table
protected String[] storeIDs
| Constructor Detail |
|---|
public MCRSimpleContentStoreSelector()
| Method Detail |
|---|
public String selectStore(MCRFile file)
throws MCRException
MCRContentStoreSelector
selectStore in interface MCRContentStoreSelectorMCRExceptionpublic String selectStore(MCRFileContentType type)
public String[] getAvailableStoreIDs()
MCRContentStoreSelector
getAvailableStoreIDs in interface MCRContentStoreSelector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||