@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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBranch(Branch branch) |
void |
addEnvironmentParameter(String key,
Object value) |
boolean |
equals(Object o) |
String |
getAlias()
Most of the time, this can not be used as an unique ID.
|
Optional<Branch> |
getBranch(Path branchRoot) |
Optional<Branch> |
getBranch(String branchName) |
Collection<Branch> |
getBranches()
Returns "read-only" view of all branches available in this repository.
|
Optional<Branch> |
getDefaultBranch()
In the case of Git repository this would be master.
|
Map<String,Object> |
getEnvironment() |
Collection<String> |
getGroups() |
String |
getIdentifier() |
List<PublicURI> |
getPublicURIs() |
ResourceType |
getResourceType() |
SpacesAPI.Scheme |
getScheme() |
Space |
getSpace() |
String |
getUri() |
int |
hashCode() |
boolean |
isValid() |
void |
markAsCached() |
boolean |
requiresRefresh() |
void |
setBranches(Map<String,Branch> branches) |
void |
setGroups(Collection<String> groups) |
void |
setPublicURIs(List<PublicURI> publicURIs) |
String |
toString() |
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 Optional<Branch> getDefaultBranch()
RepositorygetDefaultBranch in interface Repositorypublic void markAsCached()
markAsCached in interface org.uberfire.commons.data.Cacheablepublic boolean requiresRefresh()
requiresRefresh in interface org.uberfire.commons.data.Cacheablepublic void addBranch(Branch branch)
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.