Interface Repository
-
- All Superinterfaces:
org.uberfire.commons.data.Cacheable,org.uberfire.security.ContributorResource,org.uberfire.security.Resource,org.uberfire.security.authz.RuntimeContentResource,org.uberfire.security.authz.RuntimeResource
- All Known Implementing Classes:
GitRepository
public interface Repository extends org.uberfire.security.ContributorResource, org.uberfire.security.authz.RuntimeContentResource, org.uberfire.commons.data.Cacheable
-
-
Field Summary
Fields Modifier and Type Field Description static RepositoryResourceTypeRESOURCE_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEnvironmentParameter(String key, Object value)StringgetAlias()Most of the time, this can not be used as an unique ID.Optional<Branch>getBranch(String branch)Optional<Branch>getBranch(org.uberfire.backend.vfs.Path branchRoot)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()List<PublicURI>getPublicURIs()org.uberfire.spaces.SpacesAPI.SchemegetScheme()org.uberfire.spaces.SpacegetSpace()StringgetUri()booleanisValid()
-
-
-
Field Detail
-
RESOURCE_TYPE
static final RepositoryResourceType RESOURCE_TYPE
-
-
Method Detail
-
getAlias
String getAlias()
Most of the time, this can not be used as an unique ID. If the Repository has branches each branch has the same alias.- Returns:
- short name for the repository
-
getScheme
org.uberfire.spaces.SpacesAPI.Scheme getScheme()
-
getSpace
org.uberfire.spaces.Space getSpace()
-
isValid
boolean isValid()
-
getUri
String getUri()
-
getGroups
Collection<String> getGroups()
-
getBranches
Collection<Branch> getBranches()
Returns "read-only" view of all branches available in this repository.- Returns:
-
-