use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.
the class PresentationPersistence method get.
public String get(String id) {
String entity = id + "-presentation";
String property = "presentation";
DatastoreText ds = Context.instance().getDatastore();
String result = ds.get(KEY_KIND, entity, property);
return result;
}
use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.
the class ModelPersistence method getXml.
public String getXml(String id) {
String entity = id + "-model";
String property = "model";
// TODO change to DatastoreText.instance()
DatastoreText ds = Context.instance().getDatastore();
String result = ds.get(KEY_KIND, entity, property);
return result;
}
use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.
the class ModelPersistence method save.
public void save(String id, String xml) {
String entity = id + "-model";
String property = "model";
// TODO change to DatastoreText.instance()
DatastoreText ds = Context.instance().getDatastore();
ds.put(KEY_KIND, entity, property, xml);
}
use of xuml.tools.datastore.DatastoreText in project xuml-tools by davidmoten.
the class PresentationPersistence method save.
public void save(String id, String xml) {
String entity = id + "-presentation";
String property = "presentation";
DatastoreText ds = Context.instance().getDatastore();
ds.put(KEY_KIND, entity, property, xml);
}
Aggregations