Public Member Functions | |
Archiver (ContainerServices containerServices) throws Exception | |
Creates an Archiver, i.e. | |
String | getID () throws NotAvailable |
Returns an Archive uid. | |
String[] | getUIDs (String query, String schema) throws ArchiveException |
Returns an array of all the Archive uids of stored document having a given schema and verifying a given XPath expression. | |
String | query (String aQuery, String schema, int maxRes) |
Returns a string containing pieces of XML code verifying an XPath expression in the documents stored in the Archive with a given schema. | |
String | retrieve (String uid) throws ArchiveException |
Returns an XML document stored in the archive given its Archive uid. | |
String | store (String xmlString, String schema) throws ArchiveException |
Stores an XML document in the archive. | |
void | store (String xmlString, String schema, String uid) throws ArchiveException |
Stores an XML document in the archive. | |
void | update (String uid, String xmlString) throws ArchiveException |
Updates a XML document archived with a given Archive uid. | |
void | binStore (String uid, byte[] data) throws ArchiveException |
byte[] | binRetrieve (String uid) throws ArchiveException |
void | done () throws ArchiveInternalError |
void | finalize () throws ArchiveInternalError |
Package Attributes | |
Administrative | m_admin |
alma.asdm.Archiver.Archiver | ( | ContainerServices | containerServices | ) | throws Exception |
Creates an Archiver, i.e.
a connection to a database and a collection of methods to store, retrieve, update, list XML documents stored in this databse.
containerServices | the services of the container providing the components related to the Archive. |
Exception |
String alma.asdm.Archiver.getID | ( | ) | throws NotAvailable |
Returns an Archive uid.
NotAvailable |
String [] alma.asdm.Archiver.getUIDs | ( | String | query, | |
String | schema | |||
) | throws ArchiveException |
Returns an array of all the Archive uids of stored document having a given schema and verifying a given XPath expression.
query | an XPath expression | |
schema | the name of a schema |
ArchiveException |
String alma.asdm.Archiver.query | ( | String | aQuery, | |
String | schema, | |||
int | maxRes | |||
) |
Returns a string containing pieces of XML code verifying an XPath expression in the documents stored in the Archive with a given schema.
The maximum of number of results is defined by a parameter.
aQuery | an XPath expression | |
schema | a schema's name | |
maxRes | the maximum number of results to be returned |
String alma.asdm.Archiver.retrieve | ( | String | uid | ) | throws ArchiveException |
Returns an XML document stored in the archive given its Archive uid.
uid | the Archive uid of the document to retrieve, |
ArchiveException |
String alma.asdm.Archiver.store | ( | String | xmlString, | |
String | schema | |||
) | throws ArchiveException |
Stores an XML document in the archive.
The XML document is assumed to be conform with the schema whose name is passed as a parameter. Returns the Archive uid assigned to the archived document.
xmlString | the XML document to store |
ArchiveException |
void alma.asdm.Archiver.store | ( | String | xmlString, | |
String | schema, | |||
String | uid | |||
) | throws ArchiveException |
Stores an XML document in the archive.
The XML document is assumed to be conform with the schema whose name is passed in argument.
xmlString | the XML document to store | |
schema | the name of the schema | |
archive | ID assigned to this document |
ArchiveException |
void alma.asdm.Archiver.update | ( | String | uid, | |
String | xmlString | |||
) | throws ArchiveException |
Updates a XML document archived with a given Archive uid.
uid | the Archive uid of the document to update, | |
xmlString | the new content of the document. |
ArchiveException |