public class EuropeanaIdRegistryMongoServerImpl extends Object implements MongoServer, EuropeanaIdRegistryMongoServer
| Constructor and Description |
|---|
EuropeanaIdRegistryMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName)
Constructor of the EuropeanaIDRegistryMongoServer
|
EuropeanaIdRegistryMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection to the server
|
void |
createFailedRecord(LookupState state,
String collectionID,
String oldID,
String newId,
String xml)
Sets a value for a failed record
|
void |
deleteEuropeanaIdFromNew(String newId)
Delete all the records based on the newID
|
void |
deleteEuropeanaIdFromOld(String oldId)
Delete all the records based on the oldID
|
void |
deleteFailedRecord(String europeanaId,
String collectionID)
Deletes a failed record
|
void |
deleteFailedRecords(String collectionID)
Delete all failed records entries for a collection
|
com.google.code.morphia.Datastore |
getDatastore()
Get the datastore
|
EuropeanaIdMongoServer |
getEuropeanaIdMongoServer() |
List<Map<String,String>> |
getFailedRecords(String collectionId)
Retrieve the failed records for a collection ID
|
boolean |
isdeleted(String europeanaID)
Check if the record that corresponds to the specific europeana id is deleted
|
LookupResult |
lookupUiniqueId(String origID,
String collectionID,
String xml,
String sessionID) |
void |
markdeleted(String europeanaID,
boolean isdeleted)
Marks the specific ID as deleted
|
boolean |
newIdExists(String oldId)
Check if the record has newID based on the oldID
|
boolean |
oldIdExists(String newId)
Check if the record has oldIDs based on the newID
|
EuropeanaIdRegistry |
retrieveEuropeanaIdFromNew(String newId)
Find the EuropeanaId records based on the newId (Europeana id)
|
List<EuropeanaIdRegistry> |
retrieveEuropeanaIdFromOriginal(String originalId,
String collectionid)
Find the EuropeanaId records based on the oldId
|
EuropeanaIdRegistry |
retrieveFromOriginalXML(String orId,
String xml)
Retrieve a record from the original XML
|
void |
setDatastore(com.google.code.morphia.Datastore datastore) |
void |
updateTime(String newId,
String oldId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic EuropeanaIdRegistryMongoServerImpl(com.mongodb.Mongo mongoServer,
String databaseName)
mongoServer - The server to connect todatabaseName - The database to connect topublic EuropeanaIdMongoServer getEuropeanaIdMongoServer()
getEuropeanaIdMongoServer in interface EuropeanaIdRegistryMongoServerpublic com.google.code.morphia.Datastore getDatastore()
getDatastore in interface MongoServergetDatastore in interface EuropeanaIdRegistryMongoServerpublic void close()
close in interface MongoServerpublic LookupResult lookupUiniqueId(String origID, String collectionID, String xml, String sessionID)
lookupUiniqueId in interface EuropeanaIdRegistryMongoServerpublic void createFailedRecord(LookupState state, String collectionID, String oldID, String newId, String xml)
EuropeanaIdRegistryMongoServercreateFailedRecord in interface EuropeanaIdRegistryMongoServerpublic void deleteFailedRecord(String europeanaId, String collectionID)
EuropeanaIdRegistryMongoServerdeleteFailedRecord in interface EuropeanaIdRegistryMongoServerpublic void deleteFailedRecords(String collectionID)
EuropeanaIdRegistryMongoServerdeleteFailedRecords in interface EuropeanaIdRegistryMongoServerpublic List<EuropeanaIdRegistry> retrieveEuropeanaIdFromOriginal(String originalId, String collectionid)
EuropeanaIdRegistryMongoServerretrieveEuropeanaIdFromOriginal in interface EuropeanaIdRegistryMongoServerpublic EuropeanaIdRegistry retrieveEuropeanaIdFromNew(String newId)
EuropeanaIdRegistryMongoServerretrieveEuropeanaIdFromNew in interface EuropeanaIdRegistryMongoServernewId - The id to search forpublic boolean oldIdExists(String newId)
EuropeanaIdRegistryMongoServeroldIdExists in interface EuropeanaIdRegistryMongoServernewId - the newIDpublic EuropeanaIdRegistry retrieveFromOriginalXML(String orId, String xml)
EuropeanaIdRegistryMongoServerretrieveFromOriginalXML in interface EuropeanaIdRegistryMongoServerorId - The originalIDxml - The original XMLpublic boolean newIdExists(String oldId)
EuropeanaIdRegistryMongoServernewIdExists in interface EuropeanaIdRegistryMongoServeroldId - the oldIDpublic void deleteEuropeanaIdFromOld(String oldId)
EuropeanaIdRegistryMongoServerdeleteEuropeanaIdFromOld in interface EuropeanaIdRegistryMongoServeroldId - The id to search forpublic void deleteEuropeanaIdFromNew(String newId)
EuropeanaIdRegistryMongoServerdeleteEuropeanaIdFromNew in interface EuropeanaIdRegistryMongoServernewId - The id to search forpublic void updateTime(String newId, String oldId)
updateTime in interface EuropeanaIdRegistryMongoServerpublic List<Map<String,String>> getFailedRecords(String collectionId)
EuropeanaIdRegistryMongoServergetFailedRecords in interface EuropeanaIdRegistryMongoServercollectionId - The collection ID to usepublic void markdeleted(String europeanaID, boolean isdeleted)
EuropeanaIdRegistryMongoServermarkdeleted in interface EuropeanaIdRegistryMongoServerpublic boolean isdeleted(String europeanaID)
EuropeanaIdRegistryMongoServerisdeleted in interface EuropeanaIdRegistryMongoServerpublic void setDatastore(com.google.code.morphia.Datastore datastore)
Copyright © 2015 Europeana Foundation. All rights reserved.