Package org.dspace.browse
Class BrowseEngine
java.lang.Object
org.dspace.browse.BrowseEngine
This class does most of the actual grunt work of preparing a browse
result. It takes in to a couple of available methods (depending on your
desired browse type) a BrowserScope object, and uses this to produce a
BrowseInfo object which is sufficient to describe to the User Interface
the results of the requested browse
- Author:
- Richard Jones
-
Constructor Summary
ConstructorsConstructorDescriptionBrowseEngine(Context context) Create a new instance of the Browse engine, using the given DSpace Context object. -
Method Summary
Modifier and TypeMethodDescriptionbrowse(BrowserScope bs) Perform a standard browse, which will return a BrowseInfo object that represents the results for the current page, the total number of results, the range, and information to construct previous and next links on any web pagePerform a limited browse, which only returns the results requested, without any extraneous information.
-
Constructor Details
-
BrowseEngine
Create a new instance of the Browse engine, using the given DSpace Context object. This will automatically assign a Data Access Object for the Browse Engine, based on the brand of the provided DBMS.- Parameters:
context- the DSpace context- Throws:
BrowseException- if browse error
-
-
Method Details
-
browse
Perform a standard browse, which will return a BrowseInfo object that represents the results for the current page, the total number of results, the range, and information to construct previous and next links on any web page- Parameters:
bs- the scope of the browse- Returns:
- the results of the browse
- Throws:
BrowseException- if browse error
-
browseMini
Perform a limited browse, which only returns the results requested, without any extraneous information. To perform a full browse, use BrowseEngine.browse() above. This supports Item browse only, and does not currently support focus or values. This method is used, for example, to generate the Recently Submitted Items results.- Parameters:
bs- the scope of the browse- Returns:
- the results of the browse
- Throws:
BrowseException- if browse error
-