@Portable public class GitRepository extends Object implements Repository
| Modifier and Type | Field and Description |
|---|---|
static SpacesAPI.Scheme |
SCHEME |
RESOURCE_TYPE| Constructor and Description |
|---|
GitRepository() |
GitRepository(String alias,
Space space) |
GitRepository(String alias,
Space space,
List<PublicURI> publicURIs) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDependencies, isTypepublic static final SpacesAPI.Scheme SCHEME
public String getAlias()
RepositorygetAlias in interface Repositorypublic Space getSpace()
getSpace in interface Repositorypublic SpacesAPI.Scheme getScheme()
getScheme in interface Repositorypublic Map<String,Object> getEnvironment()
getEnvironment in interface Repositorypublic void addEnvironmentParameter(String key, Object value)
addEnvironmentParameter in interface Repositorypublic Collection<Branch> getBranches()
RepositorygetBranches in interface Repositorypublic Optional<Branch> getBranch(String branchName)
getBranch in interface Repositorypublic Optional<Branch> getBranch(Path branchRoot)
getBranch in interface Repositorypublic boolean isValid()
isValid in interface Repositorypublic String getUri()
getUri in interface Repositorypublic List<PublicURI> getPublicURIs()
getPublicURIs in interface Repositorypublic String getIdentifier()
getIdentifier in interface Resourcepublic ResourceType getResourceType()
getResourceType in interface Resourcepublic Collection<String> getGroups()
getGroups in interface Repositorypublic void setGroups(Collection<String> groups)
public Collection<Contributor> getContributors()
getContributors in interface Repositorypublic Optional<Branch> getDefaultBranch()
RepositorygetDefaultBranch in interface Repositorypublic void markAsCached()
markAsCached in interface Cacheablepublic boolean requiresRefresh()
requiresRefresh in interface Cacheablepublic void addBranch(Branch branch)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.