Project

General

Profile

« Previous | Next » 

Revision 6033

Removed hardcoded D1 node type in ResourceHandler and added in a new 'dataone.nodeType' property. Also added 'dataone.coordinatingNodeBaseURL' property which points to the CN that stores the authoritative object format list. If this instance of Metacat is a CN, it may point to itself.

View differences:

ResourceHandler.java
738 738
        String nodeId = null;
739 739
        String nodeUrl = null;
740 740
        String nodeDesc = null;
741
        String nodeType = null;
741 742
        
742 743
        try
743 744
        {
......
746 747
            nodeUrl = PropertyService.getProperty("dataone.memberNodeId") + "/" +
747 748
                PropertyService.getProperty("application.context") + "/d1/";
748 749
            nodeDesc = PropertyService.getProperty("dataone.nodeDescription");
750
            nodeType = PropertyService.getProperty("dataone.nodeType");
749 751
        }
750 752
        catch(PropertyNotFoundException pnfe)
751 753
        {
......
761 763
        n.setBaseURL(nodeUrl);
762 764
        n.setDescription(nodeDesc);
763 765
        n.setName(nodeName + " -- WAR version WARVERSION");
764
        n.setType(NodeType.convert("mn"));
766
        n.setType(NodeType.convert(nodeType));
765 767
        
766 768
        //create the services
767 769
        Service mnCrud03 = new Service();

Also available in: Unified diff