@Component public final class RiksdagenDocumentApiImpl extends Object implements RiksdagenDocumentApi
Constructor and Description |
---|
RiksdagenDocumentApiImpl()
Instantiates a new riksdagen document api impl.
|
Modifier and Type | Method and Description |
---|---|
com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData |
getDocumentContent(String id)
Gets the document content.
|
List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> |
getDocumentList(com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentType documentType,
int maxNumberPages)
Gets the document list.
|
List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> |
getDocumentList(Integer year,
int maxNumberPages)
Gets the document list.
|
List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> |
getDocumentList(String changedSinceDate,
String changedToDate,
int maxNumberPages)
Gets the document list.
|
com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentStatusContainer |
getDocumentStatus(String id)
Gets the document status.
|
void |
processDocumentList(String changedSinceDate,
String changedToDate,
com.hack23.cia.service.external.common.api.ProcessDataStrategy<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> processStrategy)
Process document list.
|
public RiksdagenDocumentApiImpl()
public com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData getDocumentContent(String id) throws DataFailureException
RiksdagenDocumentApi
getDocumentContent
in interface RiksdagenDocumentApi
id
- the idDataFailureException
- the data failure exceptionpublic List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> getDocumentList(com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentType documentType, int maxNumberPages) throws DataFailureException
RiksdagenDocumentApi
getDocumentList
in interface RiksdagenDocumentApi
documentType
- the document typemaxNumberPages
- the max number pagesDataFailureException
- the data failure exceptionpublic List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> getDocumentList(Integer year, int maxNumberPages) throws DataFailureException
RiksdagenDocumentApi
getDocumentList
in interface RiksdagenDocumentApi
year
- the yearmaxNumberPages
- the max number pagesDataFailureException
- the data failure exceptionpublic List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> getDocumentList(String changedSinceDate, String changedToDate, int maxNumberPages) throws DataFailureException
RiksdagenDocumentApi
getDocumentList
in interface RiksdagenDocumentApi
changedSinceDate
- the changed since datechangedToDate
- the changed to datemaxNumberPages
- the max number pagesDataFailureException
- the data failure exceptionpublic com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentStatusContainer getDocumentStatus(String id) throws DataFailureException
RiksdagenDocumentApi
getDocumentStatus
in interface RiksdagenDocumentApi
id
- the idDataFailureException
- the data failure exceptionpublic void processDocumentList(String changedSinceDate, String changedToDate, com.hack23.cia.service.external.common.api.ProcessDataStrategy<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> processStrategy) throws DataFailureException
RiksdagenDocumentApi
processDocumentList
in interface RiksdagenDocumentApi
changedSinceDate
- the changed since datechangedToDate
- the changed to dateprocessStrategy
- the process strategyDataFailureException
- the data failure exceptionCopyright © 2010–2017 www.hack23.com. All rights reserved.