|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.FileBasedStorage
public class FileBasedStorage
This class implements persistent storage features for AceWiki data on the basis of a simple file and folder based system.
| Constructor Summary | |
|---|---|
FileBasedStorage(java.lang.String dir)
Creates a new storage object. |
|
| Method Summary | |
|---|---|
Ontology |
getOntology(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> parameters)
Returns the ontology with the given name (or creates an empty ontology if the ontology cannot be found). |
UserBase |
getUserBase(Ontology ontology)
Returns the user base for the given ontology. |
void |
save(OntologyElement oe)
Saves the given ontology element. |
void |
save(User user)
Saves the given user. |
static java.lang.String |
serialize(java.util.List<OntologyElement> elements)
Serializes the given list of ontology elements according to the AceWiki data format. |
static java.lang.String |
serialize(OntologyElement element)
Serializes the given ontology element as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileBasedStorage(java.lang.String dir)
dir - The path at which ontologies should be stored.| Method Detail |
|---|
public Ontology getOntology(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> parameters)
getOntology in interface AceWikiStoragename - The name of the ontology.parameters - The parameters.
public void save(OntologyElement oe)
AceWikiStorage
save in interface AceWikiStorageoe - The ontology element to be saved.public static java.lang.String serialize(OntologyElement element)
element - The ontology element.
public static java.lang.String serialize(java.util.List<OntologyElement> elements)
elements - The list of ontology elements.
public UserBase getUserBase(Ontology ontology)
AceWikiStorage
getUserBase in interface AceWikiStorageontology - The ontology.
public void save(User user)
AceWikiStorage
save in interface AceWikiStorageuser - The user to be saved.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||