public class SimpleSearch extends AbstractSearch implements org.apache.cocoon.caching.CacheableProcessingComponent
collectionService, communityService, handleService, itemService, metadataExposureService, metadataFieldService, queryArgs, queryResultscontext, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url| Constructor and Description |
|---|
SimpleSearch() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBody(Body body)
build the DRI page representing the body of the search query.
|
protected void |
addFilterRow(List<DiscoverySearchFilter> filterFields,
int index,
Row row,
String selectedFilterType,
String relationalOperator,
String value) |
void |
addPageMeta(PageMeta pageMeta)
Add Page metadata.
|
protected String |
generateURL(Map<String,String> parameters)
Generate a URL to the simple search.
|
protected String |
getBasicUrl() |
protected String[] |
getFilterQueries()
Returns all the filter queries for use by discovery
This method returns more expanded filter queries then the getParameterFilterQueries
|
protected Map<String,String[]> |
getParameterFilterQueries()
Returns a list of the filter queries for use in rendering pages, creating page more urls, ....
|
protected String |
getQuery()
Get the search query from the URL parameter, if none is found the empty
string is returned.
|
protected String |
getSuggestUrl(String newQuery) |
addFilterQueriesToUrl, addMetadataField, addMetadataField, buildMainForm, buildScopeList, buildSearchControls, buildSearchResultsDivision, getFacetsList, getKey, getParameterEtAl, getParameterGroup, getParameterOrder, getParameterPage, getParameterRpp, getParameterScope, getParameterSortBy, getScope, getValidity, logSearch, performSearch, prepareQuery, recycle, renderCollection, renderCommunity, renderItem, variableScopeaddOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException, setupcreateWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMappingcharacters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, getValiditycharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitypublic void addPageMeta(PageMeta pageMeta) throws WingException, SQLException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractDSpaceTransformerpageMeta - to be added.WingException - passed through.SQLException - passed through.public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractSearchbody - to be added.SAXException - passed through.WingException - passed through.SQLException - passed through.IOException - passed through.AuthorizeException - passed through.protected void addFilterRow(List<DiscoverySearchFilter> filterFields, int index, Row row, String selectedFilterType, String relationalOperator, String value) throws WingException
WingExceptionprotected String getBasicUrl() throws SQLException
getBasicUrl in class AbstractSearchSQLExceptionprotected Map<String,String[]> getParameterFilterQueries()
AbstractSearchgetParameterFilterQueries in class AbstractSearchprotected String[] getFilterQueries()
getFilterQueries in class AbstractSearchprotected String getQuery() throws UIException
getQuery in class AbstractSearchUIException - passed through.protected String generateURL(Map<String,String> parameters) throws UIException
generateURL in class AbstractSearchparameters - URL query parameters.UIException - passed through.protected String getSuggestUrl(String newQuery) throws UIException
UIExceptionCopyright © 2016 DuraSpace. All rights reserved.