Ignore:
Timestamp:
2018-09-13T14:05:59+12:00 (6 years ago)
Author:
kjdon
Message:

params class changed, now returns false by default for shouldsave. so don't need to add any that we don't want saving in the session. turned hard coded strings into static string variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/DocumentAction.java

    r32348 r32448  
    803803    }
    804804
    805     /**
    806      * tell the param class what its arguments are if an action has its own
    807      * arguments, this should add them to the params object - particularly
    808      * important for args that should not be saved
    809      */
    810     public boolean addActionParameters(GSParams params)
    811     {
    812         params.addParameter(GOTO_PAGE_ARG, false);
    813         params.addParameter(ENRICH_DOC_ARG, false);
    814         params.addParameter(EXPAND_DOCUMENT_ARG, false);
    815         params.addParameter(EXPAND_CONTENTS_ARG, false);
    816         params.addParameter(REALISTIC_BOOK_ARG, false);
    817 
    818         return true;
    819     }
    820805   
    821806    private boolean needSectionContent(HashMap<String, Serializable> params) {
Note: See TracChangeset for help on using the changeset viewer.