Ignore:
Timestamp:
2023-10-31T12:59:50+13:00 (7 months ago)
Author:
kjdon
Message:

lets set up collectionList in configure, not every time we need it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Construct.java

    r38316 r38338  
    112112    }
    113113
    114   // in configure we set up any params that should be saved to the session. At this stage, assuming none should be saved.
    115  
     114
    116115    /** returns a specific service description */
    117116    protected Element getServiceDescription(Document doc, String service, String lang, String subset)
    118117    {
    119 
    120         Element description = doc.createElement(GSXML.SERVICE_ELEM);
     118         
     119          Element description = doc.createElement(GSXML.SERVICE_ELEM);
    121120        description.setAttribute(GSXML.TYPE_ATT, GSXML.SERVICE_TYPE_PROCESS);
    122121        description.setAttribute(GSXML.NAME_ATT, service);
     
    150149            {
    151150
    152                 this.collection_list = getCollectionList();
    153151                Element param = GSXML.createParameterDescription(doc, COL_PARAM, getTextString("param." + COL_PARAM, lang), GSXML.PARAM_TYPE_ENUM_SINGLE, null, this.collection_list, this.collection_list);
    154152                param_list.appendChild(param);
     
    687685    }
    688686
     687   
     688
    689689    /**
    690690     * configure the service module for now, all services have type=build - need
    691691     * to think about this
    692692     */
     693  // in configure we set up any params that should be saved to the session. At this stage, assuming none should be saved.
    693694    public boolean configure(Element info, Element extra_info)
    694695    {
     
    699700
    700701        logger.info("configuring GS2Construct");
     702
     703                // read thru collect folder and set up collectionList
     704                this.collection_list = getCollectionList();
    701705
    702706        Element e = null;
Note: See TracChangeset for help on using the changeset viewer.