public interface DownloadManager
ContentManager and ContentGenerator implementations. It does not include results from generator sources (i.e. ContentProducer).| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PARAM_REPO
Key used to bind
RemoteRepository instances to the HTTP client in order to extract SSL/authentication info. |
static String |
ROOT_PATH
Root path used when retrieving the root of a
Location's cache. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(org.commonjava.indy.model.core.ArtifactStore store,
String path) |
boolean |
delete(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata) |
boolean |
deleteAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path) |
boolean |
exists(org.commonjava.indy.model.core.ArtifactStore store,
String path)
Artifact existence check for given store and path.
|
org.commonjava.maven.galley.model.Transfer |
getStorageReference(org.commonjava.indy.model.core.ArtifactStore store,
String... path) |
org.commonjava.maven.galley.model.Transfer |
getStorageReference(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.model.TransferOperation op)
Retrieve a
Transfer object suitable for use in the specified operation. |
org.commonjava.maven.galley.model.Transfer |
getStorageReference(List<org.commonjava.indy.model.core.ArtifactStore> stores,
String path,
org.commonjava.maven.galley.model.TransferOperation op)
Retrieve a
Transfer object suitable for use in the specified operation. |
org.commonjava.maven.galley.model.Transfer |
getStorageReference(org.commonjava.indy.model.core.StoreKey key,
String... path) |
org.commonjava.maven.galley.model.Transfer |
getStoreRootDirectory(org.commonjava.indy.model.core.ArtifactStore store) |
org.commonjava.maven.galley.model.Transfer |
getStoreRootDirectory(org.commonjava.indy.model.core.StoreKey key) |
List<StoreResource> |
list(org.commonjava.indy.model.core.ArtifactStore store,
String path) |
List<StoreResource> |
list(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadatada) |
List<StoreResource> |
list(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path) |
List<StoreResource> |
list(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata) |
List<org.commonjava.maven.galley.model.Transfer> |
listRecursively(org.commonjava.indy.model.core.StoreKey src,
String startPath) |
void |
rescan(org.commonjava.indy.model.core.ArtifactStore store) |
void |
rescan(org.commonjava.indy.model.core.ArtifactStore store,
org.commonjava.maven.galley.event.EventMetadata eventMetadata) |
void |
rescanAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores) |
void |
rescanAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
org.commonjava.maven.galley.event.EventMetadata eventMetadata) |
org.commonjava.maven.galley.model.Transfer |
retrieve(org.commonjava.indy.model.core.ArtifactStore store,
String path)
Retrieve the content at the given path from the given store, then return the transfer that references the content.
|
org.commonjava.maven.galley.model.Transfer |
retrieve(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Retrieve the content at the given path from the given store, then return the transfer that references the content.
|
List<org.commonjava.maven.galley.model.Transfer> |
retrieveAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path)
Retrieve the content at the given path from all stores, then return the set of transfers that reference the content.
|
List<org.commonjava.maven.galley.model.Transfer> |
retrieveAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Retrieve the content at the given path from all stores, then return the set of transfers that reference the content.
|
org.commonjava.maven.galley.model.Transfer |
retrieveFirst(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path)
Retrieve the content at the given path from the first store possible, then return then return the transfer that references the content without
iterating any farther.
|
org.commonjava.maven.galley.model.Transfer |
retrieveFirst(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Retrieve the content at the given path from the first store possible, then return then return the transfer that references the content without
iterating any farther.
|
org.commonjava.maven.galley.model.Transfer |
store(org.commonjava.indy.model.core.ArtifactStore store,
String path,
InputStream stream,
org.commonjava.maven.galley.model.TransferOperation op)
Store the content contained in the
InputStream under the given path within the storage directory for the given ArtifactStore. |
org.commonjava.maven.galley.model.Transfer |
store(org.commonjava.indy.model.core.ArtifactStore store,
String path,
InputStream stream,
org.commonjava.maven.galley.model.TransferOperation op,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Store the content contained in the
InputStream under the given path within the storage directory for the given ArtifactStore. |
org.commonjava.maven.galley.model.Transfer |
store(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path,
InputStream stream,
org.commonjava.maven.galley.model.TransferOperation op)
Store the content contained in the
InputStream under the given path within the storage directory for first appropriate instance among
the given ArtifactStore's. |
org.commonjava.maven.galley.model.Transfer |
store(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores,
String path,
InputStream stream,
org.commonjava.maven.galley.model.TransferOperation op,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Store the content contained in the
InputStream under the given path within the storage directory for first appropriate instance among
the given ArtifactStore's. |
static final String HTTP_PARAM_REPO
RemoteRepository instances to the HTTP client in order to extract SSL/authentication info.
TODO: Given the attribute methods in the Galley Location api, this should be obsolete.static final String ROOT_PATH
Location's cache.org.commonjava.maven.galley.model.Transfer retrieveFirst(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path) throws IndyWorkflowException
IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer retrieveFirst(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path, org.commonjava.maven.galley.event.EventMetadata eventMetadata) throws IndyWorkflowException
eventMetadata - TODOIndyWorkflowExceptionList<org.commonjava.maven.galley.model.Transfer> retrieveAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path) throws IndyWorkflowException
IndyWorkflowExceptionList<org.commonjava.maven.galley.model.Transfer> retrieveAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path, org.commonjava.maven.galley.event.EventMetadata eventMetadata) throws IndyWorkflowException
eventMetadata - TODOIndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer retrieve(org.commonjava.indy.model.core.ArtifactStore store,
String path)
throws IndyWorkflowException
IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer retrieve(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
throws IndyWorkflowException
eventMetadata - TODOIndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer store(org.commonjava.indy.model.core.ArtifactStore store,
String path,
InputStream stream,
org.commonjava.maven.galley.model.TransferOperation op)
throws IndyWorkflowException
InputStream under the given path within the storage directory for the given ArtifactStore.
Use the given TransferOperation to trigger the appropriate tangential maintenance, etc. actions. Return the Transfer that
references the stored content.
ArtifactStore isn't a HostedRepository, or is a Group that doesn't contain a HostedRepository,
fail. If the HostedRepository instances involved don't allow deployment/storage, or don't allow appropriate deployment
(releases-only for snapshot content, or vice versa), then fail.IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer store(org.commonjava.indy.model.core.ArtifactStore store,
String path,
InputStream stream,
org.commonjava.maven.galley.model.TransferOperation op,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
throws IndyWorkflowException
InputStream under the given path within the storage directory for the given ArtifactStore.
Use the given TransferOperation to trigger the appropriate tangential maintenance, etc. actions. Return the Transfer that
references the stored content.
ArtifactStore isn't a HostedRepository, or is a Group that doesn't contain a HostedRepository,
fail. If the HostedRepository instances involved don't allow deployment/storage, or don't allow appropriate deployment
(releases-only for snapshot content, or vice versa), then fail.eventMetadata - TODOIndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer store(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path, InputStream stream, org.commonjava.maven.galley.model.TransferOperation op) throws IndyWorkflowException
InputStream under the given path within the storage directory for first appropriate instance among
the given ArtifactStore's. Use the given TransferOperation to trigger the appropriate tangential maintenance, etc. actions.
Return the Transfer that references the stored content.
ArtifactStore isn't a HostedRepository, or is a Group that doesn't contain a HostedRepository,
fail. If the HostedRepository instances involved don't allow deployment/storage, or don't allow appropriate deployment
(releases-only for snapshot content, or vice versa), then fail.IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer store(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path, InputStream stream, org.commonjava.maven.galley.model.TransferOperation op, org.commonjava.maven.galley.event.EventMetadata eventMetadata) throws IndyWorkflowException
InputStream under the given path within the storage directory for first appropriate instance among
the given ArtifactStore's. Use the given TransferOperation to trigger the appropriate tangential maintenance, etc. actions.
Return the Transfer that references the stored content.
ArtifactStore isn't a HostedRepository, or is a Group that doesn't contain a HostedRepository,
fail. If the HostedRepository instances involved don't allow deployment/storage, or don't allow appropriate deployment
(releases-only for snapshot content, or vice versa), then fail.eventMetadata - TODOIndyWorkflowExceptionboolean delete(org.commonjava.indy.model.core.ArtifactStore store,
String path)
throws IndyWorkflowException
IndyWorkflowExceptionboolean delete(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
throws IndyWorkflowException
IndyWorkflowExceptionboolean deleteAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path) throws IndyWorkflowException
IndyWorkflowExceptionvoid rescan(org.commonjava.indy.model.core.ArtifactStore store)
throws IndyWorkflowException
IndyWorkflowExceptionvoid rescan(org.commonjava.indy.model.core.ArtifactStore store,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
throws IndyWorkflowException
IndyWorkflowExceptionvoid rescanAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores) throws IndyWorkflowException
IndyWorkflowExceptionvoid rescanAll(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, org.commonjava.maven.galley.event.EventMetadata eventMetadata) throws IndyWorkflowException
IndyWorkflowExceptionList<StoreResource> list(org.commonjava.indy.model.core.ArtifactStore store, String path) throws IndyWorkflowException
IndyWorkflowExceptionList<StoreResource> list(org.commonjava.indy.model.core.ArtifactStore store, String path, org.commonjava.maven.galley.event.EventMetadata eventMetadatada) throws IndyWorkflowException
IndyWorkflowExceptionList<StoreResource> list(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path) throws IndyWorkflowException
IndyWorkflowExceptionList<StoreResource> list(List<? extends org.commonjava.indy.model.core.ArtifactStore> stores, String path, org.commonjava.maven.galley.event.EventMetadata eventMetadata) throws IndyWorkflowException
IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer getStoreRootDirectory(org.commonjava.indy.model.core.StoreKey key)
throws IndyWorkflowException
IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer getStoreRootDirectory(org.commonjava.indy.model.core.ArtifactStore store)
org.commonjava.maven.galley.model.Transfer getStorageReference(org.commonjava.indy.model.core.StoreKey key,
String... path)
throws IndyWorkflowException
IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer getStorageReference(org.commonjava.indy.model.core.ArtifactStore store,
String... path)
List<org.commonjava.maven.galley.model.Transfer> listRecursively(org.commonjava.indy.model.core.StoreKey src, String startPath) throws IndyWorkflowException
IndyWorkflowExceptionorg.commonjava.maven.galley.model.Transfer getStorageReference(List<org.commonjava.indy.model.core.ArtifactStore> stores, String path, org.commonjava.maven.galley.model.TransferOperation op) throws IndyWorkflowException
Transfer object suitable for use in the specified operation. This method handles the selection logic, and doesn't fire any
events (the returned Transfer object handles that in this case). The first suitable store is used to hold the Transfer.stores - The stores in which the Transfer should residepath - The path of the Transfer inside the storeop - The operation we want to execute on the returned TransferIndyWorkflowException - in case no suitable storage location can be foundorg.commonjava.maven.galley.model.Transfer getStorageReference(org.commonjava.indy.model.core.ArtifactStore store,
String path,
org.commonjava.maven.galley.model.TransferOperation op)
throws IndyWorkflowException
Transfer object suitable for use in the specified operation. This method handles the selection logic in the event the store
is a Group, and doesn't fire any events (the returned Transfer object handles that in this case).store - The store in which the Transfer should residepath - The path of the Transfer inside the storeop - The operation we want to execute on the returned TransferIndyWorkflowException - in case no suitable storage location can be foundboolean exists(org.commonjava.indy.model.core.ArtifactStore store,
String path)
throws IndyWorkflowException
store - The store in which the check is performedpath - The path of the Transfer inside the storeIndyWorkflowException - in case no suitable storage location can be foundCopyright © 2011-2018-2018. All Rights Reserved.