Guvnor - Structure API 6.2.0.Beta2

org.guvnor.structure.repositories.impl.git
Class GitRepository

java.lang.Object
  extended by 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


Field Summary
static String SCHEME
           
 
Constructor Summary
GitRepository()
           
GitRepository(String alias)
           
GitRepository(String alias, List<PublicURI> publicURIs)
           
 
Method Summary
 void addEnvironmentParameter(String key, Object value)
           
 boolean equals(Object o)
           
 String getAlias()
           
 Collection<String> getBranches()
          Returns "read-only" view of all branches available in this repository.
 String getCurrentBranch()
          Returns current branch that is configured for this repository.
 Map<String,Object> getEnvironment()
           
 List<PublicURI> getPublicURIs()
           
 Collection<String> getRoles()
           
 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(Collection<String> branches)
           
 void setCurrentBranch(String currentBranch)
           
 void setPublicURIs(List<PublicURI> publicURIs)
           
 void setRoles(Collection<String> roles)
           
 void setRoot(org.uberfire.backend.vfs.Path root)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEME

public static final String SCHEME
See Also:
Constant Field Values
Constructor Detail

GitRepository

public GitRepository()

GitRepository

public GitRepository(String alias)

GitRepository

public GitRepository(String alias,
                     List<PublicURI> publicURIs)
Method Detail

getAlias

public String getAlias()
Specified by:
getAlias in interface 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(Collection<String> branches)

setCurrentBranch

public void setCurrentBranch(String currentBranch)

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

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

Guvnor - Structure API 6.2.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.