Package org.guvnor.ala.ui.service
Interface SourceService
-
public interface SourceServiceService for establishing/selecting the source configuration parameters to be used for launching a pipeline, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>getBranches(org.uberfire.spaces.Space space, String repository)Gets the list of branch names in a given repository.Collection<org.guvnor.common.services.project.model.Module>getModules(org.uberfire.spaces.Space space, String repositoryAlias, String branch)Gets the list of modules accessible by current user in a given repository and branch.Collection<String>getOrganizationUnits()Gets the list of organizational unit names accessible by current user.Collection<String>getRepositories(String organizationalUnit)Gets the list of repositories accessible by current user in a given organizational unit.
-
-
-
Method Detail
-
getOrganizationUnits
Collection<String> getOrganizationUnits()
Gets the list of organizational unit names accessible by current user.- Returns:
- a list of organizational unit names.
-
getRepositories
Collection<String> getRepositories(String organizationalUnit)
Gets the list of repositories accessible by current user in a given organizational unit.- Parameters:
organizationalUnit- a desired organizational unit name.- Returns:
- a list of repository names.
-
getBranches
Collection<String> getBranches(org.uberfire.spaces.Space space, String repository)
Gets the list of branch names in a given repository.- Parameters:
repository- a repository name.- Returns:
- a list of branch names.
-
getModules
Collection<org.guvnor.common.services.project.model.Module> getModules(org.uberfire.spaces.Space space, String repositoryAlias, String branch)
Gets the list of modules accessible by current user in a given repository and branch.- Parameters:
repositoryAlias- a repository name.branch- a branch name.- Returns:
- a list of modules.
-
-