Added support to ResourceHandler to allow the putObject method to use arbitrary guid strings as input. These strings are examined, and if they match the Metacat docid format (scope.id.rev), they are used directly. If the id is a string in another format, a new localId is generated based on the current time. Either way, a mapping is made into the identifier table to relate the original guid to the new localId. Modified DocumentUtil to generate the ids, and MCTest case to use this new utility method (to stay DRY). Tests were updated to expect these global identifiers in the putObject method.
Added support to ResourceHandler to allow the putObject method to use
arbitrary guid strings as input. These strings are examined, and if they
match the Metacat docid format (scope.id.rev), they are used directly. If
the id is a string in another format, a new localId is generated based on
the current time. Either way, a mapping is made into the identifier table
to relate the original guid to the new localId. Modified DocumentUtil to
generate the ids, and MCTest case to use this new utility method (to stay DRY).
Tests were updated to expect these global identifiers in the putObject
method.