org.dspace.app.webui.discovery
Class DiscoverUtility
java.lang.Object
org.dspace.app.webui.discovery.DiscoverUtility
public class DiscoverUtility
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoverUtility
public DiscoverUtility()
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.