org.dspace.browse

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » dspace » org.dspace.browse 
org.dspace.browse

Provides classes and mehtods for browsing Items in DSpace by whatever is specified in the configuration. The standard method by which you would perform a browse is as follows:

  • Create a BrowserScope object. This object holds all of the parameters of your browse request
  • Pass the BrowserScope object into the BrowseEngine object. This object should be invoked through either the browse() method or the browseMini() method
  • The BrowseEngine will pass back a BrowseInfo object which contains all the relevant details of your request

Browses only return archived Items; other Items (eg, those in the workflow system) are ignored.

Using the Browse API

An example use of the Browse API is shown below:

    // Create or obtain a context object
    Context context = new Context();

    // Create a BrowseScope object within the context
    BrowserScope scope = new BrowserScope(context);
    
    // The browse is limited to the test collection
    Collection test = Collection.find(context, someID);
    scope.setBrowseContainer(test);
    
    // Set the focus
    scope.setFocus("Test Title");
    
    // A maximum of 30 items will be returned
    scope.setResultsPerPage(30);
    
    // set ordering to DESC
    scope.setOrder("DESC");

	// now execute the browse
	BrowseEngine be = new BrowseEngine();
    BrowseInfo results = be.browse(scope);

In this case, the results might be Items with titles like:

Tehran, City of the Ages
Ten Little Indians
Tenchi Universe
Tension
Tennessee Williams
Test Title              (the focus)
Thematic Alignment
Thesis and Antithesis
...

Browse Indexes

The Browse API uses database tables to index Items based on the supplied configuration. When an Item is added to DSpace, modified or removed via the Content Management API, the indexes are automatically updated.

To rebuild the database tables for the browse (on configuration change), or to re-index just the contents of the existing tables, use the following commands from IndexBrowse:

A complete rebuild of the database and the indices:

[dspace]/dsrun org.dspace.browse.IndexBrowse -f -r

A complete re-index of the archive contents:

[dspace]/dsrun org.dspace.browse.IndexBrowse -i
Java Source File NameTypeComment
BrowseConsumer.javaClass Class for updating browse system from content events. Prototype: only Item events recognized. XXX FIXME NOTE: The Browse Consumer is INCOMPLETE because the deletion of an Item CANNOT be implemented as an event consumer: When an Item is deleted, the browse tables must be updated immediately, within the same transaction, to maintain referential consistency.
BrowseCreateDAO.javaInterface Interface for any class wishing to provide a browse storage later.
BrowseCreateDAOOracle.javaClass This class implements the BrowseCreateDAO interface for the Oracle database as associated with the default DSpace installation.
BrowseCreateDAOPostgres.javaClass This class implements the BrowseCreateDAO interface for the PostgreSQL database as associated with the default DSpace installation.
BrowseDAO.javaInterface Interface for any class wishing to interact with the Browse storage layer for Read Only operations.
BrowseDAOFactory.javaClass
BrowseDAOOracle.javaClass This class is the Oracle driver class for reading information from the Browse tables.
BrowseDAOPostgres.javaClass This class is the PostgreSQL driver class for reading information from the Browse tables.
BrowseDAOUtils.javaInterface Utility class for retrieving the size of the columns to be used in the browse tables, and applying truncation to the strings that will be inserted into the tables. Can be configured in dspace.cfg, with the following entries: webui.browse.value_columns.max - the maximum number of characters in 'value' columns (0 is unlimited) webui.browse.sort_columns.max - the maximum number of characters in 'sort' columns (0 is unlimited) webui.browse.value_columns.omission_mark - a string to append to truncated values that will be entered into the value columns (ie.
BrowseDAOUtilsDefault.javaClass Utility class for retrieving the size of the columns to be used in the browse tables, and applying truncation to the strings that will be inserted into the tables. Can be configured in dspace.cfg, with the following entries: webui.browse.value_columns.max - the maximum number of characters in 'value' columns (0 is unlimited) webui.browse.sort_columns.max - the maximum number of characters in 'sort' columns (0 is unlimited) webui.browse.value_columns.omission_mark - a string to append to truncated values that will be entered into the value columns (ie.
BrowseDAOUtilsOracle.javaClass Utility class for retrieving the size of the columns to be used in the browse tables, and applying truncation to the strings that will be inserted into the tables. Can be configured in dspace.cfg, with the following entries: webui.browse.value_columns.max - the maximum number of characters in 'value' columns (0 is unlimited) webui.browse.sort_columns.max - the maximum number of characters in 'sort' columns (0 is unlimited) webui.browse.value_columns.omission_mark - a string to append to truncated values that will be entered into the value columns (ie.
BrowseDAOUtilsPostgres.javaClass Utility class for retrieving the size of the columns to be used in the browse tables, and applying truncation to the strings that will be inserted into the tables. Can be configured in dspace.cfg, with the following entries: webui.browse.value_columns.max - the maximum number of characters in 'value' columns (0 is unlimited) webui.browse.sort_columns.max - the maximum number of characters in 'sort' columns (0 is unlimited) webui.browse.value_columns.omission_mark - a string to append to truncated values that will be entered into the value columns (ie.
BrowseEngine.javaClass This class does most of the actual grunt work of preparing a browse result.
BrowseException.javaClass
BrowseIndex.javaClass This class holds all the information about a specifically configured BrowseIndex.
BrowseInfo.javaClass The results of a Browse, including all the contextual information about the query, as well as the results and associated information to create pagable navigation.
BrowseItem.javaClass Entity class to represent an item that is being used to generate Browse results.
BrowseItemDAO.javaInterface
BrowseItemDAOOracle.javaClass
BrowseItemDAOPostgres.javaClass
BrowseOutput.javaClass Utility class to provide a wrapper for the various output possibilities from the IndexBrowse class.
BrowserScope.javaClass A class which represents the initial request to the browse system.
CrossLinks.javaClass Class to represent the configuration of the cross-linking between browse pages (for example, between the author name in one full listing to the author's list of publications).
IndexBrowse.javaClass Tool to create Browse indexes.
ItemCountDAO.javaInterface
ItemCountDAOFactory.javaClass
ItemCountDAOOracle.javaClass
ItemCountDAOPostgres.javaClass
ItemCounter.javaClass This class provides a standard interface to all item counting operations for communities and collections.
ItemCountException.javaClass
ItemListConfig.javaClass
LocaleOrderingFilter.javaClass Makes a sort string that is Locale dependent.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.