public class AbstractRepositoryGroup extends AbstractRepository implements EditableRepositoryGroup
CRON_DEFINITION, location
Constructor and Description |
---|
AbstractRepositoryGroup(Locale primaryLocale,
RepositoryType type,
String id,
String name,
RepositoryStorage storage) |
AbstractRepositoryGroup(RepositoryType type,
String id,
String name,
RepositoryStorage storage) |
Modifier and Type | Method and Description |
---|---|
void |
addRepository(int index,
ManagedRepository repository) |
void |
addRepository(ManagedRepository repository) |
void |
clearRepositories() |
boolean |
contains(ManagedRepository repository)
Returns true, if the given repository is part of this group.
|
boolean |
contains(String id)
Returns true, if the repository with the given id is part of this group.
|
RepositoryCapabilities |
getCapabilities()
Returns the capabilities of the repository implementation.
|
int |
getMergedIndexTTL()
Returns the time to live in seconds for the merged index.
|
List<ManagedRepository> |
getRepositories()
Returns the list of repositories.
|
boolean |
hasIndex()
Returns true, if this repository has a index available
|
boolean |
removeRepository(ManagedRepository repository) |
ManagedRepository |
removeRepository(String repoId) |
protected void |
setCapabilities(RepositoryCapabilities capabilities) |
void |
setMergedIndexTTL(int timeInSeconds) |
void |
setRepositories(List<ManagedRepository> newRepositories) |
addAsset, addFailoverLocation, addFeature, clearFailoverLocations, close, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getPrimaryLocale, getSchedulingDefinition, getStorage, getType, handle, isOpen, isScanned, moveAsset, moveAsset, registerEventHandler, removeAsset, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setLocation, setName, setPrimaryLocale, setScanned, setSchedulingDefinition, setStorage, supportsFeature, unregisterEventHandler, updateLocation, writeData, writeDataToChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setLocation, setName, setScanned, setSchedulingDefinition
close, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, isOpen, isScanned, supportsFeature
registerEventHandler, unregisterEventHandler
addAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannel
public AbstractRepositoryGroup(RepositoryType type, String id, String name, RepositoryStorage storage)
public AbstractRepositoryGroup(Locale primaryLocale, RepositoryType type, String id, String name, RepositoryStorage storage)
public boolean hasIndex()
Repository
hasIndex
in interface Repository
hasIndex
in class AbstractRepository
public RepositoryCapabilities getCapabilities()
Repository
getCapabilities
in interface Repository
getCapabilities
in class AbstractRepository
public void clearRepositories()
clearRepositories
in interface EditableRepositoryGroup
public void setRepositories(List<ManagedRepository> newRepositories)
setRepositories
in interface EditableRepositoryGroup
public void addRepository(ManagedRepository repository)
addRepository
in interface EditableRepositoryGroup
public void addRepository(int index, ManagedRepository repository)
addRepository
in interface EditableRepositoryGroup
public boolean removeRepository(ManagedRepository repository)
removeRepository
in interface EditableRepositoryGroup
public ManagedRepository removeRepository(String repoId)
removeRepository
in interface EditableRepositoryGroup
public void setMergedIndexTTL(int timeInSeconds)
setMergedIndexTTL
in interface EditableRepositoryGroup
public List<ManagedRepository> getRepositories()
RepositoryGroup
getRepositories
in interface RepositoryGroup
public boolean contains(ManagedRepository repository)
RepositoryGroup
contains
in interface RepositoryGroup
repository
- The repository to check.public boolean contains(String id)
RepositoryGroup
contains
in interface RepositoryGroup
id
- The repository id to checkpublic int getMergedIndexTTL()
RepositoryGroup
getMergedIndexTTL
in interface RepositoryGroup
protected void setCapabilities(RepositoryCapabilities capabilities)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.