From 1dbd15c0421958368debc211e48bbd97ab101ba0 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Tue, 8 Feb 2011 20:27:22 +0000 Subject: [PATCH] Add ParamMap constructor that takes a List as argument --- .../vitro/webapp/controller/freemarker/UrlBuilder.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/UrlBuilder.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/UrlBuilder.java index fc9a195a5..0dedf7387 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/UrlBuilder.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/UrlBuilder.java @@ -17,8 +17,6 @@ import org.openrdf.model.impl.URIImpl; import edu.cornell.mannlib.vitro.webapp.beans.Individual; import edu.cornell.mannlib.vitro.webapp.beans.IndividualImpl; import edu.cornell.mannlib.vitro.webapp.beans.Portal; -import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest; -import edu.cornell.mannlib.vitro.webapp.dao.IndividualDao; import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory; import edu.cornell.mannlib.vitro.webapp.filters.PortalPickerFilter; import edu.cornell.mannlib.vitro.webapp.utils.StringUtils; @@ -187,6 +185,10 @@ public class UrlBuilder { } } + public ParamMap(List strings) { + this((String[]) strings.toArray()); + } + public ParamMap(Map map) { putAll(map); }