org.dspace.app.webui.discovery
Class DiscoverUtility

java.lang.Object
  extended by org.dspace.app.webui.discovery.DiscoverUtility

public class DiscoverUtility
extends Object


Constructor Summary
DiscoverUtility()
           
 
Method Summary
static DiscoverQuery getDiscoverAutocomplete(Context context, javax.servlet.http.HttpServletRequest request, DSpaceObject scope)
          Build the DiscoverQuery object for an autocomplete search using parameters in the request
static DiscoverQuery getDiscoverQuery(Context context, javax.servlet.http.HttpServletRequest request, DSpaceObject scope, boolean enableFacet)
          Build a DiscoverQuery object using the parameter in the request
static List<String[]> getFilters(javax.servlet.http.HttpServletRequest request)
           
static DSpaceObject getSearchScope(Context context, javax.servlet.http.HttpServletRequest request)
          Get the scope of the search using the parameter found in the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoverUtility

public DiscoverUtility()
Method Detail

getSearchScope

public static DSpaceObject getSearchScope(Context context,
                                          javax.servlet.http.HttpServletRequest request)
                                   throws IllegalStateException,
                                          SQLException
Get the scope of the search using the parameter found in the request.

Parameters:
context -
request -
Throws:
IllegalStateException
SQLException

getDiscoverQuery

public static DiscoverQuery getDiscoverQuery(Context context,
                                             javax.servlet.http.HttpServletRequest request,
                                             DSpaceObject scope,
                                             boolean enableFacet)
Build a DiscoverQuery object using the parameter in the request

Parameters:
request -
Returns:
the query.
Throws:
SearchServiceException

getDiscoverAutocomplete

public static DiscoverQuery getDiscoverAutocomplete(Context context,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    DSpaceObject scope)
Build the DiscoverQuery object for an autocomplete search using parameters in the request

Parameters:
context -
request -
scope -
Returns:
the query.

getFilters

public static List<String[]> getFilters(javax.servlet.http.HttpServletRequest request)


Copyright © 2013 DuraSpace. All Rights Reserved.