|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.service.external.common.impl.AbstractXmlAgentImpl com.hack23.cia.service.external.riksdagen.impl.RiksdagenApiImpl
@Component public class RiksdagenApiImpl
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 |
---|
public RiksdagenApiImpl()
Method Detail |
---|
public List<VoteData> getBallot(String id) throws Exception
RiksdagenApi
getBallot
in interface RiksdagenApi
id
- the id
Exception
- the exceptionpublic List<BallotDocumentElement> getBallotList() throws Exception
RiksdagenApi
getBallotList
in interface RiksdagenApi
Exception
- the exceptionpublic CommitteeProposalComponentData getCommitteeProposal(String id) throws Exception
RiksdagenApi
getCommitteeProposal
in interface RiksdagenApi
id
- the id
Exception
- the exceptionpublic DocumentContentData getDocumentContent(String id) throws Exception
RiksdagenApi
getDocumentContent
in interface RiksdagenApi
id
- the id
Exception
- the exceptionpublic List<DocumentElement> getDocumentList(DocumentType documentType, int maxNumberPages) throws Exception
RiksdagenApi
getDocumentList
in interface RiksdagenApi
documentType
- the document typemaxNumberPages
- the max number pages
Exception
- the exceptionpublic List<DocumentElement> getDocumentList(DocumentType documentType, Integer year, int maxNumberPages) throws Exception
RiksdagenApi
getDocumentList
in interface RiksdagenApi
documentType
- the document typeyear
- the yearmaxNumberPages
- the max number pages
Exception
- the exceptionpublic List<DocumentElement> getDocumentList(Integer year, int maxNumberPages) throws Exception
RiksdagenApi
getDocumentList
in interface RiksdagenApi
year
- the yearmaxNumberPages
- the max number pages
Exception
- the exceptionpublic List<DocumentElement> getDocumentList(String changedSinceDate, int maxNumberPages) throws Exception
RiksdagenApi
getDocumentList
in interface RiksdagenApi
changedSinceDate
- the changed since datemaxNumberPages
- the max number pages
Exception
- the exceptionpublic List<DocumentElement> getDocumentListByPerson(String personId, int maxNumberPages) throws Exception
RiksdagenApi
getDocumentListByPerson
in interface RiksdagenApi
personId
- the person idmaxNumberPages
- the max number pages
Exception
- the exceptionpublic DocumentStatusContainer getDocumentStatus(String id) throws Exception
RiksdagenApi
getDocumentStatus
in interface RiksdagenApi
id
- the id
Exception
- the exceptionpublic PersonData getPerson(String id) throws Exception
RiksdagenApi
getPerson
in interface RiksdagenApi
id
- the id
Exception
- the exceptionpublic PersonContainerElement getPersonList() throws Exception
RiksdagenApi
getPersonList
in interface RiksdagenApi
Exception
- the exceptionpublic void processDocumentList(DocumentType documentType, Integer year, ProcessDataStrategy<DocumentElement> processStrategy) throws Exception
RiksdagenApi
processDocumentList
in interface RiksdagenApi
documentType
- the document typeyear
- the yearprocessStrategy
- the process strategy
Exception
- the exceptionpublic void processDocumentList(DocumentType documentType, ProcessDataStrategy<DocumentElement> processStrategy) throws Exception
RiksdagenApi
processDocumentList
in interface RiksdagenApi
documentType
- the document typeprocessStrategy
- the process strategy
Exception
- the exceptionpublic void processDocumentList(Integer year, ProcessDataStrategy<DocumentElement> processStrategy) throws Exception
RiksdagenApi
processDocumentList
in interface RiksdagenApi
year
- the yearprocessStrategy
- the process strategy
Exception
- the exceptionpublic void processDocumentList(String changedSinceDate, ProcessDataStrategy<DocumentElement> processStrategy) throws Exception
RiksdagenApi
processDocumentList
in interface RiksdagenApi
changedSinceDate
- the changed since dateprocessStrategy
- the process strategy
Exception
- the exceptionpublic void processDocumentListByPerson(String personId, ProcessDataStrategy<DocumentElement> processStrategy) throws Exception
RiksdagenApi
processDocumentListByPerson
in interface RiksdagenApi
personId
- the person idprocessStrategy
- the process strategy
Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |