ch.uzh.ifi.attempto.acewiki.core
Interface AceWikiStorage

All Known Implementing Classes:
FileBasedStorage

public interface AceWikiStorage

This interface describes a storage object that can store ontologies and user bases in a persistent manner.

Author:
Tobias Kuhn

Method Summary
 Ontology getOntology(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> parameters)
          Returns the ontology with the respective name.
 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.
 

Method Detail

getOntology

Ontology getOntology(java.lang.String name,
                     java.util.Map<java.lang.String,java.lang.String> parameters)
Returns the ontology with the respective name.

Parameters:
name - The name of the ontology.
parameters - Parameters in case the ontology object has to be created.
Returns:
The ontology object.

save

void save(OntologyElement oe)
Saves the given ontology element.

Parameters:
oe - The ontology element to be saved.

getUserBase

UserBase getUserBase(Ontology ontology)
Returns the user base for the given ontology.

Parameters:
ontology - The ontology.
Returns:
The user base.

save

void save(User user)
Saves the given user.

Parameters:
user - The user to be saved.


Copyright 2008-2012, AceWiki developers