Revision 6970
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
25 | 25 |
*/ |
26 | 26 |
package edu.ucsb.nceas.metacat.dataone; |
27 | 27 |
|
28 |
import java.io.BufferedInputStream; |
|
29 | 28 |
import java.io.File; |
30 | 29 |
import java.io.IOException; |
31 | 30 |
import java.io.InputStream; |
... | ... | |
56 | 55 |
import org.dataone.eml.EMLDocument.DistributionMetadata; |
57 | 56 |
import org.dataone.ore.ResourceMapFactory; |
58 | 57 |
import org.dataone.service.exceptions.BaseException; |
59 |
import org.dataone.service.exceptions.InvalidRequest; |
|
60 |
import org.dataone.service.exceptions.InvalidSystemMetadata; |
|
61 |
import org.dataone.service.exceptions.InvalidToken; |
|
62 |
import org.dataone.service.exceptions.NotAuthorized; |
|
63 | 58 |
import org.dataone.service.exceptions.NotFound; |
64 |
import org.dataone.service.exceptions.NotImplemented; |
|
65 |
import org.dataone.service.exceptions.ServiceFailure; |
|
66 | 59 |
import org.dataone.service.types.v1.AccessPolicy; |
67 | 60 |
import org.dataone.service.types.v1.Checksum; |
68 | 61 |
import org.dataone.service.types.v1.Identifier; |
... | ... | |
162 | 155 |
} catch (Exception e) { |
163 | 156 |
logMetacat.debug("No system metadata found in hz: " + e.getMessage()); |
164 | 157 |
|
158 |
} |
|
159 |
|
|
160 |
if (sysMeta == null) { |
|
165 | 161 |
// create system metadata |
166 | 162 |
sysMeta = new SystemMetadata(); |
167 | 163 |
sysMeta.setIdentifier(identifier); |
Also available in: Unified diff
create system metadata object if it wasn't found in HZ