use of org.irods.jargon.core.pub.CollectionAndDataObjectListAndSearchAO in project metalnx-web by irods-contrib.
the class CollectionServiceImpl method searchCollectionAndDataObjectsByName.
@Override
public List<DataGridCollectionAndDataObject> searchCollectionAndDataObjectsByName(String collectionName) throws DataGridConnectionRefusedException {
logger.info("searchCollectionAndDataObjectsByName()");
CollectionAndDataObjectListAndSearchAO collectionAndDataObjectListAndSearchAO = irodsServices.getCollectionAndDataObjectListAndSearchAO();
List<CollectionAndDataObjectListingEntry> collectionAndDataObjects = null;
List<DataGridCollectionAndDataObject> dataGridCollectionAndDataObjects = null;
try {
collectionAndDataObjects = collectionAndDataObjectListAndSearchAO.searchCollectionsAndDataObjectsBasedOnName(collectionName);
dataGridCollectionAndDataObjects = this.mapListingEntryToDataGridCollectionAndDataObject(collectionAndDataObjects);
return dataGridCollectionAndDataObjects;
} catch (JargonException e) {
logger.error("Could not search collections: {}", e.getMessage());
}
return null;
}
Aggregations