public class ItemEventCollector
extends java.lang.Object
Constructor and Description |
---|
ItemEventCollector(AlephConnection connection,
boolean exact,
ItemFilter filter)
Builds a new instance of a
ItemEventCollector -object. |
ItemEventCollector(AlephConnection connection,
java.lang.String shelfmark,
boolean exact,
ItemFilter filter,
java.lang.String mode)
Builds a new instance of a
ItemEventCollector -object. |
Modifier and Type | Method and Description |
---|---|
void |
addItems(ItemGetter getter,
Manifestation document)
adds the items to the document.
|
void |
addMAB(MABGetter mabGetter,
Manifestation document)
adds the bibliographics description to the document.
|
void |
addShelfmarkIfNew(java.lang.String shelfmark)
adds shelfmark to list of shelfmarks, if it is not yet on this list.
|
void |
collect()
collects all documents, items and events for the requested shelfmark or
shelfmarks.
|
void |
collectByDocument(Manifestation document)
collects all items and events for an existing
Document -object. |
java.util.Set<Manifestation> |
getDocuments() |
public ItemEventCollector(AlephConnection connection, java.lang.String shelfmark, boolean exact, ItemFilter filter, java.lang.String mode)
ItemEventCollector
-object.connection
- the connection to the Aleph databaseshelfmark
- the shelfmark of the documentexact
- boolean, indicating whether a propagation to other editions is
wantedfilter
- limits the collection and material of the items added to the
documentmode
- allowing to retrieve docuemnts by shelfmark or budgetpublic ItemEventCollector(AlephConnection connection, boolean exact, ItemFilter filter)
ItemEventCollector
-object.connection
- the connection to the Aleph databaseexact
- boolean, indicating whether a propagation to other editions is
wantedfilter
- limits the collection and material of the items added to the
documentpublic java.util.Set<Manifestation> getDocuments()
public void addShelfmarkIfNew(java.lang.String shelfmark)
shelfmark
- shelfmark to be addedpublic void collectByDocument(Manifestation document) throws java.io.UnsupportedEncodingException, java.lang.Exception
Document
-object.document
- existing document, to which the collected items and events are
addedjava.lang.Exception
- general exceptionjava.io.UnsupportedEncodingException
- exception reading the MAB datapublic void collect() throws java.lang.Exception
java.lang.Exception
- general exceptionpublic void addMAB(MABGetter mabGetter, Manifestation document) throws java.lang.Exception, java.sql.SQLException, java.io.UnsupportedEncodingException
mabGetter
- a MABGetter
-object to retrieve the bibliographic
information in MAB-format from the Aleph database.document
- existing document, to which the bibliographic information are
addedjava.lang.Exception
- general exceptionjava.sql.SQLException
- exception in connecting to Aleph databasejava.io.UnsupportedEncodingException
- exception reading MAB datapublic void addItems(ItemGetter getter, Manifestation document) throws java.lang.Exception
getter
- a ItemGetter
-object to retrieve the items from
the Aleph database.document
- existing document, to which the items are addedjava.lang.Exception
- general exception