@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, wait
getDependencies, isType
public static final SpacesAPI.Scheme SCHEME
public String getAlias()
Repository
getAlias
in interface Repository
public Space getSpace()
getSpace
in interface Repository
public SpacesAPI.Scheme getScheme()
getScheme
in interface Repository
public Map<String,Object> getEnvironment()
getEnvironment
in interface Repository
public void addEnvironmentParameter(String key, Object value)
addEnvironmentParameter
in interface Repository
public Collection<Branch> getBranches()
Repository
getBranches
in interface Repository
public Optional<Branch> getBranch(String branchName)
getBranch
in interface Repository
public Optional<Branch> getBranch(Path branchRoot)
getBranch
in interface Repository
public boolean isValid()
isValid
in interface Repository
public String getUri()
getUri
in interface Repository
public List<PublicURI> getPublicURIs()
getPublicURIs
in interface Repository
public String getIdentifier()
getIdentifier
in interface Resource
public ResourceType getResourceType()
getResourceType
in interface Resource
public Collection<String> getGroups()
getGroups
in interface Repository
public void setGroups(Collection<String> groups)
public Optional<Branch> getDefaultBranch()
Repository
getDefaultBranch
in interface Repository
public void markAsCached()
markAsCached
in interface org.uberfire.commons.data.Cacheable
public boolean requiresRefresh()
requiresRefresh
in interface org.uberfire.commons.data.Cacheable
public void addBranch(Branch branch)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.