Revision 6492
Added by Matt Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
73 | 73 |
import org.dataone.service.types.v1.Services; |
74 | 74 |
import org.dataone.service.types.v1.Session; |
75 | 75 |
import org.dataone.service.types.v1.Subject; |
76 |
import org.dataone.service.types.v1.SubjectList; |
|
76 | 77 |
import org.dataone.service.types.v1.Synchronization; |
77 | 78 |
import org.dataone.service.types.v1.SystemMetadata; |
78 | 79 |
import org.dataone.service.types.v1.util.ChecksumUtil; |
... | ... | |
603 | 604 |
|
604 | 605 |
String nodeName = null; |
605 | 606 |
String nodeId = null; |
607 |
String subject = null; |
|
606 | 608 |
String nodeDesc = null; |
607 | 609 |
String nodeTypeString = null; |
608 | 610 |
NodeType nodeType = null; |
... | ... | |
622 | 624 |
|
623 | 625 |
try { |
624 | 626 |
// get the properties of the node based on configuration information |
627 |
nodeName = PropertyService.getProperty("dataone.nodeName"); |
|
625 | 628 |
nodeId = PropertyService.getProperty("dataone.memberNodeId"); |
626 |
nodeName = PropertyService.getProperty("dataone.nodeName");
|
|
629 |
subject = PropertyService.getProperty("dataone.subject");
|
|
627 | 630 |
nodeDesc = PropertyService.getProperty("dataone.nodeDescription"); |
628 | 631 |
nodeTypeString = PropertyService.getProperty("dataone.nodeType"); |
629 | 632 |
nodeType = NodeType.convert(nodeTypeString); |
... | ... | |
666 | 669 |
NodeReference identifier = new NodeReference(); |
667 | 670 |
identifier.setValue(nodeId); |
668 | 671 |
node.setIdentifier(identifier); |
672 |
Subject s = new Subject(); |
|
673 |
s.setValue(subject); |
|
674 |
node.addSubject(s); |
|
669 | 675 |
node.setName(nodeName); |
670 | 676 |
node.setReplicate(nodeReplicate); |
671 | 677 |
node.setSynchronize(nodeSynchronize); |
Also available in: Unified diff
Added subject field to getCapabilities() call.