Interface RiksdagenDocumentApi


public interface RiksdagenDocumentApi
The Interface RiksdagenDocumentApi.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData
    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
    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.
  • 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 type
      maxNumberPages - 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 year
      maxNumberPages - 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 date
      changedToDate - the changed to date
      maxNumberPages - 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 date
      changedToDate - the changed to date
      processStrategy - the process strategy
      Throws:
      DataFailureException - the data failure exception