Interface RiksdagenDocumentApi
public interface RiksdagenDocumentApi
The Interface RiksdagenDocumentApi.
-
Method Summary
Modifier and TypeMethodDescriptioncom.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentDataGets 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.DocumentStatusContainerGets the document status.voidprocessDocumentList(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.
-
Method Details
-
getDocumentContent
com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData getDocumentContent(String id) throws DataFailureException Gets the document content.- Parameters:
id- the id- Returns:
- the document content
- Throws:
DataFailureException- the data failure exception
-
getDocumentList
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 Gets the document list.- Parameters:
documentType- the document typemaxNumberPages- the max number pages- Returns:
- the document list
- Throws:
DataFailureException- the data failure exception
-
getDocumentList
List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> getDocumentList(Integer year, int maxNumberPages) throws DataFailureException Gets the document list.- Parameters:
year- the yearmaxNumberPages- the max number pages- Returns:
- the document list
- Throws:
DataFailureException- the data failure exception
-
getDocumentList
List<com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement> getDocumentList(String changedSinceDate, String changedToDate, int maxNumberPages) throws DataFailureException Gets the document list.- Parameters:
changedSinceDate- the changed since datechangedToDate- the changed to datemaxNumberPages- the max number pages- Returns:
- the document list
- Throws:
DataFailureException- the data failure exception
-
getDocumentStatus
com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentStatusContainer getDocumentStatus(String id) throws DataFailureException Gets the document status.- Parameters:
id- the id- Returns:
- the document status
- Throws:
DataFailureException- the data failure exception
-
processDocumentList
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 Process document list.- Parameters:
changedSinceDate- the changed since datechangedToDate- the changed to dateprocessStrategy- the process strategy- Throws:
DataFailureException- the data failure exception
-