Revision 6092
Added by Matt Jones almost 13 years ago
MetacatHandler.java | ||
---|---|---|
138 | 138 |
import org.dataone.service.types.ChecksumAlgorithm; |
139 | 139 |
import org.dataone.service.types.Identifier; |
140 | 140 |
import org.dataone.service.types.ObjectFormat; |
141 |
import org.dataone.service.types.Principal;
|
|
141 |
import org.dataone.service.types.Subject;
|
|
142 | 142 |
import org.dataone.service.types.SystemMetadata; |
143 | 143 |
|
144 | 144 |
import org.dataone.service.exceptions.BaseException; |
... | ... | |
3807 | 3807 |
sysMeta.setSize(sizeOfStream(inputStream)); |
3808 | 3808 |
|
3809 | 3809 |
//submitter |
3810 |
Principal principal = new Principal();
|
|
3811 |
principal.setValue((String) docInfo.get("user_owner"));
|
|
3812 |
sysMeta.setSubmitter(principal);
|
|
3813 |
sysMeta.setRightsHolder(principal);
|
|
3810 |
Subject subject = new Subject();
|
|
3811 |
subject.setValue((String) docInfo.get("user_owner"));
|
|
3812 |
sysMeta.setSubmitter(subject);
|
|
3813 |
sysMeta.setRightsHolder(subject);
|
|
3814 | 3814 |
|
3815 | 3815 |
try { |
3816 | 3816 |
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-DD"); |
Also available in: Unified diff
Modified Metacat to build against the D1_SCHEMA_0_6_1 branch of the dataone schemas by incorporating the 0.6.1-SNAPSHOT version of d1_common and d1_libclient libraries, and refactoring Metacat code references to the d1 schema changed types.