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
    • 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()
      • addEnvironmentParameter

        void addEnvironmentParameter​(String key,
                                     Object value)
      • isValid

        boolean isValid()
      • getBranch

        Optional<Branch> getBranch​(org.uberfire.backend.vfs.Path branchRoot)
      • getBranches

        Collection<Branch> getBranches()
        Returns "read-only" view of all branches available in this repository.
        Returns:
      • getDefaultBranch

        Optional<Branch> getDefaultBranch()
        In the case of Git repository this would be master.
        Returns:
        empty if there are no branches.