public abstract class AbstractManagedRepository extends AbstractRepository implements EditableManagedRepository
Modifier and Type | Field and Description |
---|---|
private Set<ReleaseScheme> |
activeReleaseSchemes |
private boolean |
blocksRedeployment |
private ManagedRepositoryContent |
content |
private Set<ReleaseScheme> |
uActiveReleaseSchemes |
CRON_DEFINITION, featureMap, log, repositoryBase, schedulingDefinition
Constructor and Description |
---|
AbstractManagedRepository(Locale primaryLocale,
RepositoryType type,
String id,
String name,
Path basePath) |
AbstractManagedRepository(RepositoryType type,
String id,
String name,
Path basePath) |
Modifier and Type | Method and Description |
---|---|
void |
addActiveReleaseScheme(ReleaseScheme scheme)
Adds an active release scheme.
|
boolean |
blocksRedeployments()
Returns true, if repeated deployments of the same artifact with the same version throws exceptions.
|
void |
clearActiveReleaseSchemes()
Clears all active release schemes.
|
Set<ReleaseScheme> |
getActiveReleaseSchemes()
Returns the release schemes that are active by this repository.
|
ManagedRepositoryContent |
getContent()
Returns the interface to access the contents of this repository.
|
void |
removeActiveReleaseScheme(ReleaseScheme scheme)
Removes an active release scheme from the set.
|
void |
setBlocksRedeployment(boolean blocksRedeployment)
If true, the repository blocks redeployments of artifacts with the same version.
|
void |
setContent(ManagedRepositoryContent content)
Sets the content
|
addFailoverLocation, addFeature, addListener, clearFailoverLocations, clearListeners, close, getCapabilities, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getPrimaryLocale, getSchedulingDefinition, getType, hasIndex, isScanned, raise, removeFailoverLocation, removeListener, setBaseUri, setDescription, setIndexingContext, setLayout, setLocation, setName, setPrimaryLocale, setScanned, setSchedulingDefinition, supportsFeature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFailoverLocation, clearFailoverLocations, getPrimaryLocale, removeFailoverLocation, setBaseUri, setDescription, setIndexingContext, setLayout, setLocation, setName, setScanned, setSchedulingDefinition
close, getCapabilities, getDescription, getDescription, getFailoverLocations, getFeature, getId, getIndexingContext, getLayout, getLocalPath, getLocation, getName, getName, getSchedulingDefinition, getType, hasIndex, isScanned, supportsFeature
addListener, clearListeners, removeListener
private boolean blocksRedeployment
private ManagedRepositoryContent content
private Set<ReleaseScheme> activeReleaseSchemes
private Set<ReleaseScheme> uActiveReleaseSchemes
public AbstractManagedRepository(RepositoryType type, String id, String name, Path basePath)
public AbstractManagedRepository(Locale primaryLocale, RepositoryType type, String id, String name, Path basePath)
public ManagedRepositoryContent getContent()
ManagedRepository
getContent
in interface ManagedRepository
public void setContent(ManagedRepositoryContent content)
EditableManagedRepository
setContent
in interface EditableManagedRepository
public void setBlocksRedeployment(boolean blocksRedeployment)
EditableManagedRepository
setBlocksRedeployment
in interface EditableManagedRepository
blocksRedeployment
- The flag for blocking redeployments.public boolean blocksRedeployments()
ManagedRepository
blocksRedeployments
in interface ManagedRepository
public Set<ReleaseScheme> getActiveReleaseSchemes()
ManagedRepository
getActiveReleaseSchemes
in interface ManagedRepository
public void addActiveReleaseScheme(ReleaseScheme scheme)
EditableManagedRepository
addActiveReleaseScheme
in interface EditableManagedRepository
scheme
- the scheme to add.public void removeActiveReleaseScheme(ReleaseScheme scheme)
EditableManagedRepository
removeActiveReleaseScheme
in interface EditableManagedRepository
scheme
- the scheme to remove.public void clearActiveReleaseSchemes()
EditableManagedRepository
clearActiveReleaseSchemes
in interface EditableManagedRepository
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.