- All Implemented Interfaces:
- UpgradeUtilityInterface
public class GenerateGlobalIdentifiers
extends java.lang.Object
implements UpgradeUtilityInterface
Optionally upgrade all of the existing identifiers in the tables to be official
DOIs that are assigned by a DOI registration authority. This class first checks
if GUIDs should be converted to DOIs, and if so, updates all relevant
tables and resources in Metacat, and then registers each of the newly minted
identifiers with the EZID service. You must have an EZID account for this to
work properly.
Whether or not identifiers should be converted is determined by several metacat.properties.
First, only upgrade if 'guid.assignGUIDs' is true. Next, for each server registered in
the xml_replication table, only convert the documents belonging to that server if
there is a corresponding property that gives the 'shoulder' or 'prefix'' to be used to
convert existing IDs to GUIDs. For example, if servers 1 & 2 are registered in
xml_replication, then only convert the IDs for server 1 to GUIDs if the
property 'guid.ezid.doishoulder.1' defines a valid doi shoulder.
NOTE: Metacat v2.0.5 has changed the name of the systemmetadata* tables to accommodate Oracle
length restrictions. The table names have been updated in this utility to enable
users to run this utility on v2.0.5+. You can only run this version of the utility on
Metacat deployments that have been upgraded to 2.0.5+
- Author:
- jones