Project

General

Profile

Revision 6368

use correct enum method

View differences:

src/edu/ucsb/nceas/metacat/IdentifierManager.java
51 51
import org.dataone.service.types.v1.Replica;
52 52
import org.dataone.service.types.v1.ReplicationPolicy;
53 53
import org.dataone.service.types.v1.ReplicationStatus;
54
import org.dataone.service.types.v1.Session;
55 54
import org.dataone.service.types.v1.Subject;
56 55
import org.dataone.service.types.v1.SystemMetadata;
57 56

  
......
1217 1216
				sm.getDateUploaded() == null ? null: sm.getDateUploaded().getTime(),
1218 1217
				sm.getRightsHolder() == null ? null: sm.getRightsHolder().getValue(), 
1219 1218
				sm.getChecksum() == null ? null: sm.getChecksum().getValue(), 
1220
				sm.getChecksum() == null ? null: sm.getChecksum().getAlgorithm().name(), 
1219
				sm.getChecksum() == null ? null: sm.getChecksum().getAlgorithm().xmlValue(), 
1221 1220
				sm.getOriginMemberNode() == null ? null: sm.getOriginMemberNode().getValue(),
1222 1221
				sm.getAuthoritativeMemberNode() == null ? null: sm.getAuthoritativeMemberNode().getValue(), 
1223 1222
				sm.getDateSysMetadataModified() == null ? null: sm.getDateSysMetadataModified().getTime(),
......
1566 1565
                Checksum cs = new Checksum();
1567 1566
                cs.setValue(checksum);
1568 1567
                try {
1569
                	cs.setAlgorithm(ChecksumAlgorithm.valueOf(checksumAlgorithm));
1570
                    //cs.setAlgorithm(ChecksumAlgorithm.convert(checksumAlgorithm));
1568
                	//cs.setAlgorithm(ChecksumAlgorithm.valueOf(checksumAlgorithm));
1569
                    cs.setAlgorithm(ChecksumAlgorithm.convert(checksumAlgorithm));
1571 1570
                } catch (Exception e) {
1572 1571
					logMetacat.warn("could not parse checksum algorithm", e);
1573 1572
				}

Also available in: Unified diff