org.guvnor.structure.repositories.impl.git
Class GitRepository
java.lang.Object
org.guvnor.structure.repositories.impl.git.GitRepository
- All Implemented Interfaces:
- Repository, org.uberfire.commons.data.Cacheable, org.uberfire.security.authz.RuntimeResource, org.uberfire.security.Resource
@Portable
public class GitRepository
- extends Object
- implements Repository
SCHEME
public static final String SCHEME
- See Also:
- Constant Field Values
GitRepository
public GitRepository()
GitRepository
public GitRepository(String alias)
GitRepository
public GitRepository(String alias,
List<PublicURI> publicURIs)
getAlias
public String getAlias()
- Description copied from interface:
Repository
- Most of the time, this can not be used as an unique ID.
If the Repository has branches each branch has the same alias.
- Specified by:
getAlias in interface Repository
- Returns:
- short name for the repository
getScheme
public String getScheme()
- Specified by:
getScheme in interface Repository
getEnvironment
public Map<String,Object> getEnvironment()
- Specified by:
getEnvironment in interface Repository
addEnvironmentParameter
public void addEnvironmentParameter(String key,
Object value)
- Specified by:
addEnvironmentParameter in interface Repository
setRoot
public void setRoot(org.uberfire.backend.vfs.Path root)
- Specified by:
setRoot in interface Repository
setBranches
public void setBranches(Map<String,org.uberfire.backend.vfs.Path> branches)
getBranches
public Collection<String> getBranches()
- Description copied from interface:
Repository
- Returns "read-only" view of all branches available in this repository.
- Specified by:
getBranches in interface Repository
- Returns:
getCurrentBranch
public String getCurrentBranch()
- Description copied from interface:
Repository
- Returns current branch that is configured for this repository.
It will always provide branch name even if there was no explicit
branch selected/created - which in that case is always 'master'
- Specified by:
getCurrentBranch in interface Repository
- Returns:
getRoot
public org.uberfire.backend.vfs.Path getRoot()
- Specified by:
getRoot in interface Repository
getBranchRoot
public org.uberfire.backend.vfs.Path getBranchRoot(String branch)
- Specified by:
getBranchRoot in interface Repository
isValid
public boolean isValid()
- Specified by:
isValid in interface Repository
getUri
public String getUri()
- Specified by:
getUri in interface Repository
getPublicURIs
public List<PublicURI> getPublicURIs()
- Specified by:
getPublicURIs in interface Repository
setPublicURIs
public void setPublicURIs(List<PublicURI> publicURIs)
getSignatureId
public String getSignatureId()
- Specified by:
getSignatureId in interface org.uberfire.security.authz.RuntimeResource
getRoles
public Collection<String> getRoles()
- Specified by:
getRoles in interface org.uberfire.security.authz.RuntimeResource
setRoles
public void setRoles(Collection<String> roles)
getTraits
public Collection<String> getTraits()
- Specified by:
getTraits in interface org.uberfire.security.authz.RuntimeResource
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
markAsCached
public void markAsCached()
- Specified by:
markAsCached in interface org.uberfire.commons.data.Cacheable
requiresRefresh
public boolean requiresRefresh()
- Specified by:
requiresRefresh in interface org.uberfire.commons.data.Cacheable
changeBranch
public void changeBranch(String branch)
addBranch
public void addBranch(String branchName,
org.uberfire.backend.vfs.Path path)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.