Package io.goobi.viewer.controller
Class DataManager
java.lang.Object
io.goobi.viewer.controller.DataManager
DataManager class.
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldbookmarkManager
.Getter for the fieldconfiguration
.getDao()
Getter for the fielddao
.int
static DataManager
Getter for the fieldinstance
.Getter for the fieldlanguageHelper
.getModule.Getter for the fieldmodules
.Getter for the fieldoAuthResponseListener
.Getter for the fieldrecordCampaignMap
.Getter for the fieldsearchIndex
.int
getSessionCount.Getter for the fieldsessionMap
.Deprecated.apparently shut down but never usedde.intranda.monitoring.timer.TimeAnalysis
getUrlBuilder.void
injectBookmarkManager
(SessionStoreBookmarkManager bookmarkManager) injectBookmarkManager.void
injectConfiguration
(Configuration configuration) Sets custom Configuration object (used for unit testing).void
Sets custom IDAO object (used for unit testing).void
injectOAuthResponseListener.void
injectSearchIndex
(SolrSearchIndex searchIndex) Sets custom SolrSearchIndex object (used for unit testing).boolean
isModuleLoaded
(String id) isModuleLoaded.boolean
registerModule
(IModule module) registerModule.void
void
setClientManager
(ClientApplicationManager manager) void
setConnectorVersion
(String connectorVersion) void
setHotfolderFileCount
(int hotfolderFileCount) void
setIndexerVersion
(String indexerVersion) void
setRecordCampaignMap
(Map<String, List<Campaign>> recordCampaignMap) Setter for the fieldrecordCampaignMap
.void
setRestApiManager
(RestApiManager restApiManager) void
setUsageStatisticsRecorder
(UsageStatisticsRecorder usageStatisticsRecorder)
-
Method Details
-
getInstance
Getter for the field
instance
.- Returns:
- a
DataManager
object.
-
getModules
Getter for the field
modules
.- Returns:
- the modules
-
getUrlBuilder
getUrlBuilder.
- Returns:
- the urlBuilder
-
getModule
getModule.
- Parameters:
id
- aString
object.- Returns:
- a
IModule
object. - Throws:
ModuleMissingException
- if any.
-
isModuleLoaded
isModuleLoaded.
- Parameters:
id
- aString
object.- Returns:
- a boolean.
-
registerModule
registerModule.
- Parameters:
module
- aIModule
object.- Returns:
- a boolean.
-
getSessionCount
public int getSessionCount()getSessionCount.
- Returns:
- a int.
-
getSessionMap
Getter for the field
sessionMap
.- Returns:
- the sessionMap
-
getConfiguration
Getter for the field
configuration
.- Returns:
- the configuration
-
getLanguageHelper
Getter for the field
languageHelper
.- Returns:
- the languageHelper
-
getSearchIndex
Getter for the field
searchIndex
.- Returns:
- the searchIndex
-
getDao
Getter for the field
dao
.- Returns:
- the dao
- Throws:
DAOException
- if any.
-
injectConfiguration
Sets custom Configuration object (used for unit testing).- Parameters:
configuration
- aConfiguration
object.
-
injectSearchIndex
Sets custom SolrSearchIndex object (used for unit testing).- Parameters:
searchIndex
- aSolrSearchIndex
object.
-
injectDao
Sets custom IDAO object (used for unit testing).- Parameters:
dao
- aIDAO
object.
-
getBookmarkManager
Getter for the field
bookmarkManager
.- Returns:
- a
SessionStoreBookmarkManager
object.
-
injectBookmarkManager
injectBookmarkManager.
- Parameters:
bookmarkManager
- aSessionStoreBookmarkManager
object.
-
injectOAuthResponseListener
injectOAuthResponseListener.
- Parameters:
listener
- aAuthResponseListener
object.
-
getOAuthResponseListener
Getter for the field
oAuthResponseListener
.- Returns:
- a
AuthResponseListener
object.
-
getRecordCampaignMap
Getter for the field
recordCampaignMap
.- Returns:
- the recordCampaignMap
-
setRecordCampaignMap
Setter for the field
recordCampaignMap
.- Parameters:
recordCampaignMap
- the recordCampaignMap to set
-
getIndexerVersion
- Returns:
- the indexerVersion
-
setIndexerVersion
- Parameters:
indexerVersion
- the indexerVersion to set
-
getConnectorVersion
- Returns:
- the connectorVersion
-
setConnectorVersion
- Parameters:
connectorVersion
- the connectorVersion to set
-
getHotfolderFileCount
public int getHotfolderFileCount()- Returns:
- the hotfolderFileCount
-
setHotfolderFileCount
public void setHotfolderFileCount(int hotfolderFileCount) - Parameters:
hotfolderFileCount
- the hotfolderFileCount to set
-
getRestApiManager
- Returns:
- the restApiManager
-
setRestApiManager
- Parameters:
restApiManager
- the restApiManager to set
-
getRecordLockManager
- Returns:
- the recordLockManager
-
getTiming
public de.intranda.monitoring.timer.TimeAnalysis getTiming()- Returns:
- the timing
-
resetTiming
public void resetTiming() -
getFileResourceManager
-
getRestApiJobManager
- Returns:
- the restApiJobManager
-
getArchiveManager
-
getClientManager
- Throws:
DAOException
-
getSecurityManager
- Returns:
- the securityManager
-
setClientManager
-
getUsageStatisticsRecorder
- Throws:
DAOException
-
setUsageStatisticsRecorder
-
getThreadPoolManager
Deprecated.apparently shut down but never used- Returns:
ThreadPoolManager
-