Class Repositories


  • public class Repositories
    extends Object
    Manages the local repository meta files in JSON format. Those are stored in the home directory of the user.
    • Field Detail

      • JCORE_REPOSITORIES

        public static final List<ComponentRepository> JCORE_REPOSITORIES
        These are the GitHub locations of the JCoRe repositories, JCoRe Base and JCoRe projects. They currently serve as default repositories to choose from for the pipeline builders.
    • Method Detail

      • loadActiveRepositories

        public static List<ComponentRepository> loadActiveRepositories()
        Looks in the local repository JSON meta information file for currently active repositories. Found repositories are set to this class as the active repositories from which components will be offered.
      • getRepositories

        public static Stream<ComponentRepository> getRepositories()
        Returns the repositories that are currently in use, i.e. for which the JSON meta data is stored in the home directory.
        Returns:
        A stream of repositories currently used by the pipeline builder.
      • getRepositories

        public static Stream<ComponentRepository> getRepositories​(Predicate<ComponentRepository> filter)
        Returns the repositories that are currently in use, i.e. for which the JSON meta data is stored in the home directory. The optional filter predicate may be used to only get specific repositories back.
        Parameters:
        filter - A filter to restrict the returned repositories.
        Returns:
        A - possibly filtered - stream of repositories currently used by the pipeline builder.
      • saveRepositoryConfiguration

        public static void saveRepositoryConfiguration()
                                                throws IOException
        Throws:
        IOException
      • getMetaFile

        public static File getMetaFile​(String repositoryName,
                                       String repositoryVersion)
      • hasComponentListMetaFile

        public boolean hasComponentListMetaFile​(ComponentRepository repository)
      • deleteComponentList

        public static void deleteComponentList​(String repositoryName,
                                               String version)