Class UpdateDOI

java.lang.Object
edu.ucsb.nceas.metacat.admin.upgrade.UpdateDOI
All Implemented Interfaces:
UpgradeUtilityInterface

public class UpdateDOI extends Object implements UpgradeUtilityInterface
Updates existing DOI registrations for EML versions
Author:
leinfelder, walker
  • Constructor Details

    • UpdateDOI

      public UpdateDOI() throws org.dataone.service.exceptions.ServiceFailure
      Public constructor
      Throws:
      org.dataone.service.exceptions.ServiceFailure
  • Method Details

    • upgrade

      public boolean upgrade() throws AdminException
      Update the DOI registration of all ids in this server with EML formatIds
      Specified by:
      upgrade in interface UpgradeUtilityInterface
      Throws:
      AdminException
    • upgradeById

      public boolean upgradeById(List<String> ids) throws AdminException
      Update the registration of all DOIs with the specified guids in this server
      Parameters:
      ids - - a List of DOIs to update
      Throws:
      AdminException
    • upgradeByFormatId

      public boolean upgradeByFormatId(List<String> formatIds) throws AdminException
      Update the registration of all DOIs in this server with the specified formatId
      Parameters:
      formatIds - - a List of formatIDs used to filter DOI selection
      Throws:
      AdminException