Project

General

Profile

« Previous | Next » 

Revision 8025

use ObjectFormatCache instead of ObjectFormatService because we are not calling it as a CN.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1696 1696
			
1697 1697
			// find the package contents
1698 1698
			SystemMetadata sysMeta = this.getSystemMetadata(session, pid);
1699
			if (ObjectFormatService.getInstance().getFormat(sysMeta.getFormatId()).getFormatType().equals("RESOURCE")) {
1699
			if (ObjectFormatCache.getInstance().getFormat(sysMeta.getFormatId()).getFormatType().equals("RESOURCE")) {
1700 1700
				InputStream oreInputStream = this.get(session, pid);
1701 1701
				Map<Identifier, Map<Identifier, List<Identifier>>> resourceMapStructure = ResourceMapFactory.getInstance().parseResourceMap(oreInputStream);
1702 1702
				packagePids.addAll(resourceMapStructure.keySet());

Also available in: Unified diff