Ignore:
Timestamp:
2003-07-02T14:39:36+12:00 (21 years ago)
Author:
kjdon
Message:

now uses GS2PerlConstructor constatns rather than base class constants, since they have been shifted out of the base class

File:
1 edited

Legend:

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

    r4098 r4853  
    141141
    142142    protected Element processNewCollection(Element request) {
    143     return runCommand(request, CollectionConstructor.NEW); 
     143    return runCommand(request, GS2PerlConstructor.NEW);
    144144    }
    145145   
     
    160160    }
    161161    protected Element processImportCollection(Element request) {
    162     return runCommand(request, CollectionConstructor.IMPORT);
     162    return runCommand(request, GS2PerlConstructor.IMPORT);
    163163    }
    164164
    165165    protected Element processBuildCollection(Element request) {
    166     return runCommand(request, CollectionConstructor.BUILD);
     166    return runCommand(request, GS2PerlConstructor.BUILD);
    167167    }
    168168    protected Element processActivateCollection(Element request) {
    169     Element response = runCommand(request, CollectionConstructor.ACTIVATE);
     169    Element response = runCommand(request, GS2PerlConstructor.ACTIVATE);
    170170    // this activates the collection on disk. but now we need to tell
    171171    // the MR about it. but we have to wait until the process is finished.
     
    504504    // do teh actual command
    505505    String coll_name=null;
    506     if (type==CollectionConstructor.NEW) {
     506    if (type==GS2PerlConstructor.NEW) {
    507507        String coll_title = (String)params.get(NEW_COL_TITLE_PARAM);
    508508        coll_name = createNewCollName(coll_title);
     
    516516    //create the constructor to do the work
    517517
    518     CollectionConstructor constructor = new GS2PerlConstructor("perl_build");
     518    GS2PerlConstructor constructor = new GS2PerlConstructor("perl_build");
    519519    if (!constructor.configure()) {
    520520        Text t = doc_.createTextNode(getTextString("general.configure_constructor_error", lang));
     
    622622
    623623    Element param_list = doc_.createElement(GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER);
    624     if (type == CollectionConstructor.NEW) {
     624    if (type == GS2PerlConstructor.NEW) {
    625625        Element param = doc_.createElement(GSXML.PARAM_ELEM);
    626626        param.setAttribute(GSXML.NAME_ATT, "creator");
Note: See TracChangeset for help on using the changeset viewer.