public class GlobalCrawlerTrapListDBDAO extends GlobalCrawlerTrapListDAO
Modifier | Constructor and Description |
---|---|
protected |
GlobalCrawlerTrapListDBDAO()
protected constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addGlobalCrawlerTraps(HeritrixTemplate orderXmlDoc)
Reads a list of all active global crawler trap expressions from the database and adds them to the crawl template
for this job.
|
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.
|
void |
delete(int id)
Deletes a crawler trap list from the database.
|
boolean |
exists(String name)
Does crawlertrap with this name already exist.
|
List<GlobalCrawlerTrapList> |
getAllActive()
Get all active crawler traps.
|
List<String> |
getAllActiveTrapExpressions()
Get a merged list (without duplicates) of all currently-active crawler trap expressions.
|
List<GlobalCrawlerTrapList> |
getAllInActive()
Get all inactive crawler traps.
|
GlobalCrawlerTrapList |
read(int id)
Get a traplist from the database.
|
void |
update(GlobalCrawlerTrapList trapList)
Update a trap list.
|
getInstance, reset
protected GlobalCrawlerTrapListDBDAO()
public List<GlobalCrawlerTrapList> getAllActive()
GlobalCrawlerTrapListDAO
getAllActive
in class GlobalCrawlerTrapListDAO
public List<GlobalCrawlerTrapList> getAllInActive()
GlobalCrawlerTrapListDAO
getAllInActive
in class GlobalCrawlerTrapListDAO
public List<String> getAllActiveTrapExpressions()
GlobalCrawlerTrapListDAO
getAllActiveTrapExpressions
in class GlobalCrawlerTrapListDAO
public int create(GlobalCrawlerTrapList trapList)
GlobalCrawlerTrapListDAO
create
in class GlobalCrawlerTrapListDAO
trapList
- The list to persistpublic void delete(int id)
GlobalCrawlerTrapListDAO
delete
in class GlobalCrawlerTrapListDAO
id
- the id of the list to be deletedpublic void update(GlobalCrawlerTrapList trapList)
update
in class GlobalCrawlerTrapListDAO
trapList
- the trap list to updatepublic GlobalCrawlerTrapList read(int id)
GlobalCrawlerTrapListDAO
read
in class GlobalCrawlerTrapListDAO
id
- the id of the traplist to be read.public boolean exists(String name)
exists
in class GlobalCrawlerTrapListDAO
name
- The name for a crawlertrappublic void addGlobalCrawlerTraps(HeritrixTemplate orderXmlDoc)
addGlobalCrawlerTraps
in class GlobalCrawlerTrapListDAO
orderXmlDoc
- The template to add crawlertraps to.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.