Interface SourceRegistry

  • All Known Implementing Classes:
    InMemorySourceRegistry

    public interface SourceRegistry
    Represents the SourceRegistry source, projects & repositories are registered
    • Method Detail

      • registerRepositorySources

        void registerRepositorySources​(org.uberfire.java.nio.file.Path path,
                                       Repository repo)
        Register a repository containing source code projects.
        Parameters:
        path - to the repository
        repo - the repository to register.
        See Also:
        Repository
      • getAllRepositories

        List<Repository> getAllRepositories()
        Get All the registered repositories
        Returns:
        List with all the registered repositories
        See Also:
        Repository
      • getAllProjects

        List<Project> getAllProjects​(Repository repo)
        Get All the registered projects for a given repository
        Parameters:
        repo - the repository for getting the projects.
        Returns:
        a list with all the registered projects for the given repository.
        See Also:
        Repository, Project
      • registerSource

        void registerSource​(Repository repo,
                            Source source)
        Register a Source code from a Repository
        Parameters:
        repo - the repository for registering the source.
        source - a source to be registered
        See Also:
        Source, Project
      • registerProject

        void registerProject​(Source source,
                             Project project)
        Register a Project code from a Source
        Parameters:
        source - the source for registering the project.
        project - a project to be registered.
        See Also:
        Source, Project