public abstract class TemplateDAO extends Object implements DAO
Modifier and Type | Method and Description |
---|---|
abstract void |
create(String orderXmlName,
HeritrixTemplate orderXml)
Create a orderxml-template with a given name.
|
abstract boolean |
exists(String orderXmlName)
Check, if there exists a orderxml-template with a given name.
|
abstract Iterator<String> |
getAll()
Returns an iterator with all names of order.xml-templates.
|
static TemplateDAO |
getInstance()
Gets the TemplateDAO singleton.
|
Iterator<HeritrixTemplate> |
iterator()
Returns an iterator of all templates.
|
abstract HeritrixTemplate |
read(String orderXmlName)
Read an orderxml template for the named order XML.
|
abstract void |
update(String orderXmlName,
HeritrixTemplate orderXml)
Update a specific orderxml-template to contain the contents of the orderXml argument.
|
public static TemplateDAO getInstance()
public abstract HeritrixTemplate read(String orderXmlName)
orderXmlName
- The name of the order.xml documentpublic abstract Iterator<String> getAll()
public Iterator<HeritrixTemplate> iterator()
public abstract boolean exists(String orderXmlName)
orderXmlName
- a given orderxml namepublic abstract void create(String orderXmlName, HeritrixTemplate orderXml)
orderXmlName
- the given nameorderXml
- the Document containing the contents of this new orderxml-templatepublic abstract void update(String orderXmlName, HeritrixTemplate orderXml)
orderXmlName
- the name of a specific orderxml-templateorderXml
- the new contents of this templateCopyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.