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, writeDataToChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setLocation, setName, setScanned, setSchedulingDefinitionclose, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, isOpen, isScanned, supportsFeatureregisterEventHandler, unregisterEventHandleraddAsset, consumeData, consumeDataFromChannel, copyAsset, copyAsset, getAsset, moveAsset, moveAsset, removeAsset, updateLocation, writeData, writeDataToChannelpublic AbstractRepositoryGroup(RepositoryType type, String id, String name, RepositoryStorage storage)
public AbstractRepositoryGroup(Locale primaryLocale, RepositoryType type, String id, String name, RepositoryStorage storage)
public boolean hasIndex()
RepositoryhasIndex in interface RepositoryhasIndex in class AbstractRepositorypublic RepositoryCapabilities getCapabilities()
RepositorygetCapabilities in interface RepositorygetCapabilities in class AbstractRepositorypublic void clearRepositories()
clearRepositories in interface EditableRepositoryGrouppublic void setRepositories(List<ManagedRepository> newRepositories)
setRepositories in interface EditableRepositoryGrouppublic void addRepository(ManagedRepository repository)
addRepository in interface EditableRepositoryGrouppublic void addRepository(int index, ManagedRepository repository)
addRepository in interface EditableRepositoryGrouppublic boolean removeRepository(ManagedRepository repository)
removeRepository in interface EditableRepositoryGrouppublic ManagedRepository removeRepository(String repoId)
removeRepository in interface EditableRepositoryGrouppublic void setMergedIndexTTL(int timeInSeconds)
setMergedIndexTTL in interface EditableRepositoryGrouppublic List<ManagedRepository> getRepositories()
RepositoryGroupgetRepositories in interface RepositoryGrouppublic boolean contains(ManagedRepository repository)
RepositoryGroupcontains in interface RepositoryGrouprepository - The repository to check.public boolean contains(String id)
RepositoryGroupcontains in interface RepositoryGroupid - The repository id to checkpublic int getMergedIndexTTL()
RepositoryGroupgetMergedIndexTTL in interface RepositoryGroupprotected void setCapabilities(RepositoryCapabilities capabilities)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.