/** @see org.gbif.portal.service.DataResourceManager#getNubDataResource() */ public DataResourceDTO getNubDataResource() throws ServiceException { DataResource dataResource = dataResourceDAO.getDataResourceFor(nubDataResourceId); return (DataResourceDTO) dataResourceDTOFactory.createDTO(dataResource); }
/** @see org.gbif.portal.service.DataResourceManager#getDataResourceFor(java.lang.String) */ public DataResourceDTO getDataResourceFor(String dataResourceKey) throws ServiceException { Long dataResourceId = parseKey(dataResourceKey); DataResource dataResource = dataResourceDAO.getDataResourceFor(dataResourceId); return (DataResourceDTO) dataResourceDTOFactory.createDTO(dataResource); }