Class ModelDatabase

    • Field Detail

      • enabled

        protected boolean enabled
      • limit

        protected int limit
      • tempDir

        protected File tempDir
      • morreClient

        protected de.unirostock.sems.morre.client.MorreCrawlerInterface morreClient
    • Constructor Detail

      • ModelDatabase

        public ModelDatabase()
    • Method Detail

      • createTempDir

        protected File createTempDir()
        creates a new and empty temporary directory and sets the class variable.
        Returns:
        the temporary directory object
      • listModels

        public abstract List<String> listModels()
        lists all Models in the latest revision
        Returns:
        List with all model IDs
      • listChanges

        public abstract Map<String,​ChangeSet> listChanges()
        Returns a map with all changes made after the last crawl
        the fileId is the map key.
        Returns:
        the list of changes
      • getModelChanges

        public abstract ChangeSet getModelChanges​(String fileId)
        Returns the ChangeSet only for one specific model.
        Parameters:
        fileId - the file id
        Returns:
        ChangeSet
      • close

        public abstract void close()
        Cleans up the working directory
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • getWorkingDir

        public String getWorkingDir()
      • obtainWorkingDir

        protected File obtainWorkingDir()
      • setWorkingDir

        public void setWorkingDir​(String workingDir)
      • getLimit

        public int getLimit()
      • setLimit

        public void setLimit​(int limit)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getMorreClient

        public de.unirostock.sems.morre.client.MorreCrawlerInterface getMorreClient()
      • setMorreClient

        public void setMorreClient​(de.unirostock.sems.morre.client.MorreCrawlerInterface morreClient)
      • setModelStorage

        public void setModelStorage​(ModelStorage modelStorage)