Package | Description |
---|---|
org.bbaw.pdr.padre |
Commands which make use of the PaDRe API.
|
org.bbaw.pdr.solr |
Implementations of read/write access to PDR's Apache Solr index.
|
org.bbaw.pdr.utils |
Common resources for the access to instances of the PDR.
|
Modifier and Type | Class and Description |
---|---|
class |
PadreCommandException
Error signalising in case of problems while communicating with
PaDRe server.
|
Modifier and Type | Class and Description |
---|---|
class |
SolrCommandException
Error signalising in case of problems while communicating with
PDR's Solr index.
|
Modifier and Type | Class and Description |
---|---|
class |
ValidationException
Signalises issues with structure or content of XML documents
representing PDR objects, or PDR identifiers.
|
Modifier and Type | Method and Description |
---|---|
static void |
Repository.checkRemainingTemporaryIDs(java.util.List<PDRObject> objects)
Tests if any PDR object in the provided list contains one or more
temporary ID.
|
static void |
Repository.deleteIDRange(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Purges objects of the provided range from the repository.
|
static java.util.List<java.lang.String> |
Repository.getModifiedObjects(int instance,
int project,
java.lang.String timestamp)
Returns all PDR objects of the given project which were modified since the
provided timestamp.
|
static java.util.List<java.lang.String> |
Repository.getObjects(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Returns all PDR objects of the given type and ID range.
|
static java.util.List<IDRange> |
Repository.getOccupiedObjectIDRanges(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Returns a list of occupied ID ranges in the repository.
|
static java.util.Map<java.lang.Integer,java.lang.Integer> |
Repository.getProjectSizes()
Returns a map of existing project IDs and the current number of their
objects.
|
static java.lang.String |
Repository.getTime()
Returns current timestamp from PaDRe server.
|
static Identifier |
Repository.getUserID(java.lang.String username,
int project)
Returns the PDR user ID of an user identified by username and project number.
|
static java.util.Map<Identifier,Identifier> |
Repository.ingestObjects(int instance,
int project,
java.util.List<java.lang.String> objects)
Ingests provided new PDR objects (with temporary IDs) into the repository and
returns a map from temporary to persistent IDs.
|
static java.util.List<java.lang.String> |
Repository.modifyObjects(int instance,
int project,
java.util.List<java.lang.String> objects,
boolean forceOverwrite)
Tries to store modified PDR object in the repository.
|
static boolean |
Repository.tryLockIndex()
Tries to lock the index component of the repository.
|
static boolean |
Repository.trylockStorage()
Tries to lock the storage component of the repository.
|
static boolean |
Repository.tryLockStorageAndIndex()
Tries to lock both storage, and index component of the repository.
|