@WebServlet(value="/admin/buildCollectionIndex") public class CollectionDAO extends FachRefServlet implements org.quartz.Job
| Constructor and Description |
|---|
CollectionDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildIndex()
reads in the collections from a collections.xml file and builds the corresponding index.
|
void |
doGetPost(org.mycore.frontend.servlets.MCRServletJob job)
updates the index of collections
|
void |
execute(org.quartz.JobExecutionContext context)
execute method to be called by the quartz framework.
|
Collection |
getCollectionByMapName(java.lang.String map)
retrieves a
Collection from the database by the name of the corresponding map. |
Collection |
getCollectionByName(java.lang.String name)
retrieves a
Collection from the database by the name of the collection. |
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
doGetPost in class org.mycore.frontend.servlets.MCRServletjob - MCRServletJobjava.io.IOException - exception while reading systematik.xml file from diskorg.jdom2.JDOMException - exception upon parsing the systematik.xml filepublic void execute(org.quartz.JobExecutionContext context)
execute in interface org.quartz.Jobcontext - job execution context from the quartz frameworkpublic Collection getCollectionByName(java.lang.String name)
Collection from the database by the name of the collection.name - the name of the collectionCollection objectpublic Collection getCollectionByMapName(java.lang.String map)
Collection from the database by the name of the corresponding map.map - the file name of the map depicting the floorCollection objectpublic void buildIndex()
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