@Portable public class GitRepository extends Object implements Repository
| 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) |
void |
changeBranch(String branch) |
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 |
getCurrentBranch()
Returns current branch that is configured for this repository.
|
Map<String,Object> |
getEnvironment() |
Collection<String> |
getGroups() |
List<PublicURI> |
getPublicURIs() |
org.uberfire.backend.vfs.Path |
getRoot() |
String |
getScheme() |
String |
getSignatureId() |
Collection<String> |
getTraits() |
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 String getCurrentBranch()
RepositorygetCurrentBranch 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 getSignatureId()
getSignatureId in interface org.uberfire.security.authz.RuntimeResourcepublic Collection<String> getGroups()
getGroups in interface org.uberfire.security.authz.RuntimeContentResourcepublic void setGroups(Collection<String> groups)
public Collection<String> getTraits()
getTraits in interface org.uberfire.security.authz.RuntimeResourcepublic void markAsCached()
markAsCached in interface org.uberfire.commons.data.Cacheablepublic boolean requiresRefresh()
requiresRefresh in interface org.uberfire.commons.data.Cacheablepublic void changeBranch(String branch)
public void addBranch(String branchName, org.uberfire.backend.vfs.Path path)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.