Skip to content

Commit

Permalink
Rename parameter on registerDOI. Refs #8538.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Apr 8, 2014
1 parent edf82a7 commit df97d12
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Expand Up @@ -73,7 +73,7 @@ namespace Mantid
virtual const std::string getUploadURL(
const std::string &investigationID, const std::string &createFileName, const std::string &dataFileDescription);
/// Generate a DOI for a datafile based on the related investigation.
virtual const std::string registerDatafileDOI(const long long& investigationID);
virtual const std::string registerDatafileDOI(const long long& databaseID);

private:
/// The helper class that accesses ICAT functionality.
Expand Down
Expand Up @@ -70,7 +70,7 @@ namespace Mantid
virtual const std::string getUploadURL(
const std::string &investigationID, const std::string &createFileName, const std::string &dataFileDescription);
/// Generate a DOI for a datafile based on the related investigation.
virtual const std::string registerDatafileDOI(const long long& investigationID);
virtual const std::string registerDatafileDOI(const long long& databaseID);

private:
// Ensures human friendly error messages are provided to the user.
Expand Down
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/ICat/src/ICat3/ICat3Catalog.cpp
Expand Up @@ -119,12 +119,12 @@ namespace Mantid

/**
* Generate a DOI for a datafile based on the related investigation.
* @param investigationID :: The investigation of the datafile to register the DOI for.
* @param databaseID :: The database ID of the datafile's investigation to register the DOI for.
* @return The DOI that was generated for the datafile.
*/
const std::string ICat3Catalog::registerDatafileDOI(const long long& investigationID)
const std::string ICat3Catalog::registerDatafileDOI(const long long& databaseID)
{
UNUSED_ARG(investigationID);
UNUSED_ARG(databaseID);
throw std::runtime_error("ICat3Catalog does not support registrations of DOIs.");
}

Expand Down
6 changes: 2 additions & 4 deletions Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp
Expand Up @@ -779,13 +779,11 @@ namespace Mantid

/**
* Generate a DOI for a datafile based on the related investigation.
* @param investigationID :: The investigation of the datafile to register the DOI for.
* @param databaseID :: The database ID of the datafile's investigation to register the DOI for.
* @return The DOI that was generated for the datafile.
*/
const std::string ICat4Catalog::registerDatafileDOI(const long long& investigationID)
const std::string ICat4Catalog::registerDatafileDOI(const long long& databaseID)
{
UNUSED_ARG(investigationID);
return "";
}

/**
Expand Down

0 comments on commit df97d12

Please sign in to comment.