Interface IRepositoryInfo
public interface IRepositoryInfo
Represent the repository registry record
- Author:
- Stanislav
-
Method Summary
Modifier and TypeMethodDescriptionint
compareRevisions
(String revision1, String revision2) Compare two revisions.getAccessibleURLForLocation
(ILocation location) Returns location for universally accessible URL.Root URL of repository to be used by the system user to access the repository.Comparator
for revisions (String
s).boolean
Checks if the URI points to this repository.
-
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
Root URL of repository to be used by the system user to access the repository. This URL might be the same as @linkgetRepositoryUri()
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
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
- revisionrevision2
- 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 (String
s). It's behaviour should be consistent withcompareRevisions(String, String)
.- Returns:
- revision comparator
-
getAccessibleURLForLocation
- Parameters:
location
- - location in repository- Returns:
- repository URL to specific location
-
getLocationForAccessibleURL
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
Checks if the URI points to this repository.- Since:
- 3.7.2
-
getRepositoryProperties
Properties getRepositoryProperties()- Returns:
- The properties set to this repository deployment.
-