Class DataManager

java.lang.Object
io.goobi.viewer.controller.DataManager

public final class DataManager extends Object

DataManager class.

  • Method Details

    • getInstance

      public static DataManager getInstance()

      Getter for the field instance.

      Returns:
      a DataManager object.
    • getModules

      public List<IModule> getModules()

      Getter for the field modules.

      Returns:
      the modules
    • getUrlBuilder

      public IURLBuilder getUrlBuilder()

      getUrlBuilder.

      Returns:
      the urlBuilder
    • getModule

      public IModule getModule(String id) throws ModuleMissingException

      getModule.

      Parameters:
      id - a String object.
      Returns:
      a IModule object.
      Throws:
      ModuleMissingException - if any.
    • isModuleLoaded

      public boolean isModuleLoaded(String id)

      isModuleLoaded.

      Parameters:
      id - a String object.
      Returns:
      a boolean.
    • registerModule

      public boolean registerModule(IModule module)

      registerModule.

      Parameters:
      module - a IModule object.
      Returns:
      a boolean.
    • getSessionCount

      public int getSessionCount()

      getSessionCount.

      Returns:
      a int.
    • getSessionMap

      public Map<String,Map<String,String>> getSessionMap()

      Getter for the field sessionMap.

      Returns:
      the sessionMap
    • getConfiguration

      public Configuration getConfiguration()

      Getter for the field configuration.

      Returns:
      the configuration
    • getLanguageHelper

      public LanguageHelper getLanguageHelper()

      Getter for the field languageHelper.

      Returns:
      the languageHelper
    • getSearchIndex

      public SolrSearchIndex getSearchIndex()

      Getter for the field searchIndex.

      Returns:
      the searchIndex
    • getDao

      public IDAO getDao() throws DAOException

      Getter for the field dao.

      Returns:
      the dao
      Throws:
      DAOException - if any.
    • injectConfiguration

      public void injectConfiguration(Configuration configuration)
      Sets custom Configuration object (used for unit testing).
      Parameters:
      configuration - a Configuration object.
    • injectSearchIndex

      public void injectSearchIndex(SolrSearchIndex searchIndex)
      Sets custom SolrSearchIndex object (used for unit testing).
      Parameters:
      searchIndex - a SolrSearchIndex object.
    • injectDao

      public void injectDao(IDAO dao)
      Sets custom IDAO object (used for unit testing).
      Parameters:
      dao - a IDAO object.
    • getBookmarkManager

      public SessionStoreBookmarkManager getBookmarkManager()

      Getter for the field bookmarkManager.

      Returns:
      a SessionStoreBookmarkManager object.
    • injectBookmarkManager

      public void injectBookmarkManager(SessionStoreBookmarkManager bookmarkManager)

      injectBookmarkManager.

      Parameters:
      bookmarkManager - a SessionStoreBookmarkManager object.
    • injectOAuthResponseListener

      public void injectOAuthResponseListener(AuthResponseListener<OpenIdProvider> listener)

      injectOAuthResponseListener.

      Parameters:
      listener - a AuthResponseListener object.
    • getOAuthResponseListener

      public AuthResponseListener<OpenIdProvider> getOAuthResponseListener()

      Getter for the field oAuthResponseListener.

      Returns:
      a AuthResponseListener object.
    • getRecordCampaignMap

      public Map<String,List<Campaign>> getRecordCampaignMap()

      Getter for the field recordCampaignMap.

      Returns:
      the recordCampaignMap
    • setRecordCampaignMap

      public void setRecordCampaignMap(Map<String,List<Campaign>> recordCampaignMap)

      Setter for the field recordCampaignMap.

      Parameters:
      recordCampaignMap - the recordCampaignMap to set
    • getIndexerVersion

      public String getIndexerVersion()
      Returns:
      the indexerVersion
    • setIndexerVersion

      public void setIndexerVersion(String indexerVersion)
      Parameters:
      indexerVersion - the indexerVersion to set
    • getConnectorVersion

      public String getConnectorVersion()
      Returns:
      the connectorVersion
    • setConnectorVersion

      public void setConnectorVersion(String connectorVersion)
      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

      public RestApiManager getRestApiManager()
      Returns:
      the restApiManager
    • setRestApiManager

      public void setRestApiManager(RestApiManager restApiManager)
      Parameters:
      restApiManager - the restApiManager to set
    • getRecordLockManager

      public RecordLockManager getRecordLockManager()
      Returns:
      the recordLockManager
    • getTiming

      public de.intranda.monitoring.timer.TimeAnalysis getTiming()
      Returns:
      the timing
    • resetTiming

      public void resetTiming()
    • getFileResourceManager

      public FileResourceManager getFileResourceManager()
    • getRestApiJobManager

      public TaskManager getRestApiJobManager()
      Returns:
      the restApiJobManager
    • getArchiveManager

      public ArchiveManager getArchiveManager()
    • getClientManager

      public ClientApplicationManager getClientManager() throws DAOException
      Throws:
      DAOException
    • getSecurityManager

      public SecurityManager getSecurityManager()
      Returns:
      the securityManager
    • setClientManager

      public void setClientManager(ClientApplicationManager manager)
    • getUsageStatisticsRecorder

      public UsageStatisticsRecorder getUsageStatisticsRecorder() throws DAOException
      Throws:
      DAOException
    • setUsageStatisticsRecorder

      public void setUsageStatisticsRecorder(UsageStatisticsRecorder usageStatisticsRecorder)
    • getThreadPoolManager

      @Deprecated(since="24.10") public ThreadPoolManager getThreadPoolManager()
      Deprecated.
      apparently shut down but never used
      Returns:
      ThreadPoolManager