org.directdemocracyportal.democracy.service.governmentloader
Class SwedishGovernmentDocumentImporterImpl

Package class diagram package SwedishGovernmentDocumentImporterImpl
java.lang.Object
  extended by org.directdemocracyportal.democracy.service.governmentloader.SwedishGovernmentDocumentImporterImpl
All Implemented Interfaces:
GovernmentImporter

@Transactional(propagation=REQUIRED)
public class SwedishGovernmentDocumentImporterImpl
extends java.lang.Object
implements GovernmentImporter

The Class SwedishGovernmentDocumentImporterImpl.


Constructor Summary
Constructor and Description
SwedishGovernmentDocumentImporterImpl(com.gargoylesoftware.htmlunit.WebClient webClient, CountryDAO countryDAO, AgentDAO agentDAO, PortalService portalService)
          Instantiates a new swedish government document importer impl.
 
Method Summary
Modifier and Type Method and Description
 void doImport()
          Do import.
 java.util.Date parseDate(java.lang.String dateStr)
          Parses the date.
 java.lang.String stripDigits(java.lang.String s)
          Strip digits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwedishGovernmentDocumentImporterImpl

public SwedishGovernmentDocumentImporterImpl(com.gargoylesoftware.htmlunit.WebClient webClient,
                                             CountryDAO countryDAO,
                                             AgentDAO agentDAO,
                                             PortalService portalService)
                                      throws java.net.MalformedURLException
Instantiates a new swedish government document importer impl.

Parameters:
webClient - the web client
countryDAO - the country dao
agentDAO - the agent dao
portalService - the portal service
Throws:
java.net.MalformedURLException - the malformed url exception
Method Detail

doImport

public void doImport()
Description copied from interface: GovernmentImporter
Do import.

Specified by:
doImport in interface GovernmentImporter

parseDate

public java.util.Date parseDate(java.lang.String dateStr)
Parses the date.

Parameters:
dateStr - the date str
Returns:
the date

stripDigits

public java.lang.String stripDigits(java.lang.String s)
Strip digits.

Parameters:
s - the s
Returns:
the string


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.