fr.paris.lutece.plugins.dila.service.impl
Class DilaBatchXMLService

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.service.impl.DilaBatchXMLService
All Implemented Interfaces:
IDilaBatchXMLService

public class DilaBatchXMLService
extends Object
implements IDilaBatchXMLService

Implementation of IDilaBatchXMLService


Field Summary
static List<String> listXMLNotSupported
          List of XML file that will not be indexed
 
Constructor Summary
DilaBatchXMLService()
           
 
Method Summary
 XmlDTO buildDocument(File file, AudienceCategoryEnum typeXML)
          Transform a document in XmlDTO
 void delete()
          Delete outdated files
 void processXMLFile(File file, AudienceCategoryEnum typeXML)
          Index one file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listXMLNotSupported

public static final List<String> listXMLNotSupported
List of XML file that will not be indexed

Constructor Detail

DilaBatchXMLService

public DilaBatchXMLService()
Method Detail

processXMLFile

public void processXMLFile(File file,
                           AudienceCategoryEnum typeXML)
                    throws org.jdom2.JDOMException,
                           IOException
Description copied from interface: IDilaBatchXMLService
Index one file

Specified by:
processXMLFile in interface IDilaBatchXMLService
Parameters:
file - file to index
typeXML - type of file
Throws:
org.jdom2.JDOMException - occurs during file parsing
IOException - occurs during treatment

buildDocument

public XmlDTO buildDocument(File file,
                            AudienceCategoryEnum typeXML)
                     throws org.jdom2.JDOMException,
                            IOException
Description copied from interface: IDilaBatchXMLService
Transform a document in XmlDTO

Specified by:
buildDocument in interface IDilaBatchXMLService
Parameters:
file - source file
typeXML - type file
Returns:
the build xml
Throws:
org.jdom2.JDOMException - occurs during file parsing
IOException - occurs during treatment

delete

public void delete()
Description copied from interface: IDilaBatchXMLService
Delete outdated files

Specified by:
delete in interface IDilaBatchXMLService


Copyright © 2014 Mairie de Paris. All Rights Reserved.