public class MavenManagedRepository extends AbstractManagedRepository
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LAYOUT |
static String |
LEGACY_LAYOUT |
CRON_DEFINITION, location
Constructor and Description |
---|
MavenManagedRepository(Locale primaryLocale,
String id,
String name,
FilesystemStorage storage) |
MavenManagedRepository(String id,
String name,
FilesystemStorage storage) |
Modifier and Type | Method and Description |
---|---|
RepositoryCapabilities |
getCapabilities()
Returns the capabilities of the repository implementation.
|
<T extends RepositoryFeature<T>> |
getFeature(Class<T> clazz)
Extension method that allows to provide different features that are not supported by all
repository types.
|
RepositoryRequestInfo |
getRequestInfo()
Returns the request info object, which you can use for gathering information from the web request path.
|
boolean |
hasIndex()
Returns true, if this repository has a index available
|
static MavenManagedRepository |
newLocalInstance(String id,
String name,
Path basePath) |
void |
setIndexingContext(ArchivaIndexingContext context)
Sets the indexing context reference.
|
<T extends RepositoryFeature<T>> |
supportsFeature(Class<T> clazz)
Returns true, if the requested feature is supported by this repository.
|
addActiveReleaseScheme, blocksRedeployments, clearActiveReleaseSchemes, getActiveReleaseSchemes, getContent, removeActiveReleaseScheme, setBlocksRedeployment, setContent
addAsset, addFailoverLocation, addFeature, clearFailoverLocations, close, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, getDescription, getDescription, getFailoverLocations, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getPrimaryLocale, getSchedulingDefinition, getStorage, getType, handle, isOpen, isScanned, moveAsset, moveAsset, registerEventHandler, removeAsset, removeFailoverLocation, setBaseUri, setDescription, setLayout, setLocation, setName, setPrimaryLocale, setScanned, setSchedulingDefinition, setStorage, unregisterEventHandler, updateLocation, writeData, writeDataToChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setLayout, setLocation, setName, setScanned, setSchedulingDefinition
close, getDescription, getDescription, getFailoverLocations, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, isOpen, isScanned
registerEventHandler, unregisterEventHandler
addAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannel
public static final String DEFAULT_LAYOUT
public static final String LEGACY_LAYOUT
public MavenManagedRepository(String id, String name, FilesystemStorage storage)
public MavenManagedRepository(Locale primaryLocale, String id, String name, FilesystemStorage storage)
public RepositoryCapabilities getCapabilities()
Repository
getCapabilities
in interface Repository
getCapabilities
in class AbstractRepository
public <T extends RepositoryFeature<T>> RepositoryFeature<T> getFeature(Class<T> clazz) throws UnsupportedFeatureException
Repository
getFeature
in interface Repository
getFeature
in class AbstractRepository
T
- This is the class of the featureclazz
- The feature class that is requestedUnsupportedFeatureException
- if the feature is not supported by this repository typepublic <T extends RepositoryFeature<T>> boolean supportsFeature(Class<T> clazz)
Repository
supportsFeature
in interface Repository
supportsFeature
in class AbstractRepository
T
- The requested feature classclazz
- The requested feature classpublic boolean hasIndex()
Repository
hasIndex
in interface Repository
hasIndex
in class AbstractRepository
public RepositoryRequestInfo getRequestInfo()
ManagedRepository
public static MavenManagedRepository newLocalInstance(String id, String name, Path basePath) throws IOException
IOException
public void setIndexingContext(ArchivaIndexingContext context)
EditableRepository
setIndexingContext
in interface EditableRepository
setIndexingContext
in class AbstractRepository
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.