Package org.ctan.site.services.catalogue
Class AuthorsImportService
java.lang.Object
org.ctan.site.services.catalogue.AbstractImportService<AuthorStore>
org.ctan.site.services.catalogue.AuthorsImportService
This service deals with the authors from a file.
The file encoding is UTF-8.
<authors> <author id="the-key" familyname="..." givenname="..." title="..." von="..." junior="..." female="true" died="true" > <email inactive="true" note="some remarks on the email" > email@address </email> </author> ... </authors>
- The root node is
authors
.
-
Field Summary
Fields inherited from class org.ctan.site.services.catalogue.AbstractImportService
entries, store
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorsImportService
(File entries, AuthorStore store) This is the constructor forAuthorsImportService
. -
Method Summary
Methods inherited from class org.ctan.site.services.catalogue.AbstractImportService
neq
-
Constructor Details
-
AuthorsImportService
This is the constructor forAuthorsImportService
.- Parameters:
entries
- the entries directorystore
- the authors store- Throws:
IllegalArgumentException
- in case of an I/O errorNullPointerException
- in case of a missing value
-
-
Method Details
-
drop
The methoddrop
provides means to drop some authors.- Parameters:
authorsToBeDropped
- a list of authors to be dropped
-
updateExisting
The methodupdateExisting
provides means to parse an XML file and add the authors found to the database. As a side effect a list of authors is collected which are not in the XML files.- Returns:
- a list of authors to be deleted
- Throws:
IOException
- in case of an I/O error
-