org.directdemocracyportal.democracy.service.governmentloader
Class SwedishGovernmentImporterImpl

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

public class SwedishGovernmentImporterImpl
extends java.lang.Object
implements GovernmentImporter

The Class SwedishGovernmentImporterImpl.


Field Summary
Modifier and Type Field and Description
static java.lang.String SVERIGES_RIKSDAG
          The Constant SVERIGES_RIKSDAG.
 
Constructor Summary
Constructor and Description
SwedishGovernmentImporterImpl(com.gargoylesoftware.htmlunit.WebClient webClient, java.lang.String url, PortalService portalService)
          Instantiates a new swedish government importer impl.
 
Method Summary
Modifier and Type Method and Description
 void doImport()
          Do import.
 void importInternationalGovernments(Government government, Country country)
          Import international governments.
 void importRegiononalGovernments(Government government, Country country)
          Import regiononal governments.
 void importRegionsAndMunicipals(Government government, Country country)
          Import regions and municipals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SVERIGES_RIKSDAG

public static final java.lang.String SVERIGES_RIKSDAG
The Constant SVERIGES_RIKSDAG.

See Also:
Constant Field Values
Constructor Detail

SwedishGovernmentImporterImpl

public SwedishGovernmentImporterImpl(com.gargoylesoftware.htmlunit.WebClient webClient,
                                     java.lang.String url,
                                     PortalService portalService)
                              throws java.net.MalformedURLException
Instantiates a new swedish government importer impl.

Parameters:
webClient - the web client
url - the url
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

importRegionsAndMunicipals

public void importRegionsAndMunicipals(Government government,
                                       Country country)
                                throws java.lang.Exception
Import regions and municipals.

Parameters:
government - the government
country - the country
Throws:
java.lang.Exception - the exception

importRegiononalGovernments

public void importRegiononalGovernments(Government government,
                                        Country country)
                                 throws java.lang.Exception
Import regiononal governments.

Parameters:
government - the government
country - the country
Throws:
java.lang.Exception - the exception

importInternationalGovernments

public void importInternationalGovernments(Government government,
                                           Country country)
                                    throws java.lang.Exception
Import international governments.

Parameters:
government - the government
country - the country
Throws:
java.lang.Exception - the exception


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