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

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

Embed Size (px)

Citation preview

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

Solution Overview

Download full dossier (using BitTorrent Protocol)

Tool: API-CR Client (explained in this presentation)

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

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.zip

and unzip the solution in a folder

• Run the following command from the folder created in previous step java -jar apicr-3.1.jarTo 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

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

• 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.orgAPI_SCHEMA = https

Provided by your IT Department

API_USER = CHANGEMEAPI_PASSWORD = CHANGEMEProvided by EMA.

PROXY_HOST = http://proxy... PROXY_PORT = ??PROXY_USER = ????PROXY_PASSWORD = ????

Needed if the API-CR Client will access to EUDRANET through a Proxy

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

Configuration filesThe 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

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

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.

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

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

Use the standard configuration in the distributed package

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