Package | Description |
---|---|
org.bbaw.pdr.allies |
Classes in this package provide connectivity to PDR's server-side.
|
org.bbaw.pdr.allies.client |
Client features of the PDR-ALLIES interface.
|
org.bbaw.pdr.allies.error |
Error signals of PDR-Allies client or server.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.axiom.om.OMElement |
Tools.getAlliesResponseElement(org.apache.http.HttpResponse httpResponse)
Returns root element of PDR-Allies response element form provided HTTP response.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.http.impl.client.CloseableHttpClient |
Tools.buildHttpClient()
Returns a closeable HTTP(S) client.
|
static boolean |
Utilities.checkServerVersion(java.lang.String expected)
Checks if server side version equals or is greater than a given version
number (pattern: 0.0.0).
|
static org.apache.axiom.om.OMElement |
Tools.getAlliesResponseElement(org.apache.http.HttpResponse httpResponse)
Retruns the PDR-Allies response Element from incoming HTTP response.
|
static java.lang.String |
Utilities.getCategories(java.lang.String provider)
Returns the categories of a given provider.
|
static java.util.List<java.lang.String> |
Utilities.getCategoryProviders()
Returns available category providers.
|
static java.util.List<java.lang.String> |
Repository.getModifiedObjects(int instance,
int project,
java.lang.String timestamp)
Returns objects which were modified since a given timestamp (format:
0000-00-00T00:00:00 ). |
static java.util.Vector<java.lang.String> |
Utilities.getObjects(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Returns all available PDR objects within given range.
|
static java.util.List<IDRange> |
Utilities.getOccupiedObjectIDRanges(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Returns occupied ID ranges in given boundaries.
|
static java.util.Map<java.lang.Integer,java.lang.Integer> |
Repository.getProjectSizes()
Returns a map of available project IDs to the corresponding object
counts.
|
static java.lang.String |
Utilities.getServerVersion()
Returns server side's version information.
|
static java.lang.String |
Repository.getTime()
Returns current PDR server time.
|
static java.lang.String |
Repository.getUserID(java.lang.String username,
int project)
Returns PDR user ID connected to provided username and project.
|
static java.util.Map<Identifier,Identifier> |
Repository.ingestObjects(int instance,
int project,
java.util.List<java.lang.String> objects)
Ingests the provided new objects into the repository and returns a
mapping of former temporary to then persistent IDs.
|
static java.util.List<java.lang.String> |
Repository.modifyObjects(int instance,
int project,
java.util.List<java.lang.String> objects,
boolean force)
Writes modified objects to the repository.
|
static void |
Utilities.removeCategories(java.lang.String provider)
Deletes categories of given provider on server-side.
|
static void |
Utilities.setCategories(java.lang.String categories,
java.lang.String provider)
Stores categories of given provider on server-side.
|
Modifier and Type | Class and Description |
---|---|
class |
PDRIndexException
Signalises errors during communication with the index module.
|
class |
PDRStorageException
Signalises errors during communication with the database back-end.
|
class |
PDRValidationException
Signalises errors in submitted PDR objects.
|