public interface ArtifactStoreQuery<T extends org.commonjava.indy.model.core.ArtifactStore>
StoreDataManager implementation. It contains logic
for working with the ArtifactStores contained in the StoreDataManager, but this logic is not tied directly to
any data manager implementation. Separating these methods out and providing a single StoreDataManager.query()
method to provide access to an instance of this class drastically simplifies the task of implementing a new type of
data manager.
This class is intended to function as a fluent api. It does keep state on packageType, storeType(s), and enabled / disabled selection. However, methods that pertain to specific types of ArtifactStore (indicated by their names) DO NOT change the internal state of the query instance on which they are called.
Created by jdcasey on 5/10/17.
| Modifier and Type | Method and Description |
|---|---|
ArtifactStoreQuery<T> |
concreteStores() |
boolean |
containsByName(String name) |
ArtifactStoreQuery<T> |
enabledState(Boolean enabled) |
List<T> |
getAll() |
List<T> |
getAll(java.util.function.Predicate<org.commonjava.indy.model.core.ArtifactStore> filter) |
List<T> |
getAllByDefaultPackageTypes() |
List<org.commonjava.indy.model.core.Group> |
getAllGroups() |
List<org.commonjava.indy.model.core.HostedRepository> |
getAllHostedRepositories() |
List<org.commonjava.indy.model.core.RemoteRepository> |
getAllRemoteRepositories() |
T |
getByName(String name) |
org.commonjava.indy.model.core.Group |
getGroup(String name) |
Set<org.commonjava.indy.model.core.Group> |
getGroupsAffectedBy(Collection<org.commonjava.indy.model.core.StoreKey> keys) |
Set<org.commonjava.indy.model.core.Group> |
getGroupsAffectedBy(org.commonjava.indy.model.core.StoreKey... keys) |
Set<org.commonjava.indy.model.core.Group> |
getGroupsContaining(org.commonjava.indy.model.core.StoreKey storeKey) |
org.commonjava.indy.model.core.HostedRepository |
getHostedRepository(String name) |
List<org.commonjava.indy.model.core.ArtifactStore> |
getOrderedConcreteStoresInGroup(String groupName) |
List<org.commonjava.indy.model.core.ArtifactStore> |
getOrderedStoresInGroup(String groupName) |
org.commonjava.indy.model.core.RemoteRepository |
getRemoteRepository(String name) |
org.commonjava.indy.model.core.RemoteRepository |
getRemoteRepositoryByUrl(String url) |
ArtifactStoreQuery<T> |
noPackageType() |
ArtifactStoreQuery<T> |
packageType(String packageType) |
ArtifactStoreQuery<T> |
rewrap(StoreDataManager manager) |
<C extends org.commonjava.indy.model.core.ArtifactStore> |
storeType(Class<C> storeCls) |
ArtifactStoreQuery<T> |
storeTypes(org.commonjava.indy.model.core.StoreType... types) |
java.util.stream.Stream<T> |
stream() |
java.util.stream.Stream<T> |
stream(java.util.function.Predicate<org.commonjava.indy.model.core.ArtifactStore> filter) |
ArtifactStoreQuery<T> rewrap(StoreDataManager manager)
ArtifactStoreQuery<T> packageType(String packageType) throws IndyDataException
IndyDataException<C extends org.commonjava.indy.model.core.ArtifactStore> ArtifactStoreQuery<C> storeType(Class<C> storeCls)
ArtifactStoreQuery<T> storeTypes(org.commonjava.indy.model.core.StoreType... types)
ArtifactStoreQuery<T> concreteStores()
ArtifactStoreQuery<T> enabledState(Boolean enabled)
List<T> getAll() throws IndyDataException
IndyDataExceptionjava.util.stream.Stream<T> stream() throws IndyDataException
IndyDataExceptionjava.util.stream.Stream<T> stream(java.util.function.Predicate<org.commonjava.indy.model.core.ArtifactStore> filter) throws IndyDataException
IndyDataExceptionList<T> getAll(java.util.function.Predicate<org.commonjava.indy.model.core.ArtifactStore> filter) throws IndyDataException
IndyDataExceptionList<T> getAllByDefaultPackageTypes() throws IndyDataException
IndyDataExceptionT getByName(String name) throws IndyDataException
IndyDataExceptionboolean containsByName(String name) throws IndyDataException
IndyDataExceptionSet<org.commonjava.indy.model.core.Group> getGroupsContaining(org.commonjava.indy.model.core.StoreKey storeKey) throws IndyDataException
IndyDataExceptionorg.commonjava.indy.model.core.RemoteRepository getRemoteRepositoryByUrl(String url) throws IndyDataException
IndyDataExceptionList<org.commonjava.indy.model.core.ArtifactStore> getOrderedConcreteStoresInGroup(String groupName) throws IndyDataException
IndyDataExceptionList<org.commonjava.indy.model.core.ArtifactStore> getOrderedStoresInGroup(String groupName) throws IndyDataException
IndyDataExceptionSet<org.commonjava.indy.model.core.Group> getGroupsAffectedBy(org.commonjava.indy.model.core.StoreKey... keys) throws IndyDataException
IndyDataExceptionSet<org.commonjava.indy.model.core.Group> getGroupsAffectedBy(Collection<org.commonjava.indy.model.core.StoreKey> keys) throws IndyDataException
IndyDataExceptionList<org.commonjava.indy.model.core.RemoteRepository> getAllRemoteRepositories() throws IndyDataException
IndyDataExceptionList<org.commonjava.indy.model.core.HostedRepository> getAllHostedRepositories() throws IndyDataException
IndyDataExceptionList<org.commonjava.indy.model.core.Group> getAllGroups() throws IndyDataException
IndyDataExceptionorg.commonjava.indy.model.core.RemoteRepository getRemoteRepository(String name) throws IndyDataException
IndyDataExceptionorg.commonjava.indy.model.core.HostedRepository getHostedRepository(String name) throws IndyDataException
IndyDataExceptionorg.commonjava.indy.model.core.Group getGroup(String name) throws IndyDataException
IndyDataExceptionArtifactStoreQuery<T> noPackageType()
Copyright © 2011-2018-2018. All Rights Reserved.