public interface Searches
| Modifier and Type | Method and Description |
|---|---|
Searches |
artifactId(java.lang.String artifactId) |
java.util.List<AqlItem> |
artifactsByFileSpec(org.jfrog.filespecs.FileSpec fileSpec) |
Searches |
artifactsByGavc()
Search by maven coordinates.
|
Searches |
artifactsByName(java.lang.String name) |
Searches |
artifactsCreatedInDateRange(long fromMillis,
long toMillis) |
Searches |
artifactsCreatedSince(long sinceMillis) |
Searches |
artifactsLatestVersion()
Search for the latest artifact version by groupId and artifactId, based on the layout defined in the repository
Search can be limited to specific repositories (local, remote-cache or virtual) by settings the repos parameter.
|
Searches |
classifier(java.lang.String classifierId) |
java.lang.String |
doRawSearch() |
java.util.List<RepoPath> |
doSearch() |
Searches |
groupId(java.lang.String groupId) |
PropertyFilters |
itemsByProperty() |
Searches |
repositories(java.lang.String... repositories) |
Searches |
version(java.lang.String version) |
Searches repositories(java.lang.String... repositories)
Searches artifactsByName(java.lang.String name)
Searches artifactsCreatedSince(long sinceMillis)
Searches artifactsCreatedInDateRange(long fromMillis, long toMillis)
Searches artifactsByGavc()
Searches artifactsLatestVersion()
Latest release vs. latest integration: Unless the version parameter is specified, the search returns the latest artifact release version. When version is specified, e.g. 1.0-SNAPSHOT, the result is the latest integration version. Integration versions are determined by the repository layout of the repositories searched. For integration search to work the repository layout requires an "Artifact Path Pattern" that contains the baseRev token and then the fileItegRev token with only literals between them.
Remote searches: By default only local and cache repositories will be used. When specifying remote=1, Artifactory searches for versions on remote repositories. NOTE! that this can dramatically slow down the search.
For Maven repositories the remote maven-metadata.xml will be consulted. For non-Maven layouts, remote file listing runs for all remote repositories that have the 'List Remote Folder Items' checkbox enabled.
Filtering results (Artifactory 3.0.2+): The version parameter can accept the * and/or ? wildcards which will then filter the final result to match only those who match the given version pattern.
Artifact path pattern: The [org] and [module] fields must be specified in the artifact path pattern of the repository layout for this call to work. GroupId, artifactId, version and classifier, as well as repositories.
Notes: Requires Artifactory Pro
Security: Requires a privileged user (can be anonymous)
Searches groupId(java.lang.String groupId)
Searches artifactId(java.lang.String artifactId)
Searches version(java.lang.String version)
Searches classifier(java.lang.String classifierId)
java.util.List<RepoPath> doSearch()
java.lang.String doRawSearch()
PropertyFilters itemsByProperty()
java.util.List<AqlItem> artifactsByFileSpec(org.jfrog.filespecs.FileSpec fileSpec)