Class ActiveDocumentBean

java.lang.Object
io.goobi.viewer.managedbeans.ActiveDocumentBean
All Implemented Interfaces:
Serializable

@Named @SessionScoped public class ActiveDocumentBean extends Object implements Serializable
JSF session-scoped backing bean that opens the requested record and provides all data relevant to it. Owns the ViewManager for the current record and coordinates access to its structure elements, physical pages, TOC, and download jobs.

Lifecycle: Created once per HTTP session; a new ViewManager is instantiated each time a different record PI is requested. The bean is destroyed when the session expires.

Thread safety: Explicitly synchronised. Multiple synchronized(this) and synchronized(lock) blocks guard concurrent access to shared record state, since JSF AJAX requests and background threads (PDF/EPUB generation, TOC building) may run concurrently within the same session.

See Also: