Package org.guvnor.ala.registry
Interface SourceRegistry
-
- All Known Implementing Classes:
InMemorySourceRegistry
public interface SourceRegistryRepresents the SourceRegistry source, projects & repositories are registered
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Project>getAllProjects(Repository repo)Get All the registered projects for a given repositoryList<Repository>getAllRepositories()Get All the registered repositoriesvoidregisterProject(Source source, Project project)Register a Project code from a SourcevoidregisterRepositorySources(org.uberfire.java.nio.file.Path path, Repository repo)Register a repository containing source code projects.voidregisterSource(Repository repo, Source source)Register a Source code from a Repository
-
-
-
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 repositoryrepo- 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
-
-