@Portable public class GitRepository extends Object implements Repository
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEME |
RESOURCE_TYPE| Constructor and Description |
|---|
GitRepository() |
GitRepository(String alias) |
GitRepository(String alias,
List<PublicURI> publicURIs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBranch(String branchName,
org.uberfire.backend.vfs.Path path) |
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.
|
Collection<String> |
getBranches()
Returns "read-only" view of all branches available in this repository.
|
org.uberfire.backend.vfs.Path |
getBranchRoot(String branch) |
String |
getDefaultBranch()
In the case of Git repository this would be master.
|
Map<String,Object> |
getEnvironment() |
Collection<String> |
getGroups() |
String |
getIdentifier() |
List<PublicURI> |
getPublicURIs() |
org.uberfire.security.ResourceType |
getResourceType() |
org.uberfire.backend.vfs.Path |
getRoot() |
String |
getScheme() |
String |
getUri() |
int |
hashCode() |
boolean |
isValid() |
void |
markAsCached() |
boolean |
requiresRefresh() |
void |
setBranches(Map<String,org.uberfire.backend.vfs.Path> branches) |
void |
setGroups(Collection<String> groups) |
void |
setPublicURIs(List<PublicURI> publicURIs) |
void |
setRoot(org.uberfire.backend.vfs.Path root) |
String |
toString() |
public static final String SCHEME
public GitRepository()
public GitRepository(String alias)
public String getAlias()
RepositorygetAlias in interface Repositorypublic String getScheme()
getScheme in interface Repositorypublic Map<String,Object> getEnvironment()
getEnvironment in interface Repositorypublic void addEnvironmentParameter(String key, Object value)
addEnvironmentParameter in interface Repositorypublic void setRoot(org.uberfire.backend.vfs.Path root)
setRoot in interface Repositorypublic Collection<String> getBranches()
RepositorygetBranches in interface Repositorypublic org.uberfire.backend.vfs.Path getRoot()
getRoot in interface Repositorypublic org.uberfire.backend.vfs.Path getBranchRoot(String branch)
getBranchRoot 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 org.uberfire.security.Resourcepublic org.uberfire.security.ResourceType getResourceType()
getResourceType in interface org.uberfire.security.Resourcepublic Collection<String> getGroups()
getGroups in interface Repositorypublic void setGroups(Collection<String> groups)
public String 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(String branchName, org.uberfire.backend.vfs.Path path)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.