Changeset 27717 for main/trunk/greenstone3/src/java/org/greenstone
- Timestamp:
- 2013-06-27T16:58:25+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Construct.java
r27137 r27717 19 19 package org.greenstone.gsdl3.service; 20 20 21 import org.greenstone.gsdl3.util.*;22 import org.greenstone.gsdl3.build.*;23 import org.greenstone.util.GlobalProperties;24 25 import org.w3c.dom.Document;26 import org.w3c.dom.Node;27 import org.w3c.dom.Text;28 import org.w3c.dom.Element;29 import org.w3c.dom.NodeList;30 31 import java.util.Collections;32 import java.util.HashMap;33 import java.util.Map;34 import java.util.List;35 import java.util.ArrayList;36 21 import java.io.BufferedWriter; 37 22 import java.io.File; 38 23 import java.io.FileWriter; 39 24 import java.io.Serializable; 40 import java.lang.Thread.State; 41 import java.util.Locale; 42 43 import java.util.Timer; 44 import java.util.TimerTask; 45 46 import org.apache.log4j.*; 25 import java.util.Collections; 26 import java.util.HashMap; 27 import java.util.Map; 28 29 import org.apache.log4j.Logger; 30 import org.greenstone.gsdl3.build.GS2PerlConstructor; 31 import org.greenstone.gsdl3.build.GS2PerlListener; 32 import org.greenstone.gsdl3.util.GSFile; 33 import org.greenstone.gsdl3.util.GSParams; 34 import org.greenstone.gsdl3.util.GSPath; 35 import org.greenstone.gsdl3.util.GSStatus; 36 import org.greenstone.gsdl3.util.GSXML; 37 import org.greenstone.gsdl3.util.UserContext; 38 import org.w3c.dom.Element; 39 import org.w3c.dom.Node; 40 import org.w3c.dom.Text; 47 41 48 42 /** … … 84 78 // set of listeners for any construction commands 85 79 protected Map<String, GS2PerlListener> listeners = null; 86 protected HashMap<String, Boolean> collectionOperationMap = new HashMap<String, Boolean>(); 80 protected HashMap<String, Boolean> collectionOperationMap = new HashMap<String, Boolean>(); 87 81 88 82 public GS2Construct() … … 201 195 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 202 196 HashMap<String, Serializable> params = GSXML.extractParams(param_list, false); 197 198 if (params == null) 199 { 200 return null; 201 } 203 202 204 203 //If we have been requested to only build certain documents then we need to create a manifest file … … 760 759 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 761 760 HashMap<String, Serializable> params = GSXML.extractParams(param_list, false); 762 763 String collection = (String) params.get(COL_PARAM);761 762 String collection = (String) params.get(COL_PARAM); 764 763 765 764 if (checkCollectionIsNotBusy(collection)) … … 785 784 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 786 785 HashMap<String, Serializable> params = GSXML.extractParams(param_list, false); 787 788 String collection = (String) params.get(COL_PARAM);786 787 String collection = (String) params.get(COL_PARAM); 789 788 790 789 collectionOperationMap.remove(collection);
Note:
See TracChangeset
for help on using the changeset viewer.