public class VocabularyMongoServerImpl extends Object implements VocabularyMongoServer
| Constructor and Description |
|---|
VocabularyMongoServerImpl() |
VocabularyMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName) |
VocabularyMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ControlledVocabularyImpl |
getControlledVocabulary(String field,
String filter)
Retrieve the mappings for a specific resource.
|
ControlledVocabularyImpl |
getControlledVocabularyByName(String name)
Retrieve a ControlledVocabulary by name
|
ControlledVocabularyImpl |
getControlledVocabularyByUri(String uri,
String name)
Retrieve the mappings for a specific resource by URI
|
com.google.code.morphia.Datastore |
getDatastore() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic VocabularyMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName)
public VocabularyMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName,
String username,
String password)
public VocabularyMongoServerImpl()
public com.google.code.morphia.Datastore getDatastore()
getDatastore in interface MongoServerpublic void close()
close in interface MongoServerpublic ControlledVocabularyImpl getControlledVocabulary(String field, String filter)
VocabularyMongoServergetControlledVocabulary in interface VocabularyMongoServerfield - - the field of the controlled vocabulary to search for (the
uri of the vocabulary is currently only supported)filter - - the value to match the fieldpublic ControlledVocabularyImpl getControlledVocabularyByUri(String uri, String name)
VocabularyMongoServergetControlledVocabularyByUri in interface VocabularyMongoServeruri - The uri to search onname - The name to compare with if the URI exists more than oncepublic ControlledVocabularyImpl getControlledVocabularyByName(String name)
VocabularyMongoServergetControlledVocabularyByName in interface VocabularyMongoServername - The name to search onCopyright © 2015 Europeana Foundation. All rights reserved.