Presentation is loading. Please wait.

Presentation is loading. Please wait.

Solution Overview Download full dossier (using BitTorrent Protocol) Tool: API-CR Client (explained in this presentation)

Similar presentations


Presentation on theme: "Solution Overview Download full dossier (using BitTorrent Protocol) Tool: API-CR Client (explained in this presentation)"— Presentation transcript:

1 Solution Overview Download full dossier (using BitTorrent Protocol) Tool: API-CR Client (explained in this presentation)

2 Use requirements PC / Server with OS (Windows, Linux, Unix, Mac...) and Java 7 installed Make sure you have connectivity with Eudranet. Set up the configuration files Settings.properties and To_Download.xlsx Download from http://listadomedicamentos.aemps.gob.es/apicr-client-3.1-dist.ziphttp://listadomedicamentos.aemps.gob.es/apicr-client-3.1-dist.zip and unzip the solution in a folder Run the following command from the folder created in previous step java -jar apicr-3.1.jar To automate the execution it is convenient to create a programmed task in your computer that be executed periodically (i.e. daily) Content of the apicr-client-3.1-dist.zip apicr-client-3.1-dist.zip

3 Section: Connection to the REST API API_DOMAIN API_SCHEMA Section: Authentication againts REST API API_USER API_PASSWORD Section: Proxy support PROXY_HOST PROXY_PORT PROXY_USER PROXY_PASSWORD The Settings.properties File: It is a text file with several parameter_name = value pairs arranged by sections Configuration files Provided by EMA. API_DOMAIN = api-cr.eudra.org API_SCHEMA = https Provided by your IT Department API_USER = CHANGEME API_PASSWORD = CHANGEME Provided by EMA. PROXY_HOST = http://proxy...http://proxy PROXY_PORT = ?? PROXY_USER = ???? PROXY_PASSWORD = ???? Needed if the API-CR Client will access to EUDRANET through a Proxy

4 Configuration files The Settings.properties File: (continue) Path for.torrent files (where to deploy them): DOWNLOAD_PATH, i.e. DOWNLOAD_PATH =./torrents/ To download all the sequences modified in the last N days. N_DAYS, i.e. N_DAYS = 1 Path of the Excel File that contains the dossiers and the sequences to download EXCEL_FILE. Blank to disable this option. The file includes three columns (dossier | full dossier | sequence to download), i.e. EXCEL_FILE =.conf//To_Download.xlsx Download full sequence or individual files PARTIAL_DOWNLOAD_LIST. Empty if you want to download the whole sequence, or a list of filenames separated by a colon if you want to download an specific set of files, i.e. PARTIAL_DOWNLOAD_LIST = index.xml, m1/eu/eu-regional.xml Resume partial downloads or re-download RESUME. The API client will download only files not previously downloaded skipping already downloaded files and resuming the partial downloads, i.e. RESUME = true

5 Configuration files Using the Excel file, “To_Download.xlsx”, available in the zip file delivered, you can specify what dossiers you want to download. Usually bussines people know in advance the products number they have to look into. 1.In the column A “Dossier” are included all the dossiers’ product numbers you want to download. 2.In the column B “Sequence #” you can indicate a explicit sequence to download or let empty to download the full dossier. If you want to download several sequences, repeat the Dossier number in several rows with the sequence numbers desired.

6 Configuration files The log4j.properties File: Text file with parameter_name = value format http://logging.apache.org/log4j/1.2/manual.html for more information about setting the log http://logging.apache.org/log4j/1.2/manual.html Use the standard configuration in the distributed package

7


Download ppt "Solution Overview Download full dossier (using BitTorrent Protocol) Tool: API-CR Client (explained in this presentation)"

Similar presentations


Ads by Google