public abstract class GlobalCrawlerTrapListDAO extends Object implements DAO
Constructor and Description |
---|
GlobalCrawlerTrapListDAO() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addGlobalCrawlerTraps(HeritrixTemplate orderXmlDoc)
Reads a list of all active global crawler trap expressions from the database and adds them to the crawl template.
|
abstract int |
create(GlobalCrawlerTrapList trapList)
This method creates the object in the database and has the side effect of setting the trapLists id field to the
auto-generated id in the database.
|
abstract void |
delete(int id)
Deletes a crawler trap list from the database.
|
abstract boolean |
exists(String name)
Does crawlertrap with this name already exist.
|
abstract List<GlobalCrawlerTrapList> |
getAllActive()
Get all active crawler traps.
|
abstract List<String> |
getAllActiveTrapExpressions()
Get a merged list (without duplicates) of all currently-active crawler trap expressions.
|
abstract List<GlobalCrawlerTrapList> |
getAllInActive()
Get all inactive crawler traps.
|
static GlobalCrawlerTrapListDAO |
getInstance()
Factory method to return the singleton instance of this class.
|
abstract GlobalCrawlerTrapList |
read(int id)
Get a traplist from the database.
|
static void |
reset()
Resets the singleton instance of this class.
|
abstract void |
update(GlobalCrawlerTrapList trapList)
Updates a given global crawler trap list.
|
public GlobalCrawlerTrapListDAO()
public static GlobalCrawlerTrapListDAO getInstance()
public static void reset()
public abstract List<GlobalCrawlerTrapList> getAllActive()
public abstract List<GlobalCrawlerTrapList> getAllInActive()
public abstract List<String> getAllActiveTrapExpressions()
public abstract int create(GlobalCrawlerTrapList trapList) throws ArgumentNotValid
trapList
- The list to persistArgumentNotValid
- if the trapList is null.public abstract void delete(int id) throws UnknownID
id
- the id of the list to be deletedUnknownID
- if the argument doesn not correspond to a known trap list.public abstract void update(GlobalCrawlerTrapList trapList) throws UnknownID
trapList
- the trap list to updateUnknownID
- if the id of the trapList argument does not correspond to an existing trap list in the
database.public abstract GlobalCrawlerTrapList read(int id) throws UnknownID
id
- the id of the traplist to be read.UnknownID
- if the id does not correspond to a known traplist in the database.public abstract boolean exists(String name)
name
- The name for a crawlertrappublic abstract void addGlobalCrawlerTraps(HeritrixTemplate orderXmlDoc)
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.