|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.dspace.app.xmlui.wing.AbstractWingTransformer
org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer
org.dspace.app.xmlui.aspect.artifactbrowser.AbstractSearch
public abstract class AbstractSearch
This is an abstract search page. It is a collection of search methods that are common between different search implementation. An implementer must implement at least three methods: addBody(), getQuery(), and generateURL(). See the two implementors: SimpleSearch and AdvancedSearch.
| Field Summary |
|---|
| Fields inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
|---|
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url |
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractSearch()
|
|
| Method Summary | |
|---|---|
abstract void |
addBody(Body body)
Build the resulting search DRI document. |
protected void |
buildScopeList(Select scope)
Add options to the search scope field. |
protected void |
buildSearchControls(Division div)
|
protected void |
buildSearchResultsDivision(Division search)
Attach a division to the given search division named "search-results" which contains results for this search query. |
protected abstract java.lang.String |
generateURL(java.util.Map<java.lang.String,java.lang.String> parameters)
Generate a url to the given search implementation with the associated parameters included. |
java.io.Serializable |
getKey()
Generate the unique caching key. |
protected int |
getParameterEtAl()
|
protected java.lang.String |
getParameterOrder()
|
protected int |
getParameterPage()
|
protected int |
getParameterRpp()
|
protected int |
getParameterSortBy()
|
protected abstract java.lang.String |
getQuery()
Extract the query string. |
protected QueryResults |
getQueryResults()
|
protected DSpaceObject |
getScope()
Determine the current scope. |
org.apache.excalibur.source.SourceValidity |
getValidity()
Generate the cache validity object. |
protected void |
logSearch()
|
protected void |
performSearch()
Query DSpace for a list of all items / collections / or communities that match the given search query. |
void |
recycle()
Recycle |
protected boolean |
variableScope()
Determine if the scope of the search should fixed or is changeable by the user. |
| Methods inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
|---|
addOptions, addPageMeta, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException, setup |
| Methods inherited from class org.dspace.app.xmlui.wing.AbstractWingTransformer |
|---|
createWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
|---|
characters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
|---|
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Constructor Detail |
|---|
public AbstractSearch()
| Method Detail |
|---|
public java.io.Serializable getKey()
public org.apache.excalibur.source.SourceValidity getValidity()
public abstract void addBody(Body body)
throws org.xml.sax.SAXException,
WingException,
UIException,
java.sql.SQLException,
java.io.IOException,
AuthorizeException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractDSpaceTransformerorg.xml.sax.SAXException
WingException
UIException
java.sql.SQLException
java.io.IOException
AuthorizeException
protected void buildSearchResultsDivision(Division search)
throws java.io.IOException,
java.sql.SQLException,
WingException
search - The search division to contain the search-results division.
java.io.IOException
java.sql.SQLException
WingException
protected void buildScopeList(Select scope)
throws java.sql.SQLException,
WingException
scope - The current scope field.
java.sql.SQLException
WingException
protected void performSearch()
throws java.sql.SQLException,
java.io.IOException,
UIException
java.sql.SQLException
java.io.IOException
UIException
protected DSpaceObject getScope()
throws java.sql.SQLException
java.sql.SQLExceptionprotected int getParameterPage()
protected int getParameterRpp()
protected int getParameterSortBy()
protected java.lang.String getParameterOrder()
protected int getParameterEtAl()
protected QueryResults getQueryResults()
protected boolean variableScope()
throws java.sql.SQLException
java.sql.SQLException
protected abstract java.lang.String getQuery()
throws UIException
UIException
protected abstract java.lang.String generateURL(java.util.Map<java.lang.String,java.lang.String> parameters)
throws UIException
parameters -
UIExceptionpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class AbstractDSpaceTransformer
protected void buildSearchControls(Division div)
throws WingException
WingExceptionprotected void logSearch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||