Search in sources :

Example 1 with VPDRI

use of nl.uva.cs.lobcder.resources.VPDRI in project lobcder by skoulouzis.

the class Catalogue method getPDRI.

public PDRI getPDRI(String fileUID) throws InterruptedException, IOException, URISyntaxException {
    LogicalDataWrapped logicalData = getLogicalDataWrapped(fileUID);
    // new PDRIDescr();
    PDRIDescr pdriDesc = null;
    pdriDesc = selectBestPDRI(logicalData.getPdriList());
    Logger.getLogger(Catalogue.class.getName()).log(Level.FINE, "Selected pdri: {0}", pdriDesc.getResourceUrl());
    return new VPDRI(pdriDesc.getName(), pdriDesc.getId(), pdriDesc.getResourceUrl(), pdriDesc.getUsername(), pdriDesc.getPassword(), pdriDesc.getEncrypt(), pdriDesc.getKey(), false);
}
Also used : VPDRI(nl.uva.cs.lobcder.resources.VPDRI) PDRIDescr(nl.uva.cs.lobcder.resources.PDRIDescr) LogicalDataWrapped(nl.uva.cs.lobcder.rest.wrappers.LogicalDataWrapped)

Aggregations

PDRIDescr (nl.uva.cs.lobcder.resources.PDRIDescr)1 VPDRI (nl.uva.cs.lobcder.resources.VPDRI)1 LogicalDataWrapped (nl.uva.cs.lobcder.rest.wrappers.LogicalDataWrapped)1