Revision 6687
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
964 | 964 |
// are we allowed? |
965 | 965 |
boolean isAllowed = false; |
966 | 966 |
CNode cn = D1Client.getCN(); |
967 |
List<Node> nodes = (List<Node>) cn.listNodes();
|
|
967 |
NodeList nodeList = cn.listNodes();
|
|
968 | 968 |
|
969 |
for (Node node : nodes) {
|
|
969 |
for (Node node : nodeList.getNodeList()) {
|
|
970 | 970 |
if ( node.getType().equals(NodeType.CN) ) { |
971 | 971 |
|
972 | 972 |
List<Subject> subjects = node.getSubjectList(); |
Also available in: Unified diff
access nodeList list correctly
https://redmine.dataone.org/issues/2049