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, setContentaddAsset, 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, writeDataToChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setLayout, setLocation, setName, setScanned, setSchedulingDefinitionclose, getDescription, getDescription, getFailoverLocations, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, isOpen, isScannedregisterEventHandler, unregisterEventHandleraddAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannelpublic 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()
RepositorygetCapabilities in interface RepositorygetCapabilities in class AbstractRepositorypublic <T extends RepositoryFeature<T>> RepositoryFeature<T> getFeature(Class<T> clazz) throws UnsupportedFeatureException
RepositorygetFeature in interface RepositorygetFeature in class AbstractRepositoryT - 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)
RepositorysupportsFeature in interface RepositorysupportsFeature in class AbstractRepositoryT - The requested feature classclazz - The requested feature classpublic boolean hasIndex()
RepositoryhasIndex in interface RepositoryhasIndex in class AbstractRepositorypublic RepositoryRequestInfo getRequestInfo()
ManagedRepositorypublic static MavenManagedRepository newLocalInstance(String id, String name, Path basePath) throws IOException
IOExceptionpublic void setIndexingContext(ArchivaIndexingContext context)
EditableRepositorysetIndexingContext in interface EditableRepositorysetIndexingContext in class AbstractRepositoryCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.