public interface EditableRepository extends Repository
Modifier and Type | Method and Description |
---|---|
void |
addFailoverLocation(URI location)
Adds a failover location for the repository.
|
void |
clearFailoverLocations()
Clears the failover location set.
|
Locale |
getPrimaryLocale()
Returns the primary locale used for setting the default values for
name and description.
|
void |
removeFailoverLocation(URI location)
Removes a failover location from the set.
|
void |
setBaseUri(URI baseUri)
Sets the base uri for relative location uris.
|
void |
setDescription(Locale locale,
String description)
Sets the description for the given locale
|
void |
setIndexingContext(ArchivaIndexingContext context)
Sets the indexing context reference.
|
void |
setLayout(String layout)
Sets the layout string.
|
void |
setLocation(URI location)
Sets the location of the repository.
|
void |
setName(Locale locale,
String name)
Sets the name for the given locale
|
void |
setScanned(boolean scanned)
Sets the flag for scanning the repository.
|
void |
setSchedulingDefinition(String cronExpression)
Sets the scheduling definition, that defines the times, when the regular repository
jobs are started.
|
close, getCapabilities, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, hasIndex, isOpen, isScanned, supportsFeature
registerEventHandler, unregisterEventHandler
addAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannel
Locale getPrimaryLocale()
void setName(Locale locale, String name)
locale
- the locale for which the name is setname
- The name value in the language that matches the localevoid setDescription(Locale locale, String description)
locale
- the locale for which the description is setdescription
- The description in the language that matches the locale.void setLocation(URI location) throws UnsupportedURIException
location
- the location URIUnsupportedURIException
- if the URI scheme is not supported by the repository type.void setBaseUri(URI baseUri)
baseUri
- void addFailoverLocation(URI location) throws UnsupportedURIException
location
- The location that should be used as failover.UnsupportedURIException
- if the URI scheme is not supported by the repository type.void removeFailoverLocation(URI location)
location
- the location uri to removevoid clearFailoverLocations()
void setScanned(boolean scanned)
scanned
- if true, the repository is scanned regulary.void setSchedulingDefinition(String cronExpression) throws IllegalArgumentException
cronExpression
must be a valid
quartz cron definition.cronExpression
- the cron expression.IllegalArgumentException
- if the cron expression is not valid.void setIndexingContext(ArchivaIndexingContext context)
context
- Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.