Package | Description |
---|---|
org.artifactory.fs | |
org.artifactory.repo | |
org.artifactory.request | |
org.artifactory.resource | |
org.artifactory.search | |
org.artifactory.security |
Modifier and Type | Method and Description |
---|---|
RepoPath |
ItemInfo.getRepoPath() |
Modifier and Type | Interface and Description |
---|---|
interface |
RemoteRepoPath
Represents RemoteRepoPath by obligating to RepoPath
contract and adding remote Origin in to the context
|
Modifier and Type | Method and Description |
---|---|
static RepoPath |
RepoPathFactory.create(String rpp)
Constructs a RepoPath from a path containing both repo key and the relative path in the repo.
|
static RepoPath |
RepoPathFactory.create(String repoKey,
String path)
Constructs a RepoPath from the input repo key and optional path.
|
RepoPath |
RemoteRepoPath.getActualRepoPath() |
RepoPath |
Repositories.getArtifactRepoPath(FileLayoutInfo layoutInfo,
String repoKey)
Returns actual repository path for layout information (group, artifact, version, etc.) of an artifact
as it is built according to the layout of the repository.
|
RepoPath |
Repositories.getDescriptorRepoPath(FileLayoutInfo layoutInfo,
String repoKey)
Returns actual repository path for layout information (group, artifact, version, etc.) of a descriptor
as it is built according to the layout of the repository.
|
RepoPath |
RepoPath.getParent() |
Modifier and Type | Method and Description |
---|---|
StatusHolder |
Repositories.copy(RepoPath source,
RepoPath target)
Copies the source repoPath to the targetRepoPath
|
StatusHolder |
Repositories.copyAtomic(RepoPath source,
RepoPath target)
Copies the source repoPath to the targetRepoPath , Directories are copied recursively in a single transaction, which might be
resource intensive when copying very large directories.
|
StatusHolder |
Repositories.delete(RepoPath repoPath)
Deletes the specified repoPath.
|
StatusHolder |
Repositories.deleteAtomic(RepoPath repoPath)
Deletes the specified repoPath.
|
void |
Repositories.deleteProperty(RepoPath repoPath,
String propertyName)
Deletes the property from the item.
|
StatusHolder |
Repositories.deploy(RepoPath repoPath,
InputStream inputStream)
Deploy an artifact
|
boolean |
Repositories.exists(RepoPath repoPath) |
long |
Repositories.getArtifactsCount(RepoPath repoPath)
Returns the total number of file artifacts under the provided directory repo path.
|
long |
Repositories.getArtifactsSize(RepoPath repoPath)
Returns the total storage size of the file artifacts under the given directory repo path.
|
List<ItemInfo> |
Repositories.getChildren(RepoPath repoPath) |
ResourceStreamHandle |
Repositories.getContent(RepoPath repoPath)
Get a stream handle for the file content
|
FileInfo |
Repositories.getFileInfo(RepoPath repoPath) |
ItemInfo |
Repositories.getItemInfo(RepoPath repoPath) |
FileLayoutInfo |
Repositories.getLayoutInfo(RepoPath repoPath)
Returns module related information (group, artifact, version, etc.) for given file, as it was extracted according
to the layout of the repository the file is part of.
|
Properties |
Repositories.getProperties(RepoPath repoPath) |
String |
Repositories.getProperty(RepoPath repoPath,
String propertyName) |
Set<String> |
Repositories.getPropertyValues(RepoPath repoPath,
String propertyName) |
StatsInfo |
Repositories.getStats(RepoPath repoPath)
Returns statistics for the
repoPath , which include downloads count, last download time and last
downloader's name. |
String |
Repositories.getStringContent(RepoPath repoPath)
Get the content of a file as a string
|
boolean |
Repositories.hasProperty(RepoPath repoPath,
String propertyName) |
boolean |
Repositories.isLcoalRepoPathHandled(RepoPath repoPath)
Deprecated.
|
boolean |
Repositories.isLocalRepoPathAccepted(RepoPath repoPath)
Deprecated.
|
boolean |
Repositories.isRepoPathAccepted(RepoPath repoPath)
Checks if the specified repoPath is accepted by the include/exclude rules of the repoPath's repository.
|
boolean |
Repositories.isRepoPathHandled(RepoPath repoPath)
Checks if the specified repoPath is handled by the snapshot(integration)/release policy of the repoPath's
repository.
|
StatusHolder |
Repositories.move(RepoPath source,
RepoPath target)
Moves the source repoPath to the targetRepoPath
|
StatusHolder |
Repositories.moveAtomic(RepoPath source,
RepoPath target)
Moves the source repoPath to the targetRepoPath , Directories are moved recursively in a single transaction, which might be
resource intensive when moving very large directories.
|
Properties |
Repositories.setProperty(RepoPath repoPath,
String propertyName,
String... values) |
Properties |
Repositories.setPropertyRecursively(RepoPath repoPath,
String propertyName,
String... values) |
String |
Repositories.translateFilePath(RepoPath source,
String targetRepoKey)
Translates the path of a file from source repository layout to target's one.
|
StatusHolder |
Repositories.undeploy(RepoPath repoPath)
Deprecated.
Use
Repositories.deleteAtomic(RepoPath) or Repositories.delete(RepoPath) instead |
Modifier and Type | Method and Description |
---|---|
RepoPath |
Request.getRepoPath() |
RepoPath |
RequestResponseInfo.getRequestRepoPath() |
RepoPath |
RequestResponseInfo.getResponseRepoPath() |
Modifier and Type | Method and Description |
---|---|
RepoPath |
RepoResourceInfo.getRepoPath() |
Modifier and Type | Method and Description |
---|---|
List<RepoPath> |
Searches.archiveEntriesByName(String query,
String... repositories)
Search the content of jar/zip archives
|
List<RepoPath> |
Searches.artifactsByGavc(String groupId,
String artifactId,
String version,
String classifier,
String... repositories) |
List<RepoPath> |
Searches.artifactsByName(String query,
String... repositories)
Find artifacts by name
|
Set<RepoPath> |
Searches.artifactsBySha1(String sha1,
String... repositories)
Find artifacts by their checksum values
|
Set<RepoPath> |
Searches.artifactsBySha256(String sha256,
String... repositories)
Find artifacts by their checksum values
|
List<RepoPath> |
Searches.artifactsCreatedOrModifiedInRange(Calendar from,
Calendar to,
String... repositories)
Find artifacts created or modified within a date range
|
List<RepoPath> |
Searches.artifactsNotDownloadedSince(Calendar since,
Calendar createdBefore,
String... repositories)
Find artifacts not downloaded since the specified date, searches for both locally and remotely downloaded stats,
using smart remote repository stats where applicable.
|
List<RepoPath> |
Searches.itemsByProperties(com.google.common.collect.SetMultimap<String,String> properties,
String... repositories)
Find artifacts by properties
|
Modifier and Type | Method and Description |
---|---|
boolean |
Security.canAdmin(RepoPath path)
Deprecated.
Use
#canManage() instead |
boolean |
Security.canAnnotate(RepoPath repoPath) |
boolean |
Security.canDelete(RepoPath path) |
boolean |
Security.canDeploy(RepoPath path) |
boolean |
Security.canManage(RepoPath path) |
boolean |
Security.canRead(RepoPath path) |
Copyright © 2017. All rights reserved.