Contribute to the DSpace Development Fund
The newly established DSpace Development Fund supports the development of new features prioritized by DSpace Governance. For a list of planned features see the fund wiki page.
(If this page is useful, it will be moved into the DSpace documentation space.)
Purpose
The purpose of this document is to provide an overview of the way that the DSpace code base interacts with a database.
The mechanisms for interacting with the database layer changed significantly in DSpace 6.x. This document will highlight those differences.
This document will also outline additional changes that are anticipated in the development of DSpace 7.x.
org.dspace.core.Context - DSpace Context
The DSpace Context Object contains information about about the user/session interacting with DSpace code.
The context object can be queried to determine the current user and the current user's locale.
The context object can be set to a privileged mode that can bypass all authorization checks.
The context object contains a cache of objects.
Read Only Context
The Context object can be set to a read only mode for enhanced performance when processing many database objects in a read-only fashion.