com.hack23.cia.service.external.riksdagen.impl
Class RiksdagenApiImpl

Package class diagram package RiksdagenApiImpl
java.lang.Object
  extended by com.hack23.cia.service.external.common.impl.AbstractXmlAgentImpl
      extended by com.hack23.cia.service.external.riksdagen.impl.RiksdagenApiImpl
All Implemented Interfaces:
RiksdagenApi

@Component
public class RiksdagenApiImpl
extends AbstractXmlAgentImpl
implements RiksdagenApi

The Class RiksdagenApiImpl.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hack23.cia.service.external.riksdagen.api.RiksdagenApi
RiksdagenApi.DocumentTypeNames
 
Field Summary
 
Fields inherited from interface com.hack23.cia.service.external.riksdagen.api.RiksdagenApi
closed, RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT, RIKSDAGEN_SQL_STR_TO_DATE_FORMAT
 
Constructor Summary
RiksdagenApiImpl()
           
 
Method Summary
 List<VoteData> getBallot(String id)
          Gets the ballot.
 List<BallotDocumentElement> getBallotList()
          Gets the ballot list.
 CommitteeProposalComponentData getCommitteeProposal(String id)
          Gets the committee proposal.
 DocumentContentData getDocumentContent(String id)
          Gets the document content.
 List<DocumentElement> getDocumentList(DocumentType documentType, int maxNumberPages)
          Gets the document list.
 List<DocumentElement> getDocumentList(DocumentType documentType, Integer year, int maxNumberPages)
          Gets the document list.
 List<DocumentElement> getDocumentList(Integer year, int maxNumberPages)
          Gets the document list.
 List<DocumentElement> getDocumentList(String changedSinceDate, int maxNumberPages)
          Gets the document list.
 List<DocumentElement> getDocumentListByPerson(String personId, int maxNumberPages)
          Gets the document list by person.
 DocumentStatusContainer getDocumentStatus(String id)
          Gets the document status.
 PersonData getPerson(String id)
          Gets the person.
 PersonContainerElement getPersonList()
          Gets the person list.
 void processDocumentList(DocumentType documentType, Integer year, ProcessDataStrategy<DocumentElement> processStrategy)
          Process document list.
 void processDocumentList(DocumentType documentType, ProcessDataStrategy<DocumentElement> processStrategy)
          Process document list.
 void processDocumentList(Integer year, ProcessDataStrategy<DocumentElement> processStrategy)
          Process document list.
 void processDocumentList(String changedSinceDate, ProcessDataStrategy<DocumentElement> processStrategy)
          Process document list.
 void processDocumentListByPerson(String personId, ProcessDataStrategy<DocumentElement> processStrategy)
          Process document list by person.
 
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

RiksdagenApiImpl

public RiksdagenApiImpl()
Method Detail

getBallot

public List<VoteData> getBallot(String id)
                         throws Exception
Description copied from interface: RiksdagenApi
Gets the ballot.

Specified by:
getBallot in interface RiksdagenApi
Parameters:
id - the id
Returns:
the ballot
Throws:
Exception - the exception

getBallotList

public List<BallotDocumentElement> getBallotList()
                                          throws Exception
Description copied from interface: RiksdagenApi
Gets the ballot list.

Specified by:
getBallotList in interface RiksdagenApi
Returns:
the ballot list
Throws:
Exception - the exception

getCommitteeProposal

public CommitteeProposalComponentData getCommitteeProposal(String id)
                                                    throws Exception
Description copied from interface: RiksdagenApi
Gets the committee proposal.

Specified by:
getCommitteeProposal in interface RiksdagenApi
Parameters:
id - the id
Returns:
the committee proposal
Throws:
Exception - the exception

getDocumentContent

public DocumentContentData getDocumentContent(String id)
                                       throws Exception
Description copied from interface: RiksdagenApi
Gets the document content.

Specified by:
getDocumentContent in interface RiksdagenApi
Parameters:
id - the id
Returns:
the document content
Throws:
Exception - the exception

getDocumentList

public List<DocumentElement> getDocumentList(DocumentType documentType,
                                             int maxNumberPages)
                                      throws Exception
Description copied from interface: RiksdagenApi
Gets the document list.

Specified by:
getDocumentList in interface RiksdagenApi
Parameters:
documentType - the document type
maxNumberPages - the max number pages
Returns:
the document list
Throws:
Exception - the exception

getDocumentList

public List<DocumentElement> getDocumentList(DocumentType documentType,
                                             Integer year,
                                             int maxNumberPages)
                                      throws Exception
Description copied from interface: RiksdagenApi
Gets the document list.

Specified by:
getDocumentList in interface RiksdagenApi
Parameters:
documentType - the document type
year - the year
maxNumberPages - the max number pages
Returns:
the document list
Throws:
Exception - the exception

getDocumentList

public List<DocumentElement> getDocumentList(Integer year,
                                             int maxNumberPages)
                                      throws Exception
Description copied from interface: RiksdagenApi
Gets the document list.

Specified by:
getDocumentList in interface RiksdagenApi
Parameters:
year - the year
maxNumberPages - the max number pages
Returns:
the document list
Throws:
Exception - the exception

getDocumentList

public List<DocumentElement> getDocumentList(String changedSinceDate,
                                             int maxNumberPages)
                                      throws Exception
Description copied from interface: RiksdagenApi
Gets the document list.

Specified by:
getDocumentList in interface RiksdagenApi
Parameters:
changedSinceDate - the changed since date
maxNumberPages - the max number pages
Returns:
the document list
Throws:
Exception - the exception

getDocumentListByPerson

public List<DocumentElement> getDocumentListByPerson(String personId,
                                                     int maxNumberPages)
                                              throws Exception
Description copied from interface: RiksdagenApi
Gets the document list by person.

Specified by:
getDocumentListByPerson in interface RiksdagenApi
Parameters:
personId - the person id
maxNumberPages - the max number pages
Returns:
the document list by person
Throws:
Exception - the exception

getDocumentStatus

public DocumentStatusContainer getDocumentStatus(String id)
                                          throws Exception
Description copied from interface: RiksdagenApi
Gets the document status.

Specified by:
getDocumentStatus in interface RiksdagenApi
Parameters:
id - the id
Returns:
the document status
Throws:
Exception - the exception

getPerson

public PersonData getPerson(String id)
                     throws Exception
Description copied from interface: RiksdagenApi
Gets the person.

Specified by:
getPerson in interface RiksdagenApi
Parameters:
id - the id
Returns:
the person
Throws:
Exception - the exception

getPersonList

public PersonContainerElement getPersonList()
                                     throws Exception
Description copied from interface: RiksdagenApi
Gets the person list.

Specified by:
getPersonList in interface RiksdagenApi
Returns:
the person list
Throws:
Exception - the exception

processDocumentList

public void processDocumentList(DocumentType documentType,
                                Integer year,
                                ProcessDataStrategy<DocumentElement> processStrategy)
                         throws Exception
Description copied from interface: RiksdagenApi
Process document list.

Specified by:
processDocumentList in interface RiksdagenApi
Parameters:
documentType - the document type
year - the year
processStrategy - the process strategy
Throws:
Exception - the exception

processDocumentList

public void processDocumentList(DocumentType documentType,
                                ProcessDataStrategy<DocumentElement> processStrategy)
                         throws Exception
Description copied from interface: RiksdagenApi
Process document list.

Specified by:
processDocumentList in interface RiksdagenApi
Parameters:
documentType - the document type
processStrategy - the process strategy
Throws:
Exception - the exception

processDocumentList

public void processDocumentList(Integer year,
                                ProcessDataStrategy<DocumentElement> processStrategy)
                         throws Exception
Description copied from interface: RiksdagenApi
Process document list.

Specified by:
processDocumentList in interface RiksdagenApi
Parameters:
year - the year
processStrategy - the process strategy
Throws:
Exception - the exception

processDocumentList

public void processDocumentList(String changedSinceDate,
                                ProcessDataStrategy<DocumentElement> processStrategy)
                         throws Exception
Description copied from interface: RiksdagenApi
Process document list.

Specified by:
processDocumentList in interface RiksdagenApi
Parameters:
changedSinceDate - the changed since date
processStrategy - the process strategy
Throws:
Exception - the exception

processDocumentListByPerson

public void processDocumentListByPerson(String personId,
                                        ProcessDataStrategy<DocumentElement> processStrategy)
                                 throws Exception
Description copied from interface: RiksdagenApi
Process document list by person.

Specified by:
processDocumentListByPerson in interface RiksdagenApi
Parameters:
personId - the person id
processStrategy - the process strategy
Throws:
Exception - the exception


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