Changeset 32449 for main/trunk

Show
Ignore:
Timestamp:
13.09.2018 14:08:46 (12 months ago)
Author:
kjdon
Message:

we now pass in the GSParams class to the service cluster, so all its services can add params to it that need saving.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java

    r31061 r32449  
    3232import org.greenstone.gsdl3.util.DisplayItemUtil; 
    3333import org.greenstone.gsdl3.util.GSFile; 
     34import org.greenstone.gsdl3.util.GSParams; 
    3435import org.greenstone.gsdl3.util.GSPath; 
    3536import org.greenstone.gsdl3.util.GSXML; 
     
    105106    //protected Element plugin_item_list = null; 
    106107 
     108    /** the list of params */ 
     109    protected GSParams params = null; 
     110   
    107111    protected Element _globalFormat = null; 
    108112 
     
    142146    { 
    143147        this.router = m; 
     148    } 
     149   
     150    public void setParams(GSParams params) 
     151    { 
     152        this.params = params; 
    144153    } 
    145154 
     
    292301 
    293302    } 
     303 
    294304    /** 
    295305     * adds metadata from a metadataList into the metadata_list xml 
     
    399409        return true; 
    400410    } 
     411   
    401412    protected void clearServices() 
    402413    { 
     
    416427    /** 
    417428     * creates and configures all the services - extra_info is some more xml 
    418      * that is passed to teh service - eg used for coll config files for 
     429     * that is passed to the service - eg used for coll config files for 
    419430     * Collection 
    420431     */ 
     
    485496            if (s.configure(n, extra_info)) 
    486497            { 
     498              // store any params we need to save 
     499              if (this.params == null) { 
     500                logger.error("params is null in SC!!!!!"); 
     501              } else { 
     502                s.addServiceParameters(this.params); 
     503              } 
    487504                // find out the supported service types for this service module 
    488505                Node types = s.process(message);