Project

General

Profile

Task #6748

Bug #6747: TypeMarshaller.convertTypeFromType can't convert the v2.Log object to v1.Log object

Create a factory / builder class for converting versioned types.

Added by Rob Nahf about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2015-01-07
Due date:
% Done:

0%

Story Points:
Sprint:

Description

Not all v2 types can be converted using TypeMarshaller.convertTypeToType().

Propose to make a Factory class to convert between versions, and put in d1_common_java.

History

#1 Updated by Rob Nahf about 9 years ago

there's an implementation of LogV1toV2 conversion in d1_integration:

https://repository.dataone.org/software/cicore/trunk/d1_integration/src/main/java/org/dataone/integration/adapters/CommonCallAdapter.java

convertV1Log method at the end of the class.

#2 Updated by Chris Jones about 9 years ago

We are getting errors on the CN when trying to convert from V1 ObjectFormatList to V2 ObjectFormatList using the TypMarshaller. After discussing this with Jing, we're going to update Metacat code to handle the conversion for now, but this proposed factory would be the most appropriate place to convert lists from lists too.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)