Interface IRepositoryInfo


public interface IRepositoryInfo
Represent the repository registry record
Author:
Stanislav
  • Method Details

    • getRootLocation

      ILocation getRootLocation()
      Returns:
      the location of root
    • getRepositoryUri

      URI getRepositoryUri()
      Returns:
      Root URL of repository
    • getRepositoryUriForUI

      URI getRepositoryUriForUI()
      Returns:
      Root URL of repository for UI
    • getRepositoryUriForSystemUser

      @NotNull URI getRepositoryUriForSystemUser()
      Root URL of repository to be used by the system user to access the repository. This URL might be the same as @link getRepositoryUri() or it be a different one e.g. with a different protocol.
      Since:
      3.7.2
    • getRepositoryName

      String getRepositoryName()
      Returns:
      Repository name
    • getDescription

      String getDescription()
      Returns:
      Repository description
    • compareRevisions

      int compareRevisions(String revision1, String revision2)
      Compare two revisions.

      Although some implementations may compare revisions of different resources, it is not recommended to assume it.

      The revisions can't be a null

      Parameters:
      revision1 - revision
      revision2 - revision
      Returns:
      negative integer if revision1 is older than revision2, zero if they are the same, positive integer if revision1 is newer than revision2
    • getRevisionComparator

      Comparator getRevisionComparator()
      Comparator for revisions (Strings). It's behaviour should be consistent with compareRevisions(String, String).
      Returns:
      revision comparator
    • getAccessibleURLForLocation

      URI getAccessibleURLForLocation(ILocation location)
      Parameters:
      location - - location in repository
      Returns:
      repository URL to specific location
    • getLocationForAccessibleURL

      ILocation getLocationForAccessibleURL(URI url)
      Returns location for universally accessible URL.

      The URL can't be a null and must belong to connected repository

      Parameters:
      url -
      Returns:
      location (not null)
      See Also:
    • ownsURI

      boolean ownsURI(URI uri)
      Checks if the URI points to this repository.
      Since:
      3.7.2
    • getRepositoryProperties

      Properties getRepositoryProperties()
      Returns:
      The properties set to this repository deployment.