public interface StoreDataManager
ArtifactStore instances.| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_ORIGIN |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(ChangeSummary summary)
Delete all
ArtifactStore instances currently in the system. |
void |
deleteArtifactStore(org.commonjava.indy.model.core.StoreKey key,
ChangeSummary summary,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Delete the
ArtifactStore corresponding to the given StoreKey. |
Set<org.commonjava.indy.model.core.ArtifactStore> |
getAllArtifactStores()
Return the full list of
ArtifactStore instances of a given StoreType (hosted, remote, or group) available on the system. |
org.commonjava.indy.model.core.ArtifactStore |
getArtifactStore(org.commonjava.indy.model.core.StoreKey key)
Return the
ArtifactStore instance corresponding to the given key, where key is a composite of StoreType
(hosted, remote, or group) and name. |
Map<org.commonjava.indy.model.core.StoreKey,org.commonjava.indy.model.core.ArtifactStore> |
getArtifactStoresByKey()
Return a mapping of
ArtifactStore's keyed by the corresponding StoreKey. |
boolean |
hasArtifactStore(org.commonjava.indy.model.core.StoreKey key)
Return true if the system contains a
ArtifactStore with the given key (combination of StoreType and name); false otherwise. |
void |
install()
If no
ArtifactStore's exist in the system, install a couple of defaults:
Remote central pointing to the Maven central repository at http://repo.maven.apache.org/maven2/
Hosted local-deployments that can host both releases and snapshots
Group public containing central and local-deployments as members
|
boolean |
isReadonly(org.commonjava.indy.model.core.ArtifactStore store)
Check if store is a readonly hosted repository.
|
boolean |
isReadonly(org.commonjava.indy.model.core.StoreKey storeKey)
Check if store is a readonly hosted repository.
|
boolean |
isStarted()
Return true once any post-construction code runs.
|
ArtifactStoreQuery<org.commonjava.indy.model.core.ArtifactStore> |
query() |
void |
reload()
Mechanism for clearing all cached
ArtifactStore instances and reloading them from some backing store. |
boolean |
storeArtifactStore(org.commonjava.indy.model.core.ArtifactStore store,
ChangeSummary summary,
boolean skipIfExists,
boolean fireEvents,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
Store a modified or new
ArtifactStore instance. |
java.util.stream.Stream<org.commonjava.indy.model.core.ArtifactStore> |
streamArtifactStores()
Return the
ArtifactStore instances as a Stream. |
static final String EVENT_ORIGIN
ArtifactStoreQuery<org.commonjava.indy.model.core.ArtifactStore> query()
boolean hasArtifactStore(org.commonjava.indy.model.core.StoreKey key)
ArtifactStore with the given key (combination of StoreType and name); false otherwise.org.commonjava.indy.model.core.ArtifactStore getArtifactStore(org.commonjava.indy.model.core.StoreKey key)
throws IndyDataException
ArtifactStore instance corresponding to the given key, where key is a composite of StoreType
(hosted, remote, or group) and name.IndyDataExceptionSet<org.commonjava.indy.model.core.ArtifactStore> getAllArtifactStores() throws IndyDataException
ArtifactStore instances of a given StoreType (hosted, remote, or group) available on the system.IndyDataExceptionjava.util.stream.Stream<org.commonjava.indy.model.core.ArtifactStore> streamArtifactStores() throws IndyDataException
ArtifactStore instances as a Stream.IndyDataExceptionMap<org.commonjava.indy.model.core.StoreKey,org.commonjava.indy.model.core.ArtifactStore> getArtifactStoresByKey()
ArtifactStore's keyed by the corresponding StoreKey.boolean storeArtifactStore(org.commonjava.indy.model.core.ArtifactStore store,
ChangeSummary summary,
boolean skipIfExists,
boolean fireEvents,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
throws IndyDataException
ArtifactStore instance. If the store already exists, and skipIfExists is true, abort the
operation.eventMetadata - TODOIndyDataExceptionvoid deleteArtifactStore(org.commonjava.indy.model.core.StoreKey key,
ChangeSummary summary,
org.commonjava.maven.galley.event.EventMetadata eventMetadata)
throws IndyDataException
ArtifactStore corresponding to the given StoreKey. If the store doesn't exist, simply return (don't fail).eventMetadata - TODOIndyDataExceptionvoid clear(ChangeSummary summary) throws IndyDataException
ArtifactStore instances currently in the system.IndyDataExceptionvoid install()
throws IndyDataException
ArtifactStore's exist in the system, install a couple of defaults:
central pointing to the Maven central repository at http://repo.maven.apache.org/maven2/local-deployments that can host both releases and snapshotspublic containing central and local-deployments as membersIndyDataExceptionvoid reload()
throws IndyDataException
ArtifactStore instances and reloading them from some backing store.IndyDataExceptionboolean isStarted()
boolean isReadonly(org.commonjava.indy.model.core.ArtifactStore store)
HostedRepositoryboolean isReadonly(org.commonjava.indy.model.core.StoreKey storeKey)
HostedRepositoryCopyright © 2011-2018-2018. All Rights Reserved.