Class PmrDb

    • Field Detail

      • hashAlgo

        protected String hashAlgo
      • repoListUrl

        protected URL repoListUrl
      • collectionEndpoint

        protected URL collectionEndpoint
      • classifier

        protected de.unirostock.sems.bives.tools.DocumentClassifier classifier
      • fileExtensionBlacklist

        protected Set<String> fileExtensionBlacklist
      • config

        protected de.unirostock.sems.ModelCrawler.databases.PMR2.PmrDb.WorkingDirConfig config
    • Constructor Detail

      • PmrDb

        public PmrDb()
        Default dataholder
    • Method Detail

      • getHashAlgo

        public String getHashAlgo()
      • setHashAlgo

        public void setHashAlgo​(String hashAlgo)
      • getRepoListUrl

        public URL getRepoListUrl()
      • setRepoListUrl

        public void setRepoListUrl​(URL repoListUri)
      • getCollectionEndpoint

        public URL getCollectionEndpoint()
      • setCollectionEndpoint

        public void setCollectionEndpoint​(URL collectionEndpoint)
      • init

        protected void init()
      • getTempFile

        protected File getTempFile()
        Returns a non existent temporary file.
        Returns:
        the temp file
      • saveProperties

        protected void saveProperties()
      • transformExposureUrl

        protected URL transformExposureUrl​(URL link)
      • makeRepositoryDirectory

        protected File makeRepositoryDirectory​(String repository)
        Creates the directory for the given Repository.
        Parameters:
        repository - the repository
        Returns:
        the file object representing the new repository directory
      • getRepositoryDirectory

        protected File getRepositoryDirectory​(String repository)
        Gets the Path to the Repository Directory out of Workspace config or null if it fails.
        Parameters:
        repository - the repository
        Returns:
        the repo file
      • processRepository

        protected void processRepository​(String repoLink)
      • scanAndTransferRepository

        protected void scanAndTransferRepository​(String repoUrl,
                                                 File location,
                                                 org.eclipse.jgit.api.Git repo)
      • searchLatestKnownVersion

        protected void searchLatestKnownVersion​(RelevantFile relevantFile)
      • detectRelevantVersions

        protected List<org.eclipse.jgit.revwalk.RevCommit> detectRelevantVersions​(org.eclipse.jgit.api.Git repo,
                                                                                  List<RelevantFile> relevantFiles)
      • iterateRelevantVersions

        protected void iterateRelevantVersions​(org.eclipse.jgit.api.Git repo,
                                               File location,
                                               List<RelevantFile> relevantFiles,
                                               List<org.eclipse.jgit.revwalk.RevCommit> relevantVersions)
                                        throws IOException
        Throws:
        IOException