com.hack23.cia.service.external.itsyourparliament.impl
Class ItsYourParliamentEuApiImpl

Package class diagram package ItsYourParliamentEuApiImpl
java.lang.Object
  extended by com.hack23.cia.service.external.common.impl.AbstractXmlAgentImpl
      extended by com.hack23.cia.service.external.itsyourparliament.impl.ItsYourParliamentEuApiImpl
All Implemented Interfaces:
ItsYourParliamentEuApi

@Component
public class ItsYourParliamentEuApiImpl
extends AbstractXmlAgentImpl
implements ItsYourParliamentEuApi

The Class ItsYourParliamentEuApiImpl.


Constructor Summary
ItsYourParliamentEuApiImpl()
           
 
Method Summary
 List<Countrydetails> getCountries(String accessKey, boolean current)
          Gets the countries.
 CountryinfoEuElement getCountryInfo(BigInteger id, String accessKey, boolean current)
          Gets the country info.
 MepinfoEuElement getMepInfo(String mepId, String accessKey, boolean current)
          Gets the mep info.
 VoteinfoEuElement getVoteInfo(String voteId, String accessKey, boolean current)
          Gets the vote info.
 VotesEuData getVotes(String year, String accessKey, boolean current)
          Gets the votes.
 
Methods inherited from class com.hack23.cia.service.external.common.impl.AbstractXmlAgentImpl
retriveContent, setNameSpaceOnXmlStream, unmarshallXml, unmarshallXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItsYourParliamentEuApiImpl

public ItsYourParliamentEuApiImpl()
Method Detail

getCountries

public List<Countrydetails> getCountries(String accessKey,
                                         boolean current)
                                  throws Exception
Description copied from interface: ItsYourParliamentEuApi
Gets the countries.

Specified by:
getCountries in interface ItsYourParliamentEuApi
Parameters:
accessKey - the access key
current - the current
Returns:
the countries
Throws:
Exception - the exception

getCountryInfo

public CountryinfoEuElement getCountryInfo(BigInteger id,
                                           String accessKey,
                                           boolean current)
                                    throws Exception
Description copied from interface: ItsYourParliamentEuApi
Gets the country info.

Specified by:
getCountryInfo in interface ItsYourParliamentEuApi
Parameters:
id - the id
accessKey - the access key
current - the current
Returns:
the country info
Throws:
Exception - the exception

getMepInfo

public MepinfoEuElement getMepInfo(String mepId,
                                   String accessKey,
                                   boolean current)
                            throws Exception
Description copied from interface: ItsYourParliamentEuApi
Gets the mep info.

Specified by:
getMepInfo in interface ItsYourParliamentEuApi
Parameters:
mepId - the mep id
accessKey - the access key
current - the current
Returns:
the mep info
Throws:
Exception - the exception

getVoteInfo

public VoteinfoEuElement getVoteInfo(String voteId,
                                     String accessKey,
                                     boolean current)
                              throws Exception
Description copied from interface: ItsYourParliamentEuApi
Gets the vote info.

Specified by:
getVoteInfo in interface ItsYourParliamentEuApi
Parameters:
voteId - the vote id
accessKey - the access key
current - the current
Returns:
the vote info
Throws:
Exception - the exception

getVotes

public VotesEuData getVotes(String year,
                            String accessKey,
                            boolean current)
                     throws Exception
Description copied from interface: ItsYourParliamentEuApi
Gets the votes.

Specified by:
getVotes in interface ItsYourParliamentEuApi
Parameters:
year - the year
accessKey - the access key
current - the current
Returns:
the votes
Throws:
Exception - the exception


Copyright © 2008-2011 www.hack23.com. All Rights Reserved.