@WebServlet(value="/admin/buildNotationIndex") public class NotationDAO extends FachRefServlet implements org.quartz.Job
| Constructor and Description |
|---|
NotationDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildIndexfromGHBSYS()
reads in the notations from a list of systematik.xml files and builds the corresponding index.
|
void |
doGetPost(org.mycore.frontend.servlets.MCRServletJob job)
updates the index of
Notation and NotationsPerSubject |
void |
execute(org.quartz.JobExecutionContext context)
execute method to be called by the quartz framework.
|
static java.util.List<Notation> |
getNotationsForSubjectID(java.lang.String subjectID)
retrieves a list of
Notation-objects from the index of notations by a given subject ID. |
static java.util.List<Notation> |
getNotationsList(java.util.Hashtable<java.lang.String,java.lang.String> notationsRange)
retrieves a list of
Notation-objects from the index of notations. |
static java.util.List<Notation> |
getNotationsList(java.lang.String notations)
retrieves a list of
Notation-objects from the index of notations. |
static java.lang.String |
getNotationsRange(java.lang.String subjectID)
retrieves a the range of notations for a given subject ID
|
getParameter, prepareOutput, prepareOutput, prepareOutput, sendOutputdoGet, doPost, encodeURL, getLayoutService, getProperty, getServletBaseURL, getSession, initpublic void doGetPost(org.mycore.frontend.servlets.MCRServletJob job)
throws java.io.IOException,
org.jdom2.JDOMException
Notation and NotationsPerSubjectdoGetPost in class org.mycore.frontend.servlets.MCRServletjob - MCRServletJobjava.io.IOExceptionorg.jdom2.JDOMExceptionpublic void execute(org.quartz.JobExecutionContext context)
execute in interface org.quartz.Jobcontext - job execution context from the quartz frameworkpublic static java.util.List<Notation> getNotationsList(java.lang.String notations)
Notation-objects from the index of notations. The notations may have different notations as well as regions, separated by ',' and '-' , respectively.notations - a string containing the first and last notation, separated by a '-'Notation objects.public static java.util.List<Notation> getNotationsList(java.util.Hashtable<java.lang.String,java.lang.String> notationsRange)
Notation-objects from the index of notations.notationsRange - a Hashtable containing the first ('von') and the last notation ('bis')Notation objectspublic static java.lang.String getNotationsRange(java.lang.String subjectID)
subjectID - the subject IDpublic static java.util.List<Notation> getNotationsForSubjectID(java.lang.String subjectID)
Notation-objects from the index of notations by a given subject ID.subjectID - the subject IDNotation objects.public void buildIndexfromGHBSYS()
throws java.io.IOException,
org.jdom2.JDOMException
java.io.IOException - exception while reading systematik.xml file from diskorg.jdom2.JDOMException - exception upon parsing the systematik.xml file